blob: 3cb9dcba72ff4bc0475e210e649636a6587b589c [file] [log] [blame]
developer02e65912023-08-17 16:33:10 +08001/* adapter_driver197_init_ext.h
2 *
3 * Linux kernel specific Adapter extensions
4 */
5
6/*****************************************************************************
7* Copyright (c) 2010-2022 by Rambus, Inc. and/or its subsidiaries.
8*
9* This program is free software: you can redistribute it and/or modify
10* it under the terms of the GNU General Public License as published by
11* the Free Software Foundation, either version 2 of the License, or
12* any later version.
13*
14* This program is distributed in the hope that it will be useful,
15* but WITHOUT ANY WARRANTY; without even the implied warranty of
16* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17* GNU General Public License for more details.
18*
19* You should have received a copy of the GNU General Public License
20* along with this program. If not, see <http://www.gnu.org/licenses/>.
21*****************************************************************************/
22
23
24/*----------------------------------------------------------------------------
25 * This module implements (provides) the following interface(s):
26 */
27
28// Global Classification Control Init API
29#include "api_global_eip207.h"
30
31// Global Classification Control Status API
32#include "api_global_status_eip207.h"
33
34// Global Packet I/O Control Init API
35#include "api_global_eip97.h"
36
37// Global Packet I/O Control Status API
38#include "api_global_status_eip97.h"
39
40// Global DRBG Control API
41#include "api_global_eip74.h"
42
43#include "api_dmabuf.h" // DMABuf API
44
45#include "device_mgmt.h" // Device_Find
46#include "device_rw.h" // Device_Read32/Device_Write32
47
48/*----------------------------------------------------------------------------
49 * This module uses (requires) the following interface(s):
50 */
51
52// Top-level Adapter configuration
53#include "cs_adapter.h"
54
55// Linux Kernel API
56#include <linux/init.h> // module_init, module_exit
57#include <linux/module.h> // EXPORT_SYMBOL
58
59
60MODULE_LICENSE(ADAPTER_LICENSE);
61
62module_init(Driver197_Init);
63module_exit(Driver197_Exit);
64
65// Global Classification Control Init API
66EXPORT_SYMBOL(GlobalControl207_Capabilities_Get);
67EXPORT_SYMBOL(GlobalControl207_Init);
68EXPORT_SYMBOL(GlobalControl207_UnInit);
69
70// Global Packet I/O Control Status API
71EXPORT_SYMBOL(GlobalControl97_Capabilities_Get);
72EXPORT_SYMBOL(GlobalControl97_Init);
73EXPORT_SYMBOL(GlobalControl97_UnInit);
74EXPORT_SYMBOL(GlobalControl97_Configure);
75
76// Global Classification Control Status API
77EXPORT_SYMBOL(GlobalControl207_Status_Get);
78EXPORT_SYMBOL(GlobalControl207_GlobalStats_Get);
79EXPORT_SYMBOL(GlobalControl207_ClockCount_Get);
80EXPORT_SYMBOL(GlobalControl207_Firmware_Configure);
81
82// Global Packet I/O Control Status API
83EXPORT_SYMBOL(GlobalControl97_Debug_Statistics_Get);
84EXPORT_SYMBOL(GlobalControl97_DFE_Status_Get);
85EXPORT_SYMBOL(GlobalControl97_DSE_Status_Get);
86EXPORT_SYMBOL(GlobalControl97_Token_Status_Get);
87EXPORT_SYMBOL(GlobalControl97_Context_Status_Get);
88EXPORT_SYMBOL(GlobalControl97_Interrupt_Status_Get);
89EXPORT_SYMBOL(GlobalControl97_OutXfer_Status_Get);
90EXPORT_SYMBOL(GlobalControl97_PRNG_Status_Get);
91EXPORT_SYMBOL(GlobalControl97_PRNG_Reseed);
92EXPORT_SYMBOL(GlobalControl97_Interfaces_Get);
93
94// Global DRBG Control API
95EXPORT_SYMBOL(GlobalControl74_Init);
96EXPORT_SYMBOL(GlobalControl74_UnInit);
97EXPORT_SYMBOL(GlobalControl74_Capabilities_Get);
98EXPORT_SYMBOL(GlobalControl74_Status_Get);
99EXPORT_SYMBOL(GlobalControl74_Reseed);
100EXPORT_SYMBOL(GlobalControl74_Clear);
101#ifdef ADAPTER_EIP74_INTERRUPTS_ENABLE
102EXPORT_SYMBOL(GlobalControl74_Notify_Request);
103#endif
104
105EXPORT_SYMBOL(DMABuf_NULLHandle);
106EXPORT_SYMBOL(DMABuf_Handle_IsSame);
107EXPORT_SYMBOL(DMABuf_Alloc);
developer6a9bbe92024-03-22 17:23:45 +0800108EXPORT_SYMBOL(DMABuf_Particle_Alloc);
developer02e65912023-08-17 16:33:10 +0800109EXPORT_SYMBOL(DMABuf_Register);
110EXPORT_SYMBOL(DMABuf_Release);
developer6a9bbe92024-03-22 17:23:45 +0800111EXPORT_SYMBOL(DMABuf_Particle_Release);
developer02e65912023-08-17 16:33:10 +0800112
113
114EXPORT_SYMBOL(Device_Find);
115EXPORT_SYMBOL(Device_Read32);
116EXPORT_SYMBOL(Device_Write32);
117
118// PEC API LKM implementation extensions
119#include "adapter_pec_lkm_ext.h"
120
121#ifdef ADAPTER_PCL_ENABLE
122// PCL API LKM implementation extensions
123#include "adapter_pcl_lkm_ext.h"
124#endif /* ADAPTER_PCL_ENABLE */
125
126
127/* end of file adapter_driver197_init_ext.h */