drv_types_ce.h 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. /******************************************************************************
  2. *
  3. * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
  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. * You should have received a copy of the GNU General Public License along with
  15. * this program; if not, write to the Free Software Foundation, Inc.,
  16. * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
  17. *
  18. *
  19. ******************************************************************************/
  20. #ifndef __DRV_TYPES_CE_H__
  21. #define __DRV_TYPES_CE_H__
  22. #include <drv_conf.h>
  23. #include <osdep_service.h>
  24. #include <Sdcardddk.h>
  25. #define MAX_ACTIVE_REG_PATH 256
  26. #define MAX_MCAST_LIST_NUM 32
  27. /* for ioctl */
  28. #define MAKE_DRIVER_VERSION(_MainVer, _MinorVer) ((((u32)(_MainVer))<<16)+_MinorVer)
  29. #define NIC_HEADER_SIZE 14 /* !< can be moved to typedef.h */
  30. #define NIC_MAX_PACKET_SIZE 1514 /* !< can be moved to typedef.h */
  31. #define NIC_MAX_SEND_PACKETS 10 /* max number of send packets the MiniportSendPackets function can accept, can be moved to typedef.h */
  32. #define NIC_VENDOR_DRIVER_VERSION MAKE_DRIVER_VERSION(0, 001) /* !< can be moved to typedef.h */
  33. #define NIC_MAX_PACKET_SIZE 1514 /* !< can be moved to typedef.h */
  34. typedef struct _MP_REG_ENTRY {
  35. NDIS_STRING RegName; /* variable name text */
  36. BOOLEAN bRequired; /* 1->required, 0->optional */
  37. u8 Type; /* NdisParameterInteger/NdisParameterHexInteger/NdisParameterStringle/NdisParameterMultiString */
  38. uint FieldOffset; /* offset to MP_ADAPTER field */
  39. uint FieldSize; /* size (in bytes) of the field */
  40. #ifdef UNDER_AMD64
  41. u64 Default;
  42. #else
  43. u32 Default; /* default value to use */
  44. #endif
  45. u32 Min; /* minimum value allowed */
  46. u32 Max; /* maximum value allowed */
  47. } MP_REG_ENTRY, *PMP_REG_ENTRY;
  48. #ifdef CONFIG_USB_HCI
  49. typedef struct _USB_EXTENSION {
  50. LPCUSB_FUNCS _lpUsbFuncs;
  51. USB_HANDLE _hDevice;
  52. PVOID pAdapter;
  53. #if 0
  54. USB_ENDPOINT_DESCRIPTOR _endpACLIn;
  55. USB_ENDPOINT_DESCRIPTOR _endpACLOutHigh;
  56. USB_ENDPOINT_DESCRIPTOR _endpACLOutNormal;
  57. USB_PIPE pPipeIn;
  58. USB_PIPE pPipeOutNormal;
  59. USB_PIPE pPipeOutHigh;
  60. #endif
  61. } USB_EXTENSION, *PUSB_EXTENSION;
  62. #endif
  63. typedef struct _OCTET_STRING {
  64. u8 *Octet;
  65. u16 Length;
  66. } OCTET_STRING, *POCTET_STRING;
  67. #endif