drv_types_xp.h 2.7 KB

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