ReactOS  0.4.12-dev-918-g6c6e7b8
debug.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define NORMAL_MASK   0x000000FF
 
#define SPECIAL_MASK   0xFFFFFF00
 
#define MIN_TRACE   0x00000001
 
#define MID_TRACE   0x00000002
 
#define MAX_TRACE   0x00000003
 
#define DEBUG_MEMORY   0x00000100
 
#define DEBUG_ULTRA   0xFFFFFFFF
 
#define NDIS_DbgPrint(_t_, _x_)
 
#define ASSERT_IRQL(x)
 
#define ASSERT_IRQL_EQUAL(x)
 
#define assert(x)   ASSERT(x)
 
#define assert_irql(x)   ASSERT_IRQL(x)
 
#define UNIMPLEMENTED   NDIS_DbgPrint(MIN_TRACE, ("UNIMPLEMENTED.\n"));
 
#define UNIMPLEMENTED_DBGBREAK(...)
 

Functions

const charOid2Str (IN NDIS_OID Oid)
 

Macro Definition Documentation

◆ assert

#define assert (   x)    ASSERT(x)

Definition at line 49 of file debug.h.

◆ ASSERT_IRQL

#define ASSERT_IRQL (   x)

Definition at line 42 of file debug.h.

◆ assert_irql

#define assert_irql (   x)    ASSERT_IRQL(x)

Definition at line 50 of file debug.h.

◆ ASSERT_IRQL_EQUAL

#define ASSERT_IRQL_EQUAL (   x)

Definition at line 43 of file debug.h.

◆ DEBUG_MEMORY

#define DEBUG_MEMORY   0x00000100

Definition at line 18 of file debug.h.

◆ DEBUG_ULTRA

#define DEBUG_ULTRA   0xFFFFFFFF

Definition at line 19 of file debug.h.

◆ MAX_TRACE

#define MAX_TRACE   0x00000003

Definition at line 16 of file debug.h.

◆ MID_TRACE

#define MID_TRACE   0x00000002

Definition at line 15 of file debug.h.

◆ MIN_TRACE

#define MIN_TRACE   0x00000001

Definition at line 14 of file debug.h.

◆ NDIS_DbgPrint

#define NDIS_DbgPrint (   _t_,
  _x_ 
)

Definition at line 40 of file debug.h.

◆ NORMAL_MASK

#define NORMAL_MASK   0x000000FF

Definition at line 12 of file debug.h.

◆ SPECIAL_MASK

#define SPECIAL_MASK   0xFFFFFF00

Definition at line 13 of file debug.h.

◆ UNIMPLEMENTED

#define UNIMPLEMENTED   NDIS_DbgPrint(MIN_TRACE, ("UNIMPLEMENTED.\n"));

Definition at line 53 of file debug.h.

◆ UNIMPLEMENTED_DBGBREAK

#define UNIMPLEMENTED_DBGBREAK (   ...)
Value:
do { \
NDIS_DbgPrint(MIN_TRACE, ("UNIMPLEMENTED.\n")); \
DbgPrint("" __VA_ARGS__); \
DbgBreakPoint(); \
} while (0)
#define MIN_TRACE
Definition: debug.h:14

Definition at line 57 of file debug.h.

Function Documentation

◆ Oid2Str()

const char* Oid2Str ( IN NDIS_OID  Oid)

Definition at line 12 of file debug.c.

13 {
14 #if DBG
15  switch (Oid)
16  {
17 #define RETURN_X(x) case x: return #x;
18  /* Required Object IDs (OIDs) */
19  RETURN_X(OID_GEN_SUPPORTED_LIST);
20  RETURN_X(OID_GEN_HARDWARE_STATUS);
21  RETURN_X(OID_GEN_MEDIA_SUPPORTED);
22  RETURN_X(OID_GEN_MEDIA_IN_USE);
23  RETURN_X(OID_GEN_MAXIMUM_LOOKAHEAD);
25  RETURN_X(OID_GEN_LINK_SPEED);
30  RETURN_X(OID_GEN_VENDOR_ID);
33  RETURN_X(OID_GEN_CURRENT_LOOKAHEAD);
34  RETURN_X(OID_GEN_DRIVER_VERSION);
36  RETURN_X(OID_GEN_PROTOCOL_OPTIONS);
37  RETURN_X(OID_GEN_MAC_OPTIONS);
41  RETURN_X(OID_GEN_SUPPORTED_GUIDS);
44  RETURN_X(OID_GEN_MACHINE_NAME);
46  RETURN_X(OID_GEN_VLAN_ID);
47 
48  /* Optional OIDs */
50  RETURN_X(OID_GEN_PHYSICAL_MEDIUM);
51 
52  /* Required statistics OIDs */
53  RETURN_X(OID_GEN_XMIT_OK);
54  RETURN_X(OID_GEN_RCV_OK);
55  RETURN_X(OID_GEN_XMIT_ERROR);
56  RETURN_X(OID_GEN_RCV_ERROR);
57  RETURN_X(OID_GEN_RCV_NO_BUFFER);
58 
59  /* Optional statistics OIDs */
72  RETURN_X(OID_GEN_RCV_CRC_ERROR);
74  RETURN_X(OID_GEN_GET_TIME_CAPS);
75  RETURN_X(OID_GEN_GET_NETCARD_TIME);
76  RETURN_X(OID_GEN_NETCARD_LOAD);
77  RETURN_X(OID_GEN_DEVICE_PROFILE);
78  RETURN_X(OID_GEN_INIT_TIME_MS);
79  RETURN_X(OID_GEN_RESET_COUNTS);
81  RETURN_X(OID_GEN_FRIENDLY_NAME);
82  RETURN_X(OID_GEN_MINIPORT_INFO);
84 
85  /* IEEE 802.3 (Ethernet) OIDs */
86  //RETURN_X(NDIS_802_3_MAC_OPTION_PRIORITY); /*Duplicate ID */
87 
89  RETURN_X(OID_802_3_CURRENT_ADDRESS);
90  RETURN_X(OID_802_3_MULTICAST_LIST);
92  RETURN_X(OID_802_3_MAC_OPTIONS);
96  RETURN_X(OID_802_3_XMIT_DEFERRED);
98  RETURN_X(OID_802_3_RCV_OVERRUN);
99  RETURN_X(OID_802_3_XMIT_UNDERRUN);
103 
104  /* IEEE 802.11 (WLAN) OIDs */
105  RETURN_X(OID_802_11_BSSID);
106  RETURN_X(OID_802_11_SSID);
109  RETURN_X(OID_802_11_TX_POWER_LEVEL);
110  RETURN_X(OID_802_11_RSSI);
111  RETURN_X(OID_802_11_RSSI_TRIGGER);
114  RETURN_X(OID_802_11_RTS_THRESHOLD);
118  RETURN_X(OID_802_11_SUPPORTED_RATES);
119  RETURN_X(OID_802_11_DESIRED_RATES);
120  RETURN_X(OID_802_11_CONFIGURATION);
121  RETURN_X(OID_802_11_STATISTICS);
122  RETURN_X(OID_802_11_ADD_WEP);
123  RETURN_X(OID_802_11_REMOVE_WEP);
124  RETURN_X(OID_802_11_DISASSOCIATE);
125  RETURN_X(OID_802_11_POWER_MODE);
126  RETURN_X(OID_802_11_BSSID_LIST);
128  RETURN_X(OID_802_11_PRIVACY_FILTER);
129  RETURN_X(OID_802_11_BSSID_LIST_SCAN);
130  RETURN_X(OID_802_11_WEP_STATUS);
131  RETURN_X(OID_802_11_RELOAD_DEFAULTS);
132 
133  /* OID_GEN_MINIPORT_INFO constants */
134  RETURN_X(NDIS_MINIPORT_BUS_MASTER);
135  RETURN_X(NDIS_MINIPORT_WDM_DRIVER);
136  RETURN_X(NDIS_MINIPORT_SG_LIST);
143  RETURN_X(NDIS_MINIPORT_IS_NDIS_5);
144  RETURN_X(NDIS_MINIPORT_IS_CO);
145  RETURN_X(NDIS_MINIPORT_DESERIALIZE);
148  RETURN_X(NDIS_MINIPORT_NETBOOT_CARD);
149  RETURN_X(NDIS_MINIPORT_PM_SUPPORTED);
152  RETURN_X(NDIS_MINIPORT_HIDDEN);
153  RETURN_X(NDIS_MINIPORT_SWENUM);
158  RETURN_X(NDIS_MINIPORT_64BITS_DMA);
159  default:
160  return "<UNKNOWN>";
161  }
162 #else
163  return "!DBG";
164 #endif
165 }
#define OID_GEN_PHYSICAL_MEDIUM
Definition: ntddndis.h:238
#define OID_GEN_NETWORK_LAYER_ADDRESSES
Definition: ntddndis.h:230
#define OID_802_11_DESIRED_RATES
Definition: ntddndis.h:307
#define OID_802_11_WEP_STATUS
Definition: ntddndis.h:318
#define NDIS_MINIPORT_HIDDEN
Definition: ntddndis.h:340
#define OID_802_11_POWER_MODE
Definition: ntddndis.h:313
#define OID_GEN_DIRECTED_BYTES_RCV
Definition: ntddndis.h:254
#define OID_GEN_VENDOR_DRIVER_VERSION
Definition: ntddndis.h:228
#define OID_802_11_NUMBER_OF_ANTENNAS
Definition: ntddndis.h:303
#define OID_GEN_VLAN_ID
Definition: ntddndis.h:234
#define OID_GEN_RECEIVE_BUFFER_SPACE
Definition: ntddndis.h:215
#define OID_GEN_MEDIA_CAPABILITIES
Definition: ntddndis.h:237
#define OID_802_11_BSSID
Definition: ntddndis.h:293
#define NDIS_MINIPORT_INTERMEDIATE_DRIVER
Definition: ntddndis.h:330
#define NDIS_MINIPORT_64BITS_DMA
Definition: ntddndis.h:346
#define OID_GEN_MAC_OPTIONS
Definition: ntddndis.h:225
#define NDIS_MINIPORT_SUPPORTS_MAC_ADDRESS_OVERWRITE
Definition: ntddndis.h:338
#define OID_GEN_RCV_ERROR
Definition: ntddndis.h:244
#define OID_GEN_DIRECTED_FRAMES_XMIT
Definition: ntddndis.h:249
#define OID_GEN_CURRENT_PACKET_FILTER
Definition: ntddndis.h:220
#define OID_802_11_TX_ANTENNA_SELECTED
Definition: ntddndis.h:305
#define OID_GEN_RCV_CRC_ERROR
Definition: ntddndis.h:260
#define NDIS_MINIPORT_IGNORE_REQUEST_QUEUE
Definition: ntddndis.h:328
#define OID_GEN_HARDWARE_STATUS
Definition: ntddndis.h:208
#define NDIS_MINIPORT_REQUIRES_MEDIA_POLLING
Definition: ntddndis.h:334
#define OID_GEN_MEDIA_IN_USE
Definition: ntddndis.h:210
#define OID_GEN_GET_NETCARD_TIME
Definition: ntddndis.h:263
#define OID_GEN_MULTICAST_FRAMES_RCV
Definition: ntddndis.h:257
#define OID_802_3_XMIT_DEFERRED
Definition: ntddndis.h:284
#define OID_802_11_AUTHENTICATION_MODE
Definition: ntddndis.h:315
#define NDIS_MINIPORT_SUPPORTS_MEDIA_SENSE
Definition: ntddndis.h:335
#define OID_GEN_MACHINE_NAME
Definition: ntddndis.h:232
#define NDIS_MINIPORT_SWENUM
Definition: ntddndis.h:341
#define OID_802_11_ADD_WEP
Definition: ntddndis.h:310
#define OID_802_11_CONFIGURATION
Definition: ntddndis.h:308
#define OID_GEN_PROTOCOL_OPTIONS
Definition: ntddndis.h:224
#define OID_GEN_BROADCAST_FRAMES_XMIT
Definition: ntddndis.h:253
#define OID_802_3_MAXIMUM_LIST_SIZE
Definition: ntddndis.h:279
#define OID_GEN_RESET_COUNTS
Definition: ntddndis.h:267
#define OID_GEN_TRANSPORT_HEADER_OFFSET
Definition: ntddndis.h:231
#define OID_GEN_MEDIA_CONNECT_STATUS
Definition: ntddndis.h:226
#define OID_GEN_TRANSMIT_BUFFER_SPACE
Definition: ntddndis.h:214
#define NDIS_MINIPORT_IGNORE_TOKEN_RING_ERRORS
Definition: ntddndis.h:329
#define OID_GEN_MAXIMUM_LOOKAHEAD
Definition: ntddndis.h:211
#define NDIS_MINIPORT_SUPPORTS_CANCEL_SEND_PACKETS
Definition: ntddndis.h:345
#define OID_GEN_RCV_OK
Definition: ntddndis.h:242
#define NDIS_MINIPORT_SG_LIST
Definition: ntddndis.h:324
#define NDIS_MINIPORT_USES_SAFE_BUFFER_APIS
Definition: ntddndis.h:339
#define OID_GEN_TRANSMIT_QUEUE_LENGTH
Definition: ntddndis.h:261
#define OID_802_11_PRIVACY_FILTER
Definition: ntddndis.h:316
#define OID_GEN_MINIPORT_INFO
Definition: ntddndis.h:270
#define OID_802_11_NETWORK_TYPE_IN_USE
Definition: ntddndis.h:296
#define OID_802_11_BSSID_LIST
Definition: ntddndis.h:314
#define NDIS_MINIPORT_PM_SUPPORTED
Definition: ntddndis.h:337
#define OID_GEN_GET_TIME_CAPS
Definition: ntddndis.h:262
#define OID_802_11_RTS_THRESHOLD
Definition: ntddndis.h:302
#define OID_802_3_XMIT_HEARTBEAT_FAILURE
Definition: ntddndis.h:288
#define OID_GEN_SUPPORTED_LIST
Definition: ntddndis.h:207
#define OID_802_11_BSSID_LIST_SCAN
Definition: ntddndis.h:317
#define OID_GEN_DEVICE_PROFILE
Definition: ntddndis.h:265
#define OID_GEN_VENDOR_ID
Definition: ntddndis.h:218
#define OID_GEN_RESET_VERIFY_PARAMETERS
Definition: ntddndis.h:271
#define OID_802_11_NETWORK_TYPES_SUPPORTED
Definition: ntddndis.h:295
#define OID_GEN_VENDOR_DESCRIPTION
Definition: ntddndis.h:219
#define OID_GEN_XMIT_OK
Definition: ntddndis.h:241
#define NDIS_MINIPORT_SUPPORTS_MEDIA_QUERY
Definition: ntddndis.h:325
#define OID_802_11_RSSI_TRIGGER
Definition: ntddndis.h:299
#define OID_GEN_MAXIMUM_FRAME_SIZE
Definition: ntddndis.h:212
#define OID_802_11_RX_ANTENNA_SELECTED
Definition: ntddndis.h:304
#define OID_802_11_RELOAD_DEFAULTS
Definition: ntddndis.h:319
#define OID_GEN_MAXIMUM_TOTAL_SIZE
Definition: ntddndis.h:223
#define NDIS_MINIPORT_IGNORE_PACKET_QUEUE
Definition: ntddndis.h:327
#define OID_802_11_DISASSOCIATE
Definition: ntddndis.h:312
#define OID_802_3_XMIT_UNDERRUN
Definition: ntddndis.h:287
#define OID_GEN_NETCARD_LOAD
Definition: ntddndis.h:264
#define OID_802_3_RCV_OVERRUN
Definition: ntddndis.h:286
#define OID_802_3_RCV_ERROR_ALIGNMENT
Definition: ntddndis.h:281
#define NDIS_MINIPORT_INDICATES_PACKETS
Definition: ntddndis.h:326
#define OID_GEN_DIRECTED_FRAMES_RCV
Definition: ntddndis.h:255
#define NDIS_MINIPORT_WDM_DRIVER
Definition: ntddndis.h:323
#define NDIS_MINIPORT_DESERIALIZE
Definition: ntddndis.h:333
#define OID_802_11_REMOVE_WEP
Definition: ntddndis.h:311
#define OID_802_11_SUPPORTED_RATES
Definition: ntddndis.h:306
#define OID_802_3_XMIT_ONE_COLLISION
Definition: ntddndis.h:282
#define OID_GEN_BROADCAST_BYTES_RCV
Definition: ntddndis.h:258
#define OID_GEN_MEDIA_SENSE_COUNTS
Definition: ntddndis.h:268
#define OID_GEN_BROADCAST_FRAMES_RCV
Definition: ntddndis.h:259
#define OID_802_11_STATISTICS
Definition: ntddndis.h:309
#define OID_GEN_LINK_SPEED
Definition: ntddndis.h:213
#define OID_802_3_XMIT_MORE_COLLISIONS
Definition: ntddndis.h:283
#define OID_GEN_BROADCAST_BYTES_XMIT
Definition: ntddndis.h:252
#define OID_802_3_MULTICAST_LIST
Definition: ntddndis.h:278
#define OID_802_11_FRAGMENTATION_THRESHOLD
Definition: ntddndis.h:301
#define NDIS_MINIPORT_IS_NDIS_5
Definition: ntddndis.h:331
#define OID_GEN_MAXIMUM_SEND_PACKETS
Definition: ntddndis.h:227
#define OID_GEN_MULTICAST_FRAMES_XMIT
Definition: ntddndis.h:251
#define NDIS_MINIPORT_SURPRISE_REMOVE_OK
Definition: ntddndis.h:342
#define OID_GEN_MULTICAST_BYTES_XMIT
Definition: ntddndis.h:250
#define OID_GEN_MEDIA_SUPPORTED
Definition: ntddndis.h:209
#define NDIS_MINIPORT_NETBOOT_CARD
Definition: ntddndis.h:336
#define NDIS_MINIPORT_BUS_MASTER
Definition: ntddndis.h:322
#define NDIS_MINIPORT_IS_CO
Definition: ntddndis.h:332
#define OID_GEN_XMIT_ERROR
Definition: ntddndis.h:243
#define OID_802_3_MAC_OPTIONS
Definition: ntddndis.h:280
#define OID_802_11_RSSI
Definition: ntddndis.h:298
#define OID_GEN_TRANSMIT_BLOCK_SIZE
Definition: ntddndis.h:216
#define OID_GEN_MULTICAST_BYTES_RCV
Definition: ntddndis.h:256
#define OID_GEN_RECEIVE_BLOCK_SIZE
Definition: ntddndis.h:217
#define NDIS_MINIPORT_HARDWARE_DEVICE
Definition: ntddndis.h:344
#define OID_GEN_FRIENDLY_NAME
Definition: ntddndis.h:269
#define OID_802_3_XMIT_MAX_COLLISIONS
Definition: ntddndis.h:285
#define NDIS_MINIPORT_NO_HALT_ON_SUSPEND
Definition: ntddndis.h:343
#define OID_802_11_SSID
Definition: ntddndis.h:294
#define OID_802_3_PERMANENT_ADDRESS
Definition: ntddndis.h:276
#define OID_802_3_CURRENT_ADDRESS
Definition: ntddndis.h:277
#define OID_802_3_XMIT_LATE_COLLISIONS
Definition: ntddndis.h:290
#define OID_802_11_INFRASTRUCTURE_MODE
Definition: ntddndis.h:300
#define OID_GEN_SUPPORTED_GUIDS
Definition: ntddndis.h:229
#define OID_802_11_TX_POWER_LEVEL
Definition: ntddndis.h:297
#define OID_GEN_CURRENT_LOOKAHEAD
Definition: ntddndis.h:221
#define OID_GEN_DRIVER_VERSION
Definition: ntddndis.h:222
#define OID_802_3_XMIT_TIMES_CRS_LOST
Definition: ntddndis.h:289
#define OID_GEN_DIRECTED_BYTES_XMIT
Definition: ntddndis.h:248
#define OID_GEN_RNDIS_CONFIG_PARAMETER
Definition: ntddndis.h:233
#define OID_GEN_INIT_TIME_MS
Definition: ntddndis.h:266
#define OID_GEN_RCV_NO_BUFFER
Definition: ntddndis.h:245

Referenced by MiniportQueryInformation(), and MiniportSetInformation().