drv_types_ce.h 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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. #include <drv_conf.h>
  18. #include <osdep_service.h>
  19. #include <Sdcardddk.h>
  20. #define MAX_ACTIVE_REG_PATH 256
  21. #define MAX_MCAST_LIST_NUM 32
  22. /* for ioctl */
  23. #define MAKE_DRIVER_VERSION(_MainVer, _MinorVer) ((((u32)(_MainVer))<<16)+_MinorVer)
  24. #define NIC_HEADER_SIZE 14 /* !< can be moved to typedef.h */
  25. #define NIC_MAX_PACKET_SIZE 1514 /* !< can be moved to typedef.h */
  26. #define NIC_MAX_SEND_PACKETS 10 /* max number of send packets the MiniportSendPackets function can accept, can be moved to typedef.h */
  27. #define NIC_VENDOR_DRIVER_VERSION MAKE_DRIVER_VERSION(0, 001) /* !< can be moved to typedef.h */
  28. #define NIC_MAX_PACKET_SIZE 1514 /* !< can be moved to typedef.h */
  29. typedef struct _MP_REG_ENTRY {
  30. NDIS_STRING RegName; /* variable name text */
  31. BOOLEAN bRequired; /* 1->required, 0->optional */
  32. u8 Type; /* NdisParameterInteger/NdisParameterHexInteger/NdisParameterStringle/NdisParameterMultiString */
  33. uint FieldOffset; /* offset to MP_ADAPTER field */
  34. uint FieldSize; /* size (in bytes) of the field */
  35. #ifdef UNDER_AMD64
  36. u64 Default;
  37. #else
  38. u32 Default; /* default value to use */
  39. #endif
  40. u32 Min; /* minimum value allowed */
  41. u32 Max; /* maximum value allowed */
  42. } MP_REG_ENTRY, *PMP_REG_ENTRY;
  43. #ifdef CONFIG_USB_HCI
  44. typedef struct _USB_EXTENSION {
  45. LPCUSB_FUNCS _lpUsbFuncs;
  46. USB_HANDLE _hDevice;
  47. PVOID pAdapter;
  48. #if 0
  49. USB_ENDPOINT_DESCRIPTOR _endpACLIn;
  50. USB_ENDPOINT_DESCRIPTOR _endpACLOutHigh;
  51. USB_ENDPOINT_DESCRIPTOR _endpACLOutNormal;
  52. USB_PIPE pPipeIn;
  53. USB_PIPE pPipeOutNormal;
  54. USB_PIPE pPipeOutHigh;
  55. #endif
  56. } USB_EXTENSION, *PUSB_EXTENSION;
  57. #endif
  58. typedef struct _OCTET_STRING {
  59. u8 *Octet;
  60. u16 Length;
  61. } OCTET_STRING, *POCTET_STRING;
  62. #endif