From f347fde22f1297e4f022600d201780d5ead78114 Mon Sep 17 00:00:00 2001 From: Joshua Bakita Date: Wed, 25 Sep 2024 16:09:09 -0400 Subject: Delete no-longer-needed nvgpu headers The dependency on these was removed in commit 8340d234. --- include/nvgpu/sec2.h | 97 ---------------------------------------------------- 1 file changed, 97 deletions(-) delete mode 100644 include/nvgpu/sec2.h (limited to 'include/nvgpu/sec2.h') diff --git a/include/nvgpu/sec2.h b/include/nvgpu/sec2.h deleted file mode 100644 index 7c75584..0000000 --- a/include/nvgpu/sec2.h +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. - * - * Permission is hereby granted, free of charge, to any person obtaining a - * copy of this software and associated documentation files (the "Software"), - * to deal in the Software without restriction, including without limitation - * the rights to use, copy, modify, merge, publish, distribute, sublicense, - * and/or sell copies of the Software, and to permit persons to whom the - * Software is furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL - * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER - * DEALINGS IN THE SOFTWARE. - */ - -#ifndef NVGPU_SEC2_H -#define NVGPU_SEC2_H - -#include -#include -#include -#include -#include -#include -#include - -#include -#include - -#define NVGPU_SEC2_TRACE_BUFSIZE (32U*1024U) - -#define SEC2_MAX_NUM_SEQUENCES (256U) -#define SEC2_SEQ_BIT_SHIFT (5U) -#define SEC2_SEQ_TBL_SIZE \ - (SEC2_MAX_NUM_SEQUENCES >> SEC2_SEQ_BIT_SHIFT) - -#define SEC2_INVALID_SEQ_DESC (~0U) - -enum { - SEC2_SEQ_STATE_FREE = 0U, - SEC2_SEQ_STATE_PENDING, - SEC2_SEQ_STATE_USED, - SEC2_SEQ_STATE_CANCELLED -}; - -typedef void (*sec2_callback)(struct gk20a *, struct nv_flcn_msg_sec2 *, - void *, u32, u32); - -struct sec2_sequence { - u8 id; - u32 state; - u32 desc; - struct nv_flcn_msg_sec2 *msg; - u8 *out_payload; - sec2_callback callback; - void *cb_params; -}; - -struct nvgpu_sec2 { - struct gk20a *g; - struct nvgpu_falcon *flcn; - u32 falcon_id; - - struct nvgpu_falcon_queue queue[SEC2_QUEUE_NUM]; - - struct sec2_sequence *seq; - unsigned long sec2_seq_tbl[SEC2_SEQ_TBL_SIZE]; - u32 next_seq_desc; - struct nvgpu_mutex sec2_seq_lock; - - bool isr_enabled; - struct nvgpu_mutex isr_mutex; - - struct nvgpu_allocator dmem; - - /* set to true once init received */ - bool sec2_ready; - - struct nvgpu_mem trace_buf; - - void (*remove_support)(struct nvgpu_sec2 *sec2); - - u32 command_ack; -}; - -/* sec2 init */ -int nvgpu_init_sec2_support(struct gk20a *g); -int nvgpu_sec2_destroy(struct gk20a *g); - -#endif /* NVGPU_SEC2_H */ -- cgit v1.2.2