developer | 02e6591 | 2023-08-17 16:33:10 +0800 | [diff] [blame] | 1 | /* 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 | |
| 60 | MODULE_LICENSE(ADAPTER_LICENSE); |
| 61 | |
| 62 | module_init(Driver197_Init); |
| 63 | module_exit(Driver197_Exit); |
| 64 | |
| 65 | // Global Classification Control Init API |
| 66 | EXPORT_SYMBOL(GlobalControl207_Capabilities_Get); |
| 67 | EXPORT_SYMBOL(GlobalControl207_Init); |
| 68 | EXPORT_SYMBOL(GlobalControl207_UnInit); |
| 69 | |
| 70 | // Global Packet I/O Control Status API |
| 71 | EXPORT_SYMBOL(GlobalControl97_Capabilities_Get); |
| 72 | EXPORT_SYMBOL(GlobalControl97_Init); |
| 73 | EXPORT_SYMBOL(GlobalControl97_UnInit); |
| 74 | EXPORT_SYMBOL(GlobalControl97_Configure); |
| 75 | |
| 76 | // Global Classification Control Status API |
| 77 | EXPORT_SYMBOL(GlobalControl207_Status_Get); |
| 78 | EXPORT_SYMBOL(GlobalControl207_GlobalStats_Get); |
| 79 | EXPORT_SYMBOL(GlobalControl207_ClockCount_Get); |
| 80 | EXPORT_SYMBOL(GlobalControl207_Firmware_Configure); |
| 81 | |
| 82 | // Global Packet I/O Control Status API |
| 83 | EXPORT_SYMBOL(GlobalControl97_Debug_Statistics_Get); |
| 84 | EXPORT_SYMBOL(GlobalControl97_DFE_Status_Get); |
| 85 | EXPORT_SYMBOL(GlobalControl97_DSE_Status_Get); |
| 86 | EXPORT_SYMBOL(GlobalControl97_Token_Status_Get); |
| 87 | EXPORT_SYMBOL(GlobalControl97_Context_Status_Get); |
| 88 | EXPORT_SYMBOL(GlobalControl97_Interrupt_Status_Get); |
| 89 | EXPORT_SYMBOL(GlobalControl97_OutXfer_Status_Get); |
| 90 | EXPORT_SYMBOL(GlobalControl97_PRNG_Status_Get); |
| 91 | EXPORT_SYMBOL(GlobalControl97_PRNG_Reseed); |
| 92 | EXPORT_SYMBOL(GlobalControl97_Interfaces_Get); |
| 93 | |
| 94 | // Global DRBG Control API |
| 95 | EXPORT_SYMBOL(GlobalControl74_Init); |
| 96 | EXPORT_SYMBOL(GlobalControl74_UnInit); |
| 97 | EXPORT_SYMBOL(GlobalControl74_Capabilities_Get); |
| 98 | EXPORT_SYMBOL(GlobalControl74_Status_Get); |
| 99 | EXPORT_SYMBOL(GlobalControl74_Reseed); |
| 100 | EXPORT_SYMBOL(GlobalControl74_Clear); |
| 101 | #ifdef ADAPTER_EIP74_INTERRUPTS_ENABLE |
| 102 | EXPORT_SYMBOL(GlobalControl74_Notify_Request); |
| 103 | #endif |
| 104 | |
| 105 | EXPORT_SYMBOL(DMABuf_NULLHandle); |
| 106 | EXPORT_SYMBOL(DMABuf_Handle_IsSame); |
| 107 | EXPORT_SYMBOL(DMABuf_Alloc); |
developer | 6a9bbe9 | 2024-03-22 17:23:45 +0800 | [diff] [blame^] | 108 | EXPORT_SYMBOL(DMABuf_Particle_Alloc); |
developer | 02e6591 | 2023-08-17 16:33:10 +0800 | [diff] [blame] | 109 | EXPORT_SYMBOL(DMABuf_Register); |
| 110 | EXPORT_SYMBOL(DMABuf_Release); |
developer | 6a9bbe9 | 2024-03-22 17:23:45 +0800 | [diff] [blame^] | 111 | EXPORT_SYMBOL(DMABuf_Particle_Release); |
developer | 02e6591 | 2023-08-17 16:33:10 +0800 | [diff] [blame] | 112 | |
| 113 | |
| 114 | EXPORT_SYMBOL(Device_Find); |
| 115 | EXPORT_SYMBOL(Device_Read32); |
| 116 | EXPORT_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 */ |