drv_types_xp.h 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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_XP_H__
  16. #define __DRV_TYPES_XP_H__
  17. #include <drv_conf.h>
  18. #include <osdep_service.h>
  19. #define MAX_MCAST_LIST_NUM 32
  20. /* for ioctl */
  21. #define MAKE_DRIVER_VERSION(_MainVer, _MinorVer) ((((u32)(_MainVer))<<16)+_MinorVer)
  22. #define NIC_HEADER_SIZE 14 /* !< can be moved to typedef.h */
  23. #define NIC_MAX_PACKET_SIZE 1514 /* !< can be moved to typedef.h */
  24. #define NIC_MAX_SEND_PACKETS 10 /* max number of send packets the MiniportSendPackets function can accept, can be moved to typedef.h */
  25. #define NIC_VENDOR_DRIVER_VERSION MAKE_DRIVER_VERSION(0, 001) /* !< can be moved to typedef.h */
  26. #define NIC_MAX_PACKET_SIZE 1514 /* !< can be moved to typedef.h */
  27. #undef ON_VISTA
  28. /* added by Jackson */
  29. #ifndef ON_VISTA
  30. /*
  31. * Bus driver versions
  32. * */
  33. #define SDBUS_DRIVER_VERSION_1 0x100
  34. #define SDBUS_DRIVER_VERSION_2 0x200
  35. #define SDP_FUNCTION_TYPE 4
  36. #define SDP_BUS_DRIVER_VERSION 5
  37. #define SDP_BUS_WIDTH 6
  38. #define SDP_BUS_CLOCK 7
  39. #define SDP_BUS_INTERFACE_CONTROL 8
  40. #define SDP_HOST_BLOCK_LENGTH 9
  41. #define SDP_FUNCTION_BLOCK_LENGTH 10
  42. #define SDP_FN0_BLOCK_LENGTH 11
  43. #define SDP_FUNCTION_INT_ENABLE 12
  44. #endif
  45. typedef struct _MP_REG_ENTRY {
  46. NDIS_STRING RegName; /* variable name text */
  47. BOOLEAN bRequired; /* 1->required, 0->optional */
  48. u8 Type; /* NdisParameterInteger/NdisParameterHexInteger/NdisParameterStringle/NdisParameterMultiString */
  49. uint FieldOffset; /* offset to MP_ADAPTER field */
  50. uint FieldSize; /* size (in bytes) of the field */
  51. #ifdef UNDER_AMD64
  52. u64 Default;
  53. #else
  54. u32 Default; /* default value to use */
  55. #endif
  56. u32 Min; /* minimum value allowed */
  57. u32 Max; /* maximum value allowed */
  58. } MP_REG_ENTRY, *PMP_REG_ENTRY;
  59. typedef struct _OCTET_STRING {
  60. u8 *Octet;
  61. u16 Length;
  62. } OCTET_STRING, *POCTET_STRING;
  63. #endif