ServerEngines 10Gb NIC driver
Subsystems (2)
PATCH 9/16 ServerEngines 10Gb NIC driver
System abstraction function for Linux. beclib uses these helper routines / macros to do OS dependent functions.
--------------------
linux-2.6.24.2/drivers/message/beclib/sa/setypes.h +68 -0
@@ -0,0 +1,70 @@ + +/* +* These are the data types used in management apps that we are +maintaining for +* legacy/personal preference reasons. +*/ + +#ifndef __setypes_h__ +#define __setypes_h__ +/* +*----- data types used in SA ---- +* Signed integers. +*/ +typedef signed char i8 ; +typedef signed short i16 ; +typedef signed int i32 ; +typedef signed long long i64 ; + +/* Narrow and wide characters. */ +typedef char c8 ; +typedef u16 c16 ; + +/* Native size_t for interfacing to libraries. */ typedef size_t +SA_SIZE_T , *PSA_SIZE_T ; + +typedef int boolean ; + +/* Common pointer to a void notation. */ typedef void *PVOID ; + +/* +* Explicitly sized booleans -- useful for packing a struct while still +* indicating that the value is treated as TRUE or FALSE. +*/ +typedef u8 bool8 ; +typedef u16 bool16 ; +typedef u32 bool32 ; + +/* Define boolean types if necessary. */ #ifndef TRUE #define TRUE (1) +#endif + +#ifndef FALSE +#define FALSE (0) +#endif + +#if !defined(NULL ) +#define NULL ((void *) 0) +#endif + +/* Physical address definition */ +typedef u64 SA_PHYSICAL_ADDRESS , *PSA_PHYSICAL_ADDRESS ; + +#define SA_EXTERN_C extern "C" +#define INLINE inline +#define STATIC static +#define SA_STDCALL +#define STDCALL +#define SA_CDECL +#define SA_FASTCALL + +#ifndef FASTCALL +#define FASTCALL +#endif + +#define IN +#define OUT +#define INOUT + +#endif
linux-2.6.24.2/drivers/message/beclib/sa/sa.c +261 -0
261 lines not on this page · raw message
linux-2.6.24.2/drivers/message/beclib/sa/sa.h +924 -0
924 lines not on this page · raw message
___________________________________________________________________________________
This message, together with any attachment(s), contains confidential and proprietary information of ServerEngines Corporation and is intended only for the designated recipient(s) named above. Any unauthorized review, printing, retention, copying, disclosure or distribution is strictly prohibited. If you are not the intended recipient of this message, please immediately advise the sender by reply email message and delete all copies of this message and any attachment(s). Thank you.