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