skdrv2nd.h
上传用户:jlfgdled
上传日期:2013-04-10
资源大小:33168k
文件大小:16k
源码类别:

Linux/Unix编程

开发平台:

Unix_Linux

  1. /******************************************************************************
  2.  *
  3.  * Name: skdrv2nd.h
  4.  * Project: GEnesis, PCI Gigabit Ethernet Adapter
  5.  * Version: $Revision: 1.12.2.1 $
  6.  * Date: $Date: 2001/03/12 16:50:59 $
  7.  * Purpose: Second header file for driver and all other modules
  8.  *
  9.  ******************************************************************************/
  10. /******************************************************************************
  11.  *
  12.  * (C)Copyright 1998-2001 SysKonnect,
  13.  * a business unit of Schneider & Koch & Co. Datensysteme GmbH.
  14.  *
  15.  * This program is free software; you can redistribute it and/or modify
  16.  * it under the terms of the GNU General Public License as published by
  17.  * the Free Software Foundation; either version 2 of the License, or
  18.  * (at your option) any later version.
  19.  *
  20.  * The information in this file is provided "AS IS" without warranty.
  21.  *
  22.  ******************************************************************************/
  23. /******************************************************************************
  24.  *
  25.  * History:
  26.  *
  27.  * $Log: skdrv2nd.h,v $
  28.  * Revision 1.12.2.1  2001/03/12 16:50:59  mlindner
  29.  * chg: kernel 2.4 adaption
  30.  *
  31.  * Revision 1.12  2001/03/01 12:52:15  mlindner
  32.  * Fixed ring size
  33.  *
  34.  * Revision 1.11  2001/02/19 13:28:02  mlindner
  35.  * Changed PNMI parameter values
  36.  *
  37.  * Revision 1.10  2001/01/22 14:16:04  mlindner
  38.  * added ProcFs functionality
  39.  * Dual Net functionality integrated
  40.  * Rlmt networks added
  41.  *
  42.  * Revision 1.1  2000/10/05 19:46:50  phargrov
  43.  * Add directory src/vipk_devs_nonlbl/vipk_sk98lin/
  44.  * This is the SysKonnect SK-98xx Gigabit Ethernet driver,
  45.  * contributed by SysKonnect.
  46.  *
  47.  * Revision 1.9  2000/02/21 10:39:55  cgoos
  48.  * Added flag for jumbo support usage.
  49.  *
  50.  * Revision 1.8  1999/11/22 13:50:44  cgoos
  51.  * Changed license header to GPL.
  52.  * Fixed two comments.
  53.  *
  54.  * Revision 1.7  1999/09/28 12:38:21  cgoos
  55.  * Added CheckQueue to SK_AC.
  56.  *
  57.  * Revision 1.6  1999/07/27 08:04:05  cgoos
  58.  * Added checksumming variables to SK_AC.
  59.  *
  60.  * Revision 1.5  1999/03/29 12:33:26  cgoos
  61.  * Rreversed to fine lock granularity.
  62.  *
  63.  * Revision 1.4  1999/03/15 12:14:02  cgoos
  64.  * Added DriverLock to SK_AC.
  65.  * Removed other locks.
  66.  *
  67.  * Revision 1.3  1999/03/01 08:52:27  cgoos
  68.  * Changed pAC->PciDev declaration.
  69.  *
  70.  * Revision 1.2  1999/02/18 10:57:14  cgoos
  71.  * Removed SkDrvTimeStamp prototype.
  72.  * Fixed SkGeOsGetTime prototype.
  73.  *
  74.  * Revision 1.1  1999/02/16 07:41:01  cgoos
  75.  * First version.
  76.  *
  77.  *
  78.  *
  79.  ******************************************************************************/
  80. /******************************************************************************
  81.  *
  82.  * Description:
  83.  *
  84.  * This is the second include file of the driver, which includes all other
  85.  * neccessary files and defines all structures and constants used by the
  86.  * driver and the common modules.
  87.  *
  88.  * Include File Hierarchy:
  89.  *
  90.  * see skge.c
  91.  *
  92.  ******************************************************************************/
  93. #ifndef __INC_SKDRV2ND_H
  94. #define __INC_SKDRV2ND_H
  95. #include "h/skqueue.h"
  96. #include "h/skgehwt.h"
  97. #include "h/sktimer.h"
  98. #include "h/ski2c.h"
  99. #include "h/skgepnmi.h"
  100. #include "h/skvpd.h"
  101. #include "h/skgehw.h"
  102. #include "h/skgeinit.h"
  103. #include "h/skaddr.h"
  104. #include "h/skgesirq.h"
  105. #include "h/skcsum.h"
  106. #include "h/skrlmt.h"
  107. #include "h/skgedrv.h"
  108. /* global function prototypes ******************************************/
  109. extern SK_MBUF *SkDrvAllocRlmtMbuf(SK_AC*, SK_IOC, unsigned);
  110. extern void SkDrvFreeRlmtMbuf(SK_AC*, SK_IOC, SK_MBUF*);
  111. extern SK_U64 SkOsGetTime(SK_AC*);
  112. extern int SkPciReadCfgDWord(SK_AC*, int, SK_U32*);
  113. extern int SkPciReadCfgWord(SK_AC*, int, SK_U16*);
  114. extern int SkPciReadCfgByte(SK_AC*, int, SK_U8*);
  115. extern int SkPciWriteCfgDWord(SK_AC*, int, SK_U32);
  116. extern int SkPciWriteCfgWord(SK_AC*, int, SK_U16);
  117. extern int SkPciWriteCfgByte(SK_AC*, int, SK_U8);
  118. extern int SkDrvEvent(SK_AC*, SK_IOC IoC, SK_U32, SK_EVPARA);
  119. struct s_DrvRlmtMbuf {
  120. SK_MBUF *pNext; /* Pointer to next RLMT Mbuf. */
  121. SK_U8 *pData; /* Data buffer (virtually contig.). */
  122. unsigned Size; /* Data buffer size. */
  123. unsigned Length; /* Length of packet (<= Size). */
  124. SK_U32 PortIdx; /* Receiving/transmitting port. */
  125. #ifdef SK_RLMT_MBUF_PRIVATE
  126. SK_RLMT_MBUF Rlmt; /* Private part for RLMT. */
  127. #endif  /* SK_RLMT_MBUF_PRIVATE */
  128. struct sk_buff *pOs; /* Pointer to message block */
  129. };
  130. /*
  131.  * ioctl definitions
  132.  */
  133. #define SK_IOCTL_BASE (SIOCDEVPRIVATE)
  134. #define SK_IOCTL_GETMIB (SK_IOCTL_BASE + 0)
  135. #define SK_IOCTL_SETMIB (SK_IOCTL_BASE + 1)
  136. #define SK_IOCTL_PRESETMIB (SK_IOCTL_BASE + 2)
  137. typedef struct s_IOCTL SK_GE_IOCTL;
  138. struct s_IOCTL {
  139. char* pData;
  140. unsigned int Len;
  141. };
  142. /*
  143.  * define sizes of descriptor rings in bytes
  144.  */
  145. #define TX_RING_SIZE (8*1024)
  146. #define RX_RING_SIZE (24*1024)
  147. /*
  148.  * Buffer size for ethernet packets
  149.  */
  150. #define ETH_BUF_SIZE 1540
  151. #define ETH_MAX_MTU 1514
  152. #define ETH_MIN_MTU 60
  153. #define ETH_MULTICAST_BIT 0x01
  154. #define SK_JUMBO_MTU 9000
  155. /*
  156.  * transmit priority selects the queue: LOW=asynchron, HIGH=synchron
  157.  */
  158. #define TX_PRIO_LOW 0
  159. #define TX_PRIO_HIGH 1
  160. /*
  161.  * alignment of rx/tx descriptors
  162.  */
  163. #define DESCR_ALIGN 8
  164. /*
  165.  * definitions for pnmi. TODO
  166.  */
  167. #define SK_DRIVER_RESET(pAC, IoC) 0
  168. #define SK_DRIVER_SENDEVENT(pAC, IoC) 0
  169. #define SK_DRIVER_SELFTEST(pAC, IoC) 0
  170. /* For get mtu you must add an own function */
  171. #define SK_DRIVER_GET_MTU(pAc,IoC,i) 0
  172. #define SK_DRIVER_SET_MTU(pAc,IoC,i,v) 0
  173. #define SK_DRIVER_PRESET_MTU(pAc,IoC,i,v) 0
  174. /* TX and RX descriptors *****************************************************/
  175. typedef struct s_RxD RXD; /* the receive descriptor */
  176. struct s_RxD {
  177. volatile SK_U32 RBControl; /* Receive Buffer Control */
  178. SK_U32 VNextRxd; /* Next receive descriptor,low dword */
  179. SK_U32 VDataLow; /* Receive buffer Addr, low dword */
  180. SK_U32 VDataHigh; /* Receive buffer Addr, high dword */
  181. SK_U32 FrameStat; /* Receive Frame Status word */
  182. SK_U32 TimeStamp; /* Time stamp from XMAX */
  183. SK_U32 TcpSums; /* TCP Sum 2 / TCP Sum 1 */
  184. SK_U32 TcpSumStarts; /* TCP Sum Start 2 / TCP Sum Start 1 */
  185. RXD *pNextRxd; /* Pointer to next Rxd */
  186. struct sk_buff *pMBuf; /* Pointer to Linux' socket buffer */
  187. };
  188. typedef struct s_TxD TXD; /* the transmit descriptor */
  189. struct s_TxD {
  190. volatile SK_U32 TBControl; /* Transmit Buffer Control */
  191. SK_U32 VNextTxd; /* Next transmit descriptor,low dword */
  192. SK_U32 VDataLow; /* Transmit Buffer Addr, low dword */
  193. SK_U32 VDataHigh; /* Transmit Buffer Addr, high dword */
  194. SK_U32 FrameStat; /* Transmit Frame Status Word */
  195. SK_U32 TcpSumOfs; /* Reserved / TCP Sum Offset */
  196. SK_U32 TcpSumStWr; /* TCP Sum Start / TCP Sum Write */
  197. SK_U32 TcpReserved; /* not used */
  198. TXD *pNextTxd; /* Pointer to next Txd */
  199. struct sk_buff *pMBuf; /* Pointer to Linux' socket buffer */
  200. };
  201. /* definition of flags in descriptor control field */
  202. #define RX_CTRL_OWN_BMU  UINT32_C(0x80000000)
  203. #define RX_CTRL_STF UINT32_C(0x40000000)
  204. #define RX_CTRL_EOF UINT32_C(0x20000000)
  205. #define RX_CTRL_EOB_IRQ UINT32_C(0x10000000)
  206. #define RX_CTRL_EOF_IRQ UINT32_C(0x08000000)
  207. #define RX_CTRL_DEV_NULL UINT32_C(0x04000000)
  208. #define RX_CTRL_STAT_VALID UINT32_C(0x02000000)
  209. #define RX_CTRL_TIME_VALID UINT32_C(0x01000000)
  210. #define RX_CTRL_CHECK_DEFAULT UINT32_C(0x00550000)
  211. #define RX_CTRL_CHECK_CSUM UINT32_C(0x00560000)
  212. #define RX_CTRL_LEN_MASK UINT32_C(0x0000FFFF)
  213. #define TX_CTRL_OWN_BMU  UINT32_C(0x80000000)
  214. #define TX_CTRL_STF UINT32_C(0x40000000)
  215. #define TX_CTRL_EOF UINT32_C(0x20000000)
  216. #define TX_CTRL_EOB_IRQ UINT32_C(0x10000000)
  217. #define TX_CTRL_EOF_IRQ UINT32_C(0x08000000)
  218. #define TX_CTRL_ST_FWD UINT32_C(0x04000000)
  219. #define TX_CTRL_DISAB_CRC UINT32_C(0x02000000)
  220. #define TX_CTRL_SOFTWARE UINT32_C(0x01000000)
  221. #define TX_CTRL_CHECK_DEFAULT UINT32_C(0x00550000)
  222. #define TX_CTRL_CHECK_CSUM UINT32_C(0x00560000)
  223. #define TX_CTRL_LEN_MASK UINT32_C(0x0000FFFF)
  224. /* The offsets of registers in the TX and RX queue control io area ***********/
  225. #define RX_Q_BUF_CTRL_CNT 0x00
  226. #define RX_Q_NEXT_DESCR_LOW 0x04
  227. #define RX_Q_BUF_ADDR_LOW 0x08
  228. #define RX_Q_BUF_ADDR_HIGH 0x0c
  229. #define RX_Q_FRAME_STAT 0x10
  230. #define RX_Q_TIME_STAMP 0x14
  231. #define RX_Q_CSUM_1_2 0x18
  232. #define RX_Q_CSUM_START_1_2 0x1c
  233. #define RX_Q_CUR_DESCR_LOW 0x20
  234. #define RX_Q_DESCR_HIGH 0x24
  235. #define RX_Q_CUR_ADDR_LOW 0x28
  236. #define RX_Q_CUR_ADDR_HIGH 0x2c
  237. #define RX_Q_CUR_BYTE_CNT 0x30
  238. #define RX_Q_CTRL 0x34
  239. #define RX_Q_FLAG 0x38
  240. #define RX_Q_TEST1 0x3c
  241. #define RX_Q_TEST2 0x40
  242. #define RX_Q_TEST3 0x44
  243. #define TX_Q_BUF_CTRL_CNT 0x00
  244. #define TX_Q_NEXT_DESCR_LOW 0x04
  245. #define TX_Q_BUF_ADDR_LOW 0x08
  246. #define TX_Q_BUF_ADDR_HIGH 0x0c
  247. #define TX_Q_FRAME_STAT 0x10
  248. #define TX_Q_CSUM_START 0x14
  249. #define TX_Q_CSUM_START_POS 0x18
  250. #define TX_Q_RESERVED 0x1c
  251. #define TX_Q_CUR_DESCR_LOW 0x20
  252. #define TX_Q_DESCR_HIGH 0x24
  253. #define TX_Q_CUR_ADDR_LOW 0x28
  254. #define TX_Q_CUR_ADDR_HIGH 0x2c
  255. #define TX_Q_CUR_BYTE_CNT 0x30
  256. #define TX_Q_CTRL 0x34
  257. #define TX_Q_FLAG 0x38
  258. #define TX_Q_TEST1 0x3c
  259. #define TX_Q_TEST2 0x40
  260. #define TX_Q_TEST3 0x44
  261. /* definition of flags in the queue control field */
  262. #define RX_Q_CTRL_POLL_ON 0x00000080
  263. #define RX_Q_CTRL_POLL_OFF 0x00000040
  264. #define RX_Q_CTRL_STOP 0x00000020
  265. #define RX_Q_CTRL_START 0x00000010
  266. #define RX_Q_CTRL_CLR_I_PAR 0x00000008
  267. #define RX_Q_CTRL_CLR_I_EOB 0x00000004
  268. #define RX_Q_CTRL_CLR_I_EOF 0x00000002
  269. #define RX_Q_CTRL_CLR_I_ERR 0x00000001
  270. #define TX_Q_CTRL_POLL_ON 0x00000080
  271. #define TX_Q_CTRL_POLL_OFF 0x00000040
  272. #define TX_Q_CTRL_STOP 0x00000020
  273. #define TX_Q_CTRL_START 0x00000010
  274. #define TX_Q_CTRL_CLR_I_EOB 0x00000004
  275. #define TX_Q_CTRL_CLR_I_EOF 0x00000002
  276. #define TX_Q_CTRL_CLR_I_ERR 0x00000001
  277. /* Interrupt bits in the interrupts source register **************************/
  278. #define IRQ_HW_ERROR 0x80000000
  279. #define IRQ_RESERVED 0x40000000
  280. #define IRQ_PKT_TOUT_RX1 0x20000000
  281. #define IRQ_PKT_TOUT_RX2 0x10000000
  282. #define IRQ_PKT_TOUT_TX1 0x08000000
  283. #define IRQ_PKT_TOUT_TX2 0x04000000
  284. #define IRQ_I2C_READY 0x02000000
  285. #define IRQ_SW 0x01000000
  286. #define IRQ_EXTERNAL_REG 0x00800000
  287. #define IRQ_TIMER 0x00400000
  288. #define IRQ_MAC1 0x00200000
  289. #define IRQ_LINK_SYNC_C_M1 0x00100000
  290. #define IRQ_MAC2 0x00080000
  291. #define IRQ_LINK_SYNC_C_M2 0x00040000
  292. #define IRQ_EOB_RX1 0x00020000
  293. #define IRQ_EOF_RX1 0x00010000
  294. #define IRQ_CHK_RX1 0x00008000
  295. #define IRQ_EOB_RX2 0x00004000
  296. #define IRQ_EOF_RX2 0x00002000
  297. #define IRQ_CHK_RX2 0x00001000
  298. #define IRQ_EOB_SY_TX1 0x00000800
  299. #define IRQ_EOF_SY_TX1 0x00000400
  300. #define IRQ_CHK_SY_TX1 0x00000200
  301. #define IRQ_EOB_AS_TX1 0x00000100
  302. #define IRQ_EOF_AS_TX1 0x00000080
  303. #define IRQ_CHK_AS_TX1 0x00000040
  304. #define IRQ_EOB_SY_TX2 0x00000020
  305. #define IRQ_EOF_SY_TX2 0x00000010
  306. #define IRQ_CHK_SY_TX2 0x00000008
  307. #define IRQ_EOB_AS_TX2 0x00000004
  308. #define IRQ_EOF_AS_TX2 0x00000002
  309. #define IRQ_CHK_AS_TX2 0x00000001
  310. #define DRIVER_IRQS (IRQ_SW | IRQ_EOF_RX1 | IRQ_EOF_RX2 | 
  311. IRQ_EOF_SY_TX1 | IRQ_EOF_AS_TX1 | 
  312. IRQ_EOF_SY_TX2 | IRQ_EOF_AS_TX2)
  313. #define SPECIAL_IRQS (IRQ_HW_ERROR | IRQ_PKT_TOUT_RX1 | IRQ_PKT_TOUT_RX2 | 
  314. IRQ_PKT_TOUT_TX1 | IRQ_PKT_TOUT_TX2 | 
  315. IRQ_I2C_READY | IRQ_EXTERNAL_REG | IRQ_TIMER | 
  316. IRQ_MAC1 | IRQ_LINK_SYNC_C_M1 | 
  317. IRQ_MAC2 | IRQ_LINK_SYNC_C_M2 | 
  318. IRQ_CHK_RX1 | IRQ_CHK_RX2 | 
  319. IRQ_CHK_SY_TX1 | IRQ_CHK_AS_TX1 | 
  320. IRQ_CHK_SY_TX2 | IRQ_CHK_AS_TX2)
  321. #define IRQ_MASK (IRQ_SW | IRQ_EOB_RX1 | IRQ_EOF_RX1 | 
  322. IRQ_EOB_RX2 | IRQ_EOF_RX2 | 
  323. IRQ_EOB_SY_TX1 | IRQ_EOF_SY_TX1 | 
  324. IRQ_EOB_AS_TX1 | IRQ_EOF_AS_TX1 | 
  325. IRQ_EOB_SY_TX2 | IRQ_EOF_SY_TX2 | 
  326. IRQ_EOB_AS_TX2 | IRQ_EOF_AS_TX2 | 
  327. IRQ_HW_ERROR | IRQ_PKT_TOUT_RX1 | IRQ_PKT_TOUT_RX2 | 
  328. IRQ_PKT_TOUT_TX1 | IRQ_PKT_TOUT_TX2 | 
  329. IRQ_I2C_READY | IRQ_EXTERNAL_REG | IRQ_TIMER | 
  330. IRQ_MAC1 | 
  331. IRQ_MAC2 | 
  332. IRQ_CHK_RX1 | IRQ_CHK_RX2 | 
  333. IRQ_CHK_SY_TX1 | IRQ_CHK_AS_TX1 | 
  334. IRQ_CHK_SY_TX2 | IRQ_CHK_AS_TX2)
  335. #define IRQ_HWE_MASK 0x00000FFF /* enable all HW irqs */
  336. typedef struct s_DevNet DEV_NET;
  337. struct s_DevNet {
  338. int             PortNr;
  339. int             NetNr;
  340. int             Mtu;
  341. int             Up;
  342. SK_AC   *pAC;
  343. };  
  344. typedef struct s_TxPort TX_PORT;
  345. struct s_TxPort {
  346. /* the transmit descriptor rings */
  347. caddr_t pTxDescrRing; /* descriptor area memory */
  348. SK_U64 VTxDescrRing; /* descr. area bus virt. addr. */
  349. TXD *pTxdRingHead; /* Head of Tx rings */
  350. TXD *pTxdRingTail; /* Tail of Tx rings */
  351. TXD *pTxdRingPrev; /* descriptor sent previously */
  352. int TxdRingFree; /* # of free entrys */
  353. spinlock_t TxDesRingLock; /* serialize descriptor accesses */
  354. caddr_t HwAddr; /* bmu registers address */
  355. int PortIndex; /* index number of port (0 or 1) */
  356. };
  357. typedef struct s_RxPort RX_PORT;
  358. struct s_RxPort {
  359. /* the receive descriptor rings */
  360. caddr_t pRxDescrRing; /* descriptor area memory */
  361. SK_U64 VRxDescrRing;   /* descr. area bus virt. addr. */
  362. RXD *pRxdRingHead; /* Head of Rx rings */
  363. RXD *pRxdRingTail; /* Tail of Rx rings */
  364. RXD *pRxdRingPrev; /* descriptor given to BMU previously */
  365. int RxdRingFree; /* # of free entrys */
  366. spinlock_t RxDesRingLock; /* serialize descriptor accesses */
  367. int RxFillLimit; /* limit for buffers in ring */
  368. caddr_t HwAddr; /* bmu registers address */
  369. int PortIndex; /* index number of port (0 or 1) */
  370. };
  371. typedef struct s_PerStrm PER_STRM;
  372. #define SK_ALLOC_IRQ 0x00000001
  373. /****************************************************************************
  374.  * Per board structure / Adapter Context structure:
  375.  * Allocated within attach(9e) and freed within detach(9e).
  376.  * Contains all 'per device' necessary handles, flags, locks etc.:
  377.  */
  378. struct s_AC  {
  379. SK_GEINIT GIni; /* GE init struct */
  380. SK_PNMI Pnmi; /* PNMI data struct */
  381. SK_VPD vpd; /* vpd data struct */
  382. SK_QUEUE Event; /* Event queue */
  383. SK_HWT Hwt; /* Hardware Timer control struct */
  384. SK_TIMCTRL Tim; /* Software Timer control struct */
  385. SK_I2C I2c; /* I2C relevant data structure */
  386. SK_ADDR Addr; /* for Address module */
  387. SK_CSUM Csum; /* for checksum module */
  388. SK_RLMT Rlmt; /* for rlmt module */
  389. spinlock_t SlowPathLock; /* Normal IRQ lock */
  390. SK_PNMI_STRUCT_DATA PnmiStruct; /* structure to get all Pnmi-Data */
  391. int RlmtMode; /* link check mode to set */
  392. int RlmtNets; /* Number of nets */
  393. SK_IOC IoBase; /* register set of adapter */
  394. int BoardLevel; /* level of active hw init (0-2) */
  395. char DeviceStr[80]; /* adapter string from vpd */
  396. SK_U32 AllocFlag; /* flag allocation of resources */
  397. struct pci_dev PciDev; /* for access to pci config space */
  398. SK_U32 PciDevId; /* pci device id */
  399. struct net_device *dev[2]; /* pointer to device struct */
  400. char Name[30]; /* driver name */
  401. struct net_device *Next; /* link all devices (for clearing) */
  402. int RxBufSize; /* length of receive buffers */
  403.         struct net_device_stats stats; /* linux 'netstat -i' statistics */
  404. int Index; /* internal board index number */
  405. /* adapter RAM sizes for queues of active port */
  406. int RxQueueSize; /* memory used for receive queue */
  407. int TxSQueueSize; /* memory used for sync. tx queue */
  408. int TxAQueueSize; /* memory used for async. tx queue */
  409. int PromiscCount; /* promiscuous mode counter  */
  410. int AllMultiCount;  /* allmulticast mode counter */
  411. int MulticCount; /* number of different MC    */
  412. /*  addresses for this board */
  413. /*  (may be more than HW can)*/
  414. int ActivePort; /* the active XMAC port */
  415. int MaxPorts; /* number of activated ports */
  416. int TxDescrPerRing; /* # of descriptors per tx ring */
  417. int RxDescrPerRing; /* # of descriptors per rx ring */
  418. caddr_t pDescrMem; /* Pointer to the descriptor area */
  419. dma_addr_t pDescrMemDMA; /* PCI DMA address of area */
  420. /* the port structures with descriptor rings */
  421. TX_PORT TxPort[SK_MAX_MACS][2];
  422. RX_PORT RxPort[SK_MAX_MACS];
  423. unsigned int CsOfs1; /* for checksum calculation */
  424. unsigned int CsOfs2; /* for checksum calculation */
  425. SK_U32 CsOfs; /* for checksum calculation */
  426. SK_BOOL CheckQueue; /* check event queue soon */
  427. };
  428. #endif /* __INC_SKDRV2ND_H */