1 /****************************************************************************** 2 * 3 * Copyright(c) 2007 - 2017 Realtek Corporation. 4 * 5 * This program is free software; you can redistribute it and/or modify it 6 * under the terms of version 2 of the GNU General Public License as 7 * published by the Free Software Foundation. 8 * 9 * This program is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 12 * more details. 13 * 14 *****************************************************************************/ 15 #ifndef __DRV_TYPES_CE_H__ 16 #define __DRV_TYPES_CE_H__ 17 18 #include <drv_conf.h> 19 #include <osdep_service.h> 20 21 #include <Sdcardddk.h> 22 23 #define MAX_ACTIVE_REG_PATH 256 24 25 #define MAX_MCAST_LIST_NUM 32 26 27 28 29 /* for ioctl */ 30 #define MAKE_DRIVER_VERSION(_MainVer, _MinorVer) ((((u32)(_MainVer))<<16)+_MinorVer) 31 32 #define NIC_HEADER_SIZE 14 /* !< can be moved to typedef.h */ 33 #define NIC_MAX_PACKET_SIZE 1514 /* !< can be moved to typedef.h */ 34 #define NIC_MAX_SEND_PACKETS 10 /* max number of send packets the MiniportSendPackets function can accept, can be moved to typedef.h */ 35 #define NIC_VENDOR_DRIVER_VERSION MAKE_DRIVER_VERSION(0, 001) /* !< can be moved to typedef.h */ 36 #define NIC_MAX_PACKET_SIZE 1514 /* !< can be moved to typedef.h */ 37 38 typedef struct _MP_REG_ENTRY { 39 40 NDIS_STRING RegName; /* variable name text */ 41 BOOLEAN bRequired; /* 1->required, 0->optional */ 42 43 u8 Type; /* NdisParameterInteger/NdisParameterHexInteger/NdisParameterStringle/NdisParameterMultiString */ 44 uint FieldOffset; /* offset to MP_ADAPTER field */ 45 uint FieldSize; /* size (in bytes) of the field */ 46 47 #ifdef UNDER_AMD64 48 u64 Default; 49 #else 50 u32 Default; /* default value to use */ 51 #endif 52 53 u32 Min; /* minimum value allowed */ 54 u32 Max; /* maximum value allowed */ 55 } MP_REG_ENTRY, *PMP_REG_ENTRY; 56 57 #ifdef CONFIG_USB_HCI 58 typedef struct _USB_EXTENSION { 59 LPCUSB_FUNCS _lpUsbFuncs; 60 USB_HANDLE _hDevice; 61 PVOID pAdapter; 62 63 #if 0 64 USB_ENDPOINT_DESCRIPTOR _endpACLIn; 65 USB_ENDPOINT_DESCRIPTOR _endpACLOutHigh; 66 USB_ENDPOINT_DESCRIPTOR _endpACLOutNormal; 67 68 USB_PIPE pPipeIn; 69 USB_PIPE pPipeOutNormal; 70 USB_PIPE pPipeOutHigh; 71 #endif 72 73 } USB_EXTENSION, *PUSB_EXTENSION; 74 #endif 75 76 77 typedef struct _OCTET_STRING { 78 u8 *Octet; 79 u16 Length; 80 } OCTET_STRING, *POCTET_STRING; 81 82 83 84 85 86 #endif 87