ReactOS 0.4.15-dev-5895-g2687c1b
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);
22 RETURN_X(OID_GEN_MEDIA_IN_USE);
25 RETURN_X(OID_GEN_LINK_SPEED);
30 RETURN_X(OID_GEN_VENDOR_ID);
34 RETURN_X(OID_GEN_DRIVER_VERSION);
37 RETURN_X(OID_GEN_MAC_OPTIONS);
44 RETURN_X(OID_GEN_MACHINE_NAME);
46 RETURN_X(OID_GEN_VLAN_ID);
47
48 /* Optional OIDs */
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);
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
92 RETURN_X(OID_802_3_MAC_OPTIONS);
98 RETURN_X(OID_802_3_RCV_OVERRUN);
103
104 /* IEEE 802.11 (WLAN) OIDs */
105 RETURN_X(OID_802_11_BSSID);
106 RETURN_X(OID_802_11_SSID);
110 RETURN_X(OID_802_11_RSSI);
111 RETURN_X(OID_802_11_RSSI_TRIGGER);
114 RETURN_X(OID_802_11_RTS_THRESHOLD);
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);
130 RETURN_X(OID_802_11_WEP_STATUS);
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);
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_MULTICAST_FRAMES_XMIT
Definition: ntddndis.h:277
#define NDIS_MINIPORT_IGNORE_REQUEST_QUEUE
Definition: ntddndis.h:413
#define NDIS_MINIPORT_NO_HALT_ON_SUSPEND
Definition: ntddndis.h:428
#define OID_GEN_TRANSMIT_BLOCK_SIZE
Definition: ntddndis.h:242
#define OID_GEN_DIRECTED_BYTES_RCV
Definition: ntddndis.h:280
#define NDIS_MINIPORT_SURPRISE_REMOVE_OK
Definition: ntddndis.h:427
#define OID_GEN_PROTOCOL_OPTIONS
Definition: ntddndis.h:250
#define NDIS_MINIPORT_INTERMEDIATE_DRIVER
Definition: ntddndis.h:415
#define OID_GEN_DIRECTED_FRAMES_XMIT
Definition: ntddndis.h:275
#define NDIS_MINIPORT_IGNORE_TOKEN_RING_ERRORS
Definition: ntddndis.h:414
#define OID_GEN_XMIT_OK
Definition: ntddndis.h:267
#define OID_GEN_MAXIMUM_TOTAL_SIZE
Definition: ntddndis.h:249
#define OID_802_11_PRIVACY_FILTER
Definition: ntddndis.h:342
#define OID_802_11_BSSID_LIST
Definition: ntddndis.h:340
#define OID_GEN_BROADCAST_BYTES_XMIT
Definition: ntddndis.h:278
#define OID_GEN_XMIT_ERROR
Definition: ntddndis.h:269
#define OID_GEN_VENDOR_DRIVER_VERSION
Definition: ntddndis.h:254
#define OID_802_3_PERMANENT_ADDRESS
Definition: ntddndis.h:302
#define OID_GEN_LINK_SPEED
Definition: ntddndis.h:239
#define OID_GEN_VENDOR_ID
Definition: ntddndis.h:244
#define OID_802_3_RCV_OVERRUN
Definition: ntddndis.h:312
#define OID_802_11_NUMBER_OF_ANTENNAS
Definition: ntddndis.h:329
#define OID_GEN_CURRENT_PACKET_FILTER
Definition: ntddndis.h:246
#define NDIS_MINIPORT_BUS_MASTER
Definition: ntddndis.h:407
#define OID_GEN_RCV_NO_BUFFER
Definition: ntddndis.h:271
#define OID_802_11_SSID
Definition: ntddndis.h:320
#define NDIS_MINIPORT_SG_LIST
Definition: ntddndis.h:409
#define OID_802_3_XMIT_HEARTBEAT_FAILURE
Definition: ntddndis.h:314
#define OID_GEN_PHYSICAL_MEDIUM
Definition: ntddndis.h:264
#define OID_802_11_NETWORK_TYPE_IN_USE
Definition: ntddndis.h:322
#define OID_802_11_ADD_WEP
Definition: ntddndis.h:336
#define OID_802_3_XMIT_ONE_COLLISION
Definition: ntddndis.h:308
#define OID_802_3_XMIT_MORE_COLLISIONS
Definition: ntddndis.h:309
#define OID_GEN_NETCARD_LOAD
Definition: ntddndis.h:290
#define OID_802_3_XMIT_MAX_COLLISIONS
Definition: ntddndis.h:311
#define OID_802_11_NETWORK_TYPES_SUPPORTED
Definition: ntddndis.h:321
#define OID_GEN_RECEIVE_BUFFER_SPACE
Definition: ntddndis.h:241
#define OID_802_3_XMIT_TIMES_CRS_LOST
Definition: ntddndis.h:315
#define OID_802_3_MAXIMUM_LIST_SIZE
Definition: ntddndis.h:305
#define OID_GEN_RNDIS_CONFIG_PARAMETER
Definition: ntddndis.h:259
#define OID_GEN_TRANSPORT_HEADER_OFFSET
Definition: ntddndis.h:257
#define NDIS_MINIPORT_SUPPORTS_MEDIA_SENSE
Definition: ntddndis.h:420
#define NDIS_MINIPORT_SWENUM
Definition: ntddndis.h:426
#define OID_GEN_INIT_TIME_MS
Definition: ntddndis.h:292
#define OID_GEN_DRIVER_VERSION
Definition: ntddndis.h:248
#define OID_GEN_DEVICE_PROFILE
Definition: ntddndis.h:291
#define OID_802_3_XMIT_UNDERRUN
Definition: ntddndis.h:313
#define OID_802_3_XMIT_LATE_COLLISIONS
Definition: ntddndis.h:316
#define OID_802_3_MAC_OPTIONS
Definition: ntddndis.h:306
#define NDIS_MINIPORT_SUPPORTS_CANCEL_SEND_PACKETS
Definition: ntddndis.h:430
#define OID_802_11_WEP_STATUS
Definition: ntddndis.h:344
#define OID_802_3_CURRENT_ADDRESS
Definition: ntddndis.h:303
#define NDIS_MINIPORT_IS_NDIS_5
Definition: ntddndis.h:416
#define OID_GEN_RESET_COUNTS
Definition: ntddndis.h:293
#define OID_GEN_RESET_VERIFY_PARAMETERS
Definition: ntddndis.h:297
#define OID_GEN_GET_TIME_CAPS
Definition: ntddndis.h:288
#define OID_802_3_MULTICAST_LIST
Definition: ntddndis.h:304
#define NDIS_MINIPORT_IGNORE_PACKET_QUEUE
Definition: ntddndis.h:412
#define OID_GEN_SUPPORTED_GUIDS
Definition: ntddndis.h:255
#define OID_802_11_BSSID_LIST_SCAN
Definition: ntddndis.h:343
#define OID_802_11_STATISTICS
Definition: ntddndis.h:335
#define OID_GEN_DIRECTED_FRAMES_RCV
Definition: ntddndis.h:281
#define OID_GEN_NETWORK_LAYER_ADDRESSES
Definition: ntddndis.h:256
#define OID_GEN_TRANSMIT_BUFFER_SPACE
Definition: ntddndis.h:240
#define OID_GEN_MEDIA_SUPPORTED
Definition: ntddndis.h:235
#define OID_802_11_SUPPORTED_RATES
Definition: ntddndis.h:332
#define OID_802_11_RX_ANTENNA_SELECTED
Definition: ntddndis.h:330
#define NDIS_MINIPORT_INDICATES_PACKETS
Definition: ntddndis.h:411
#define OID_GEN_FRIENDLY_NAME
Definition: ntddndis.h:295
#define OID_GEN_BROADCAST_FRAMES_XMIT
Definition: ntddndis.h:279
#define NDIS_MINIPORT_64BITS_DMA
Definition: ntddndis.h:431
#define OID_GEN_BROADCAST_FRAMES_RCV
Definition: ntddndis.h:285
#define OID_GEN_MAXIMUM_FRAME_SIZE
Definition: ntddndis.h:238
#define OID_GEN_MEDIA_CAPABILITIES
Definition: ntddndis.h:263
#define OID_GEN_RCV_CRC_ERROR
Definition: ntddndis.h:286
#define OID_GEN_MEDIA_IN_USE
Definition: ntddndis.h:236
#define OID_GEN_MEDIA_CONNECT_STATUS
Definition: ntddndis.h:252
#define OID_GEN_DIRECTED_BYTES_XMIT
Definition: ntddndis.h:274
#define OID_GEN_RCV_OK
Definition: ntddndis.h:268
#define OID_802_11_RTS_THRESHOLD
Definition: ntddndis.h:328
#define OID_GEN_MAXIMUM_LOOKAHEAD
Definition: ntddndis.h:237
#define OID_GEN_BROADCAST_BYTES_RCV
Definition: ntddndis.h:284
#define OID_802_3_RCV_ERROR_ALIGNMENT
Definition: ntddndis.h:307
#define OID_802_11_RELOAD_DEFAULTS
Definition: ntddndis.h:347
#define OID_GEN_VLAN_ID
Definition: ntddndis.h:260
#define OID_802_11_POWER_MODE
Definition: ntddndis.h:339
#define OID_802_11_RSSI
Definition: ntddndis.h:324
#define OID_GEN_RCV_ERROR
Definition: ntddndis.h:270
#define OID_802_11_BSSID
Definition: ntddndis.h:319
#define OID_GEN_CURRENT_LOOKAHEAD
Definition: ntddndis.h:247
#define OID_802_11_RSSI_TRIGGER
Definition: ntddndis.h:325
#define OID_802_11_CONFIGURATION
Definition: ntddndis.h:334
#define NDIS_MINIPORT_HIDDEN
Definition: ntddndis.h:425
#define NDIS_MINIPORT_REQUIRES_MEDIA_POLLING
Definition: ntddndis.h:419
#define OID_GEN_MAC_OPTIONS
Definition: ntddndis.h:251
#define OID_GEN_VENDOR_DESCRIPTION
Definition: ntddndis.h:245
#define NDIS_MINIPORT_PM_SUPPORTED
Definition: ntddndis.h:422
#define OID_GEN_SUPPORTED_LIST
Definition: ntddndis.h:233
#define OID_802_11_FRAGMENTATION_THRESHOLD
Definition: ntddndis.h:327
#define OID_802_11_DESIRED_RATES
Definition: ntddndis.h:333
#define NDIS_MINIPORT_SUPPORTS_MAC_ADDRESS_OVERWRITE
Definition: ntddndis.h:423
#define NDIS_MINIPORT_IS_CO
Definition: ntddndis.h:417
#define OID_GEN_MULTICAST_BYTES_XMIT
Definition: ntddndis.h:276
#define OID_GEN_MULTICAST_BYTES_RCV
Definition: ntddndis.h:282
#define OID_802_11_INFRASTRUCTURE_MODE
Definition: ntddndis.h:326
#define OID_GEN_GET_NETCARD_TIME
Definition: ntddndis.h:289
#define OID_802_3_XMIT_DEFERRED
Definition: ntddndis.h:310
#define NDIS_MINIPORT_USES_SAFE_BUFFER_APIS
Definition: ntddndis.h:424
#define OID_GEN_RECEIVE_BLOCK_SIZE
Definition: ntddndis.h:243
#define NDIS_MINIPORT_DESERIALIZE
Definition: ntddndis.h:418
#define OID_802_11_TX_ANTENNA_SELECTED
Definition: ntddndis.h:331
#define OID_802_11_REMOVE_WEP
Definition: ntddndis.h:337
#define NDIS_MINIPORT_NETBOOT_CARD
Definition: ntddndis.h:421
#define OID_GEN_MAXIMUM_SEND_PACKETS
Definition: ntddndis.h:253
#define NDIS_MINIPORT_WDM_DRIVER
Definition: ntddndis.h:408
#define OID_GEN_TRANSMIT_QUEUE_LENGTH
Definition: ntddndis.h:287
#define OID_GEN_HARDWARE_STATUS
Definition: ntddndis.h:234
#define NDIS_MINIPORT_SUPPORTS_MEDIA_QUERY
Definition: ntddndis.h:410
#define OID_802_11_TX_POWER_LEVEL
Definition: ntddndis.h:323
#define OID_GEN_MACHINE_NAME
Definition: ntddndis.h:258
#define OID_802_11_DISASSOCIATE
Definition: ntddndis.h:338
#define OID_802_11_AUTHENTICATION_MODE
Definition: ntddndis.h:341
#define OID_GEN_MINIPORT_INFO
Definition: ntddndis.h:296
#define OID_GEN_MEDIA_SENSE_COUNTS
Definition: ntddndis.h:294
#define OID_GEN_MULTICAST_FRAMES_RCV
Definition: ntddndis.h:283
#define NDIS_MINIPORT_HARDWARE_DEVICE
Definition: ntddndis.h:429

Referenced by MiniportQueryInformation(), and MiniportSetInformation().