/* * This file is part of the Chelsio T4 Ethernet driver. * * Copyright (C) 2003-2017 Chelsio Communications. All rights reserved. * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the LICENSE file included in this * release for licensing terms and conditions. */ #ifndef __CXGB4_OSDEP_H #define __CXGB4_OSDEP_H #include #include #include #include #include #include #include #ifdef CONFIG_CHELSIO_T4_OFFLOAD_MODULE # define CONFIG_CHELSIO_T4_OFFLOAD #endif typedef struct adapter adapter_t; #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,31) #define CONFIG_CXGB4_GRO 1 #endif /* * The Linux drivers have been converted to deal with the new 32-bit Firmware * Port Capabilities. */ #define T4_OS_NEW_FW_CAPS32 1 /* for linux cudbg_lib no lock so no definition*/ #define cudbg_access_lock_aquire(cudbg) #define cudbg_access_lock_release(cudbg); #endif /* !__CXGB4_OSDEP_H */