This repository has been archived by the owner on Nov 9, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 41
/
mp_dbg.h
856 lines (812 loc) · 63.7 KB
/
mp_dbg.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
/*
* Copyright 2018 NXP
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted (subject to the limitations in the disclaimer
* below) provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* * Neither the name of NXP nor the names of its contributors may be used to
* endorse or promote products derived from this software without specific prior
* written permission.
*
* NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE GRANTED BY THIS
* LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
*/
#ifndef _MP_DBG_H
#define _MP_DBG_H
#ifdef DBG
#pragma warning(disable:4189) // local variable is initialized but not used
#pragma warning(disable:4152) // non standard extension, function/data ptr conversion in expression used
void Dbg_PrintOidDescription(_In_ PMP_ADAPTER pAdapter, _In_ PNDIS_OID_REQUEST NdisRequest, _In_ NTSTATUS Status);
void Dbg_DumpMACRegs(_In_ PMP_ADAPTER pAdapter);
void Dbg_DumpRxStats(_In_ PMP_ADAPTER pAdapter);
void Dbg_DumpTxStats(_In_ PMP_ADAPTER pAdapter);
void Dbg_DumpStatistics(_In_ PMP_ADAPTER pAdapter);
void Dbg_DumpFifoTrasholdsAndPauseFrameDuration(_In_ PMP_ADAPTER pAdapter);
void Dbg_PrintMDIODeviceInfo(_In_ MP_MDIO_DEVICE *pMDIODev, _In_ char* prefix);
void Dbg_PrintMDIOBusInfo(_In_ MP_MDIO_BUS *pMDIOBus, _In_ char* prefix);
void Dbg_PrintENETDeviceSettings(_In_ MP_ADAPTER *pENETDev);
const char* Dbg_GetMpStateMachineStateName(_In_ MP_STATE i);
const char* Dbg_GetMpMediaConnectStateName(_In_ NDIS_MEDIA_CONNECT_STATE i);
const char* Dbg_GetMpMediaDuplexStateName(_In_ NDIS_MEDIA_CONNECT_STATE i);
const char* Dbg_GetNdisStatusName(_In_ NDIS_STATUS i);
const char* Dbg_GetNdisOidName(_In_ NDIS_OID i);
const char* Dbg_GetNdisOidRequestTypeName(_In_ NDIS_REQUEST_TYPE i);
const char* Dbg_GetNdisPowerStateName(_In_ NDIS_DEVICE_POWER_STATE i);
const char* Dbg_GetEnetPhyInterfaceTypeName(_In_ MP_MDIO_PHY_INTERFACE_TYPE i);
const char* Dbg_GetACPIFunctionName(_In_ ULONG i);
const char* Dbg_GetMIICallbackName(_In_ void * FunctionAddress);
// DO NOT COMMENT OUT ERROR MACROS in debug build
#define DBG_DRV_PRINT_ERROR(_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s ERROR !!!"_format_str_,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pDriver?pDriver->MDIODrv_DeviceName:"ENETx",__FUNCTION__,__VA_ARGS__)
#define DBG_DRV_PRINT_ERROR_WITH_STATUS(_str_) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s ERROR !!!"_str_" Status %s\n",KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pDriver?pDriver->MDIODrv_DeviceName:"ENETx",__FUNCTION__,Dbg_GetNdisStatusName(Status))
#define DBG_DRV_PRINT_ERROR_WITH_STATUS_AND_PARAMS(_str_,_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s ERROR !!!"_str_" Status %s, "_format_str_"\n",KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pDriver?pDriver->MDIODrv_DeviceName:"ENETx",__FUNCTION__,Dbg_GetNdisStatusName(Status),__VA_ARGS__)
#define DBG_ENET_DEV_PRINT_ERROR(_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s ERROR !!!"_format_str_,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__,__VA_ARGS__)
#define DBG_ENET_DEV_PRINT_ERROR_WITH_STATUS(_str_) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s ERROR !!!"_str_" Status %s\n",KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__,Dbg_GetNdisStatusName(Status))
#define DBG_ENET_DEV_PRINT_ERROR_WITH_STATUS_AND_PARAMS(_str_,_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s ERROR !!!"_str_" Status %s, "_format_str_"\n",KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__,Dbg_GetNdisStatusName(Status),__VA_ARGS__)
#define DBG_ENET_DEV_ISR_PRINT_ERROR(_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s ERROR !!!"_format_str_,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__,__VA_ARGS__)
#define DBG_ENET_DEV_ISR_PRINT_ERROR_WITH_STATUS(_str_) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s ERROR !!!"_str_" Status %s\n",KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__,Dbg_GetNdisStatusName(Status))
#define DBG_ENET_DEV_ISR_PRINT_ERROR_WITH_STATUS_AND_PARAMS(_str_,_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s ERROR !!!"_str_" Status %s, "_format_str_"\n",KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__,Dbg_GetNdisStatusName(Status),__VA_ARGS__)
#define DBG_ENET_DEV_DPC_PRINT_ERROR(_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s ERROR !!!"_format_str_,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__,__VA_ARGS__)
#define DBG_ENET_DEV_DPC_PRINT_ERROR_WITH_STATUS(_str_) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s ERROR !!!"_str_" Status %s\n",KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__,Dbg_GetNdisStatusName(Status))
#define DBG_ENET_DEV_DPC_PRINT_ERROR_WITH_STATUS_AND_PARAMS(_str_,_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s ERROR !!!"_str_" Status %s, "_format_str_"\n",KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__,Dbg_GetNdisStatusName(Status),__VA_ARGS__)
#define DBG_ENET_DEV_RX_PRINT_ERROR(_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s ERROR !!!"_format_str_,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__,__VA_ARGS__)
#define DBG_ENET_DEV_RX_PRINT_ERROR_WITH_STATUS(_str_) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s ERROR !!!"_str_" Status %s\n",KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__,Dbg_GetNdisStatusName(Status))
#define DBG_ENET_DEV_RX_PRINT_ERROR_WITH_STATUS_AND_PARAMS(_str_,_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s ERROR !!!"_str_" Status %s, "_format_str_"\n",KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__,Dbg_GetNdisStatusName(Status),__VA_ARGS__)
#define DBG_ENET_DEV_TX_PRINT_ERROR(_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s ERROR !!!"_format_str_,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__,__VA_ARGS__)
#define DBG_ENET_DEV_TX_PRINT_ERROR_WITH_STATUS(_str_) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s ERROR !!!"_str_" Status %s\n",KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__,Dbg_GetNdisStatusName(Status))
#define DBG_ENET_DEV_TX_PRINT_ERROR_WITH_STATUS_AND_PARAMS(_str_,_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s ERROR !!!"_str_" Status %s, "_format_str_"\n",KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__,Dbg_GetNdisStatusName(Status),__VA_ARGS__)
#define DBG_ENET_DEV_DPC_RX_PRINT_ERROR(_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s ERROR !!!"_format_str_,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__,__VA_ARGS__)
#define DBG_ENET_DEV_DPC_RX_PRINT_ERROR_WITH_STATUS(_str_) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s ERROR !!!"_str_" Status %s\n",KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__,Dbg_GetNdisStatusName(Status))
#define DBG_ENET_DEV_DPC_RX_PRINT_ERROR_WITH_STATUS_AND_PARAMS(_str_,_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s ERROR !!!"_str_" Status %s, "_format_str_"\n",KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__,Dbg_GetNdisStatusName(Status),__VA_ARGS__)
#define DBG_ENET_DEV_DPC_TX_PRINT_ERROR(_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s ERROR !!!"_format_str_,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__,__VA_ARGS__)
#define DBG_ENET_DEV_DPC_TX_PRINT_ERROR_WITH_STATUS(_str_) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s ERROR !!!"_str_" Status %s\n",KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__,Dbg_GetNdisStatusName(Status))
#define DBG_ENET_DEV_DPC_TX_PRINT_ERROR_WITH_STATUS_AND_PARAMS(_str_,_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s ERROR !!!"_str_" Status %s, "_format_str_"\n",KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__,Dbg_GetNdisStatusName(Status),__VA_ARGS__)
#define DBG_ENET_DEV_OIDS_PRINT_ERROR(_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s ERROR !!!"_format_str_,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__,__VA_ARGS__)
#define DBG_ENET_DEV_OIDS_PRINT_ERROR_WITH_STATUS(_str_) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s ERROR !!!"_str_" Status %s\n",KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__,Dbg_GetNdisStatusName(Status))
#define DBG_ENET_DEV_OIDS_PRINT_ERROR_WITH_STATUS_AND_PARAMS(_str_,_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s ERROR !!!"_str_" Status %s, "_format_str_"\n",KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__,Dbg_GetNdisStatusName(Status),__VA_ARGS__)
#define DBG_PHY_DEV_PRINT_ERROR(_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s ERROR !!!"_format_str_,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pPHYDev?pPHYDev->PHYDev_DeviceName:"ENETx",__FUNCTION__,__VA_ARGS__)
#define DBG_PHY_DEV_PRINT_ERROR_WITH_STATUS(_str_) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s ERROR !!!"_str_" Status %s\n",KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pPHYDev?pPHYDev->PHYDev_DeviceName:"ENETx",__FUNCTION__,Dbg_GetNdisStatusName(Status))
#define DBG_PHY_DEV_PRINT_ERROR_WITH_STATUS_AND_PARAMS(_str_,_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s ERROR !!!"_str_" Status %s, "_format_str_"\n",KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pPHYDev?pPHYDev->PHYDev_DeviceName:"ENETx",__FUNCTION__,Dbg_GetNdisStatusName(Status),__VA_ARGS__)
#define DBG_ACPI_PRINT_ERROR(_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s ERROR !!!"_format_str_,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__,__VA_ARGS__)
#define DBG_ACPI_PRINT_ERROR_WITH_STATUS(_str_) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s ERROR !!!"_str_" Status %s\n",KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__,Dbg_GetNdisStatusName(Status))
#define DBG_ACPI_PRINT_ERROR_WITH_STATUS_AND_PARAMS(_str_,_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s ERROR !!!"_str_" Status %s, "_format_str_"\n",KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__,Dbg_GetNdisStatusName(Status),__VA_ARGS__)
#define DBG_SM_PRINT_ERROR(_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s ERROR !!!"_format_str_,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__,__VA_ARGS__)
#define DBG_SM_PRINT_ERROR_WITH_STATUS(_str_) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s ERROR !!!"_str_" Status %s\n",KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__,Dbg_GetNdisStatusName(Status))
#define DBG_SM_PRINT_ERROR_WITH_STATUS_AND_PARAMS(_str_,_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s ERROR !!!"_str_" Status %s, "_format_str_"\n",KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__,Dbg_GetNdisStatusName(Status),__VA_ARGS__)
#define DBG_MDIO_BUS_PRINT_ERROR(_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s ERROR !!!"_format_str_,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pMDIOBus?pMDIOBus->MDIOBus_DeviceName:"MDIOx",__FUNCTION__,__VA_ARGS__)
#define DBG_MDIO_BUS_PRINT_ERROR_WITH_STATUS(_str_) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s ERROR !!!"_str_" Status %s\n",KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pMDIOBus?pMDIOBus->MDIOBus_DeviceName:"MDIOx",__FUNCTION__,Dbg_GetNdisStatusName(Status))
#define DBG_MDIO_BUS_PRINT_ERROR_WITH_STATUS_AND_PARAMS(_str_,_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s ERROR !!!"_str_" Status %s, "_format_str_"\n",KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pMDIOBus?pMDIOBus->MDIOBus_DeviceName:"MDIOx",__FUNCTION__,Dbg_GetNdisStatusName(Status),__VA_ARGS__)
#define DBG_MDIO_DEV_PRINT_ERROR(_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s ERROR !!!"_format_str_,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pMDIODev?pMDIODev->MDIODev_DeviceName:"MDIOx(ENETx",__FUNCTION__,__VA_ARGS__)
#define DBG_MDIO_DEV_PRINT_ERROR_WITH_STATUS(_str_) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s ERROR !!!"_str_" Status %s\n",KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pMDIODev?pMDIODev->MDIODev_DeviceName:"MDIOx(ENETx",__FUNCTION__,Dbg_GetNdisStatusName(Status))
#define DBG_MDIO_DEV_PRINT_ERROR_WITH_STATUS_AND_PARAMS(_str_,_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s ERROR !!!"_str_" Status %s, "_format_str_"\n",KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pMDIODev?pMDIODev->MDIODev_DeviceName:"MDIOx(ENETx",__FUNCTION__,Dbg_GetNdisStatusName(Status),__VA_ARGS__)
#define DBG_MDIO_DEV_CMD_PRINT_ERROR(_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s ERROR !!!"_format_str_,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pMDIODev?pMDIODev->MDIODev_DeviceName:"MDIOx(ENETx",__FUNCTION__,__VA_ARGS__)
#define DBG_MDIO_DEV_CMD_PRINT_ERROR_WITH_STATUS(_str_) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s ERROR !!!"_str_" Status %s\n",KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pMDIODev?pMDIODev->MDIODev_DeviceName:"MDIOx(ENETx",__FUNCTION__,Dbg_GetNdisStatusName(Status))
#define DBG_MDIO_DEV_CMD_PRINT_ERROR_WITH_STATUS_AND_PARAMS(_str_,_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s ERROR !!!"_str_" Status %s, "_format_str_"\n",KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pMDIODev?pMDIODev->MDIODev_DeviceName:"MDIOx(ENETx",__FUNCTION__,Dbg_GetNdisStatusName(Status),__VA_ARGS__)
// Uncomment next line for debug message printing
//#define DBG_MESSAGE_PRINTING
#ifdef DBG_MESSAGE_PRINTING
#define DBG_CODE(_line_) _line_
// Uncomment next line to print basic ENET HW configuration
#define DBG_PRINT_BASIC_ENET_CONFIGURATION(_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFF,_format_str_"\n",__VA_ARGS__)
// ENET driver specific macros - uncomment next line for message printing
//#define DBG_DRV
#ifdef DBG_DRV
#define DBG_DRV_CODE(_line_) _line_
#define DBG_DRV_METHOD_BEG() DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s +++\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pDriver?pDriver->MDIODrv_DeviceName:"ENETx",__FUNCTION__)
#define DBG_DRV_METHOD_BEG_WITH_PARAMS(_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s +++ "_format_str_"\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pDriver?pDriver->MDIODrv_DeviceName:"ENETx",__FUNCTION__,__VA_ARGS__)
#define DBG_DRV_METHOD_END() DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s ---\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pDriver?pDriver->MDIODrv_DeviceName:"ENETx",__FUNCTION__)
#define DBG_DRV_METHOD_END_WITH_STATUS(_status_) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s --- [0x%.8X]\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pDriver?pDriver->MDIODrv_DeviceName:"ENETx",__FUNCTION__,_status_)
#define DBG_DRV_PRINT_WARNING(_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s WARNING "_format_str_"\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pDriver?pDriver->MDIODrv_DeviceName:"ENETx",__FUNCTION__,__VA_ARGS__)
#define DBG_DRV_PRINT_TRACE(_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s "_format_str_"\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pDriver?pDriver->MDIODrv_DeviceName:"ENETx",__FUNCTION__,__VA_ARGS__)
#define DBG_DRV_PRINT_INFO(_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s "_format_str_"\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pDriver?pDriver->MDIODrv_DeviceName:"ENETx",__FUNCTION__,__VA_ARGS__)
#endif //DBG_DRV
// ENET device specific macros - uncomment next line for message printing
//#define DBG_ENET_DEV
#ifdef DBG_ENET_DEV
#define DBG_ENET_DEV_CODE(_line_) _line_
#define DBG_ENET_DEV_METHOD_BEG() DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s +++\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__)
#define DBG_ENET_DEV_METHOD_BEG_WITH_PARAMS(_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s +++ "_format_str_"\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__,__VA_ARGS__)
#define DBG_ENET_DEV_METHOD_END() DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s ---\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__)
#define DBG_ENET_DEV_METHOD_END_WITH_STATUS(_status_) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s --- [0x%.8X]\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__,_status_)
#define DBG_ENET_DEV_PRINT_WARNING(_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s WARNING "_format_str_"\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__,__VA_ARGS__)
#define DBG_ENET_DEV_PRINT_TRACE(_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s "_format_str_"\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__,__VA_ARGS__)
#define DBG_ENET_DEV_PRINT_INFO(_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s "_format_str_"\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__,__VA_ARGS__)
#endif //DBG_ENET_DEV
// ENET device ISR specific macros - uncomment next line for message printing
//#define DBG_ENET_DEV_ISR
#ifdef DBG_ENET_DEV_ISR
#define DBG_ENET_DEV_ISR_CODE(_line_) _line_
#define DBG_ENET_DEV_ISR_METHOD_BEG() DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s +++\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__)
#define DBG_ENET_DEV_ISR_METHOD_BEG_WITH_PARAMS(_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s +++ "_format_str_"\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__,__VA_ARGS__)
#define DBG_ENET_DEV_ISR_METHOD_END() DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s ---\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__)
#define DBG_ENET_DEV_ISR_METHOD_END_WITH_STATUS(_status_) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s --- [0x%.8X]\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__,_status_)
#define DBG_ENET_DEV_ISR_PRINT_WARNING(_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s WARNING "_format_str_"\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__,__VA_ARGS__)
#define DBG_ENET_DEV_ISR_PRINT_TRACE(_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s "_format_str_"\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__,__VA_ARGS__)
#define DBG_ENET_DEV_ISR_PRINT_INFO(_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s "_format_str_"\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__,__VA_ARGS__)
#endif //DBG_ENET_DEV_ISR
// ENET device DPC specific macros - uncomment next line for message printing
//#define DBG_ENET_DEV_DPC
#ifdef DBG_ENET_DEV_DPC
#define DBG_ENET_DEV_DPC_CODE(_line_) _line_
#define DBG_ENET_DEV_DPC_METHOD_BEG() DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s +++\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__)
#define DBG_ENET_DEV_DPC_METHOD_BEG_WITH_PARAMS(_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s +++ "_format_str_"\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__,__VA_ARGS__)
#define DBG_ENET_DEV_DPC_METHOD_END() DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s ---\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__)
#define DBG_ENET_DEV_DPC_METHOD_END_WITH_STATUS(_status_) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s --- [0x%.8X]\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__,_status_)
#define DBG_ENET_DEV_DPC_PRINT_WARNING(_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s WARNING "_format_str_"\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__,__VA_ARGS__)
#define DBG_ENET_DEV_DPC_PRINT_TRACE(_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s "_format_str_"\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__,__VA_ARGS__)
#define DBG_ENET_DEV_DPC_PRINT_INFO(_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s "_format_str_"\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__,__VA_ARGS__)
#endif //DBG_ENET_DEV_DPC
// ENET device RX specific macros - uncomment next line for message printing
//#define DBG_ENET_DEV_RX
#ifdef DBG_ENET_DEV_RX
#define DBG_ENET_DEV_RX_CODE(_line_) _line_
#define DBG_ENET_DEV_RX_METHOD_BEG() DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s +++\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__)
#define DBG_ENET_DEV_RX_METHOD_BEG_WITH_PARAMS(_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s +++ "_format_str_"\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__,__VA_ARGS__)
#define DBG_ENET_DEV_RX_METHOD_END() DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s ---\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__)
#define DBG_ENET_DEV_RX_METHOD_END_WITH_STATUS(_status_) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s --- [0x%.8X]\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__,_status_)
#define DBG_ENET_DEV_RX_PRINT_WARNING(_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s WARNING "_format_str_"\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__,__VA_ARGS__)
#define DBG_ENET_DEV_RX_PRINT_TRACE(_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s "_format_str_"\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__,__VA_ARGS__)
#define DBG_ENET_DEV_RX_PRINT_INFO(_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s "_format_str_"\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__,__VA_ARGS__)
#endif //DBG_ENET_DEV_RX
// ENET device TX specific macros - uncomment next line for message printing
//#define DBG_ENET_DEV_TX
#ifdef DBG_ENET_DEV_TX
#define DBG_ENET_DEV_TX_CODE(_line_) _line_
#define DBG_ENET_DEV_TX_METHOD_BEG() DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s +++\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__)
#define DBG_ENET_DEV_TX_METHOD_BEG_WITH_PARAMS(_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s +++ "_format_str_"\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__,__VA_ARGS__)
#define DBG_ENET_DEV_TX_METHOD_END() DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s ---\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__)
#define DBG_ENET_DEV_TX_METHOD_END_WITH_STATUS(_status_) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s --- [0x%.8X]\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__,_status_)
#define DBG_ENET_DEV_TX_PRINT_WARNING(_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s WARNING "_format_str_"\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__,__VA_ARGS__)
#define DBG_ENET_DEV_TX_PRINT_TRACE(_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s "_format_str_"\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__,__VA_ARGS__)
#define DBG_ENET_DEV_TX_PRINT_INFO(_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s "_format_str_"\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__,__VA_ARGS__)
#endif //DBG_ENET_DEV_TX
// ENET device DPC RX specific macros - uncomment next line for message printing
//#define DBG_ENET_DEV_DPC_RX
#ifdef DBG_ENET_DEV_DPC_RX
#define DBG_ENET_DEV_DPC_RX_CODE(_line_) _line_
#define DBG_ENET_DEV_DPC_RX_METHOD_BEG() DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s +++\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__)
#define DBG_ENET_DEV_DPC_RX_METHOD_BEG_WITH_PARAMS(_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s +++ "_format_str_"\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__,__VA_ARGS__)
#define DBG_ENET_DEV_DPC_RX_METHOD_END() DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s ---\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__)
#define DBG_ENET_DEV_DPC_RX_METHOD_END_WITH_STATUS(_status_) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s --- [0x%.8X]\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__,_status_)
#define DBG_ENET_DEV_DPC_RX_PRINT_WARNING(_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s WARNING "_format_str_"\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__,__VA_ARGS__)
#define DBG_ENET_DEV_DPC_RX_PRINT_TRACE(_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s "_format_str_"\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__,__VA_ARGS__)
#define DBG_ENET_DEV_DPC_RX_PRINT_INFO(_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s "_format_str_"\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__,__VA_ARGS__)
#endif //DBG_ENET_DEV_DPC_RX
// ENET device DPC TX specific macros - uncomment next line for message printing
//#define DBG_ENET_DEV_DPC_TX
#ifdef DBG_ENET_DEV_DPC_TX
#define DBG_ENET_DEV_DPC_TX_CODE(_line_) _line_
#define DBG_ENET_DEV_DPC_TX_METHOD_BEG() DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s +++\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__)
#define DBG_ENET_DEV_DPC_TX_METHOD_BEG_WITH_PARAMS(_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s +++ "_format_str_"\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__,__VA_ARGS__)
#define DBG_ENET_DEV_DPC_TX_METHOD_END() DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s ---\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__)
#define DBG_ENET_DEV_DPC_TX_METHOD_END_WITH_STATUS(_status_) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s --- [0x%.8X]\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__,_status_)
#define DBG_ENET_DEV_DPC_TX_PRINT_WARNING(_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s WARNING "_format_str_"\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__,__VA_ARGS__)
#define DBG_ENET_DEV_DPC_TX_PRINT_TRACE(_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s "_format_str_"\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__,__VA_ARGS__)
#define DBG_ENET_DEV_DPC_TX_PRINT_INFO(_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s "_format_str_"\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__,__VA_ARGS__)
#endif //DBG_ENET_DEV_DPC_TX
// ENET device OIDS specific macros - uncomment next line for message printing
//#define DBG_ENET_DEV_OIDS
#ifdef DBG_ENET_DEV_OIDS
#define DBG_ENET_DEV_OIDS_CODE(_line_) _line_
#define DBG_ENET_DEV_OIDS_METHOD_BEG() DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s +++\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__)
#define DBG_ENET_DEV_OIDS_METHOD_BEG_WITH_PARAMS(_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s +++ "_format_str_"\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__,__VA_ARGS__)
#define DBG_ENET_DEV_OIDS_METHOD_END() DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s ---\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__)
#define DBG_ENET_DEV_OIDS_METHOD_END_WITH_STATUS(_status_) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s --- [0x%.8X]\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__,_status_)
#define DBG_ENET_DEV_OIDS_PRINT_WARNING(_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s WARNING "_format_str_"\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__,__VA_ARGS__)
#define DBG_ENET_DEV_OIDS_PRINT_TRACE(_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s "_format_str_"\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__,__VA_ARGS__)
#define DBG_ENET_DEV_OIDS_PRINT_INFO(_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s "_format_str_"\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__,__VA_ARGS__)
#endif //DBG_ENET_DEV_OIDS
// ENET PHY device specific macros - uncomment next line for message printing
//#define DBG_PHY_DEV
#ifdef DBG_PHY_DEV
#define DBG_PHY_DEV_CODE(_line_) _line_
#define DBG_PHY_DEV_METHOD_BEG() DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s +++\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pPHYDev?pPHYDev->PHYDev_DeviceName:"ENETx",__FUNCTION__)
#define DBG_PHY_DEV_METHOD_BEG_WITH_PARAMS(_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s +++ "_format_str_"\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pPHYDev?pPHYDev->PHYDev_DeviceName:"ENETx",__FUNCTION__,__VA_ARGS__)
#define DBG_PHY_DEV_METHOD_END() DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s ---\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pPHYDev?pPHYDev->PHYDev_DeviceName:"ENETx",__FUNCTION__)
#define DBG_PHY_DEV_METHOD_END_WITH_STATUS(_status_) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s --- [0x%.8X]\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pPHYDev?pPHYDev->PHYDev_DeviceName:"ENETx",__FUNCTION__,_status_)
#define DBG_PHY_DEV_PRINT_WARNING(_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s WARNING "_format_str_"\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pPHYDev?pPHYDev->PHYDev_DeviceName:"ENETx",__FUNCTION__,__VA_ARGS__)
#define DBG_PHY_DEV_PRINT_TRACE(_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s "_format_str_"\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pPHYDev?pPHYDev->PHYDev_DeviceName:"ENETx",__FUNCTION__,__VA_ARGS__)
#define DBG_PHY_DEV_PRINT_INFO(_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s "_format_str_"\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pPHYDev?pPHYDev->PHYDev_DeviceName:"ENETx",__FUNCTION__,__VA_ARGS__)
#endif //DBG_PHY_DEV
// ENET device ACPI specific macros - uncomment next line for message printing
//#define DBG_ACPI
#ifdef DBG_ACPI
#define DBG_ACPI_CODE(_line_) _line_
#define DBG_ACPI_METHOD_BEG() DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s +++\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__)
#define DBG_ACPI_METHOD_BEG_WITH_PARAMS(_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s +++ "_format_str_"\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__,__VA_ARGS__)
#define DBG_ACPI_METHOD_END() DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s ---\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__)
#define DBG_ACPI_METHOD_END_WITH_STATUS(_status_) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s --- [0x%.8X]\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__,_status_)
#define DBG_ACPI_PRINT_WARNING(_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s WARNING "_format_str_"\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__,__VA_ARGS__)
#define DBG_ACPI_PRINT_TRACE(_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s "_format_str_"\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__,__VA_ARGS__)
#define DBG_ACPI_PRINT_INFO(_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s "_format_str_"\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__,__VA_ARGS__)
#endif //DBG_ACPI
// ENET device state machine specific macros - uncomment next line for message printing
//#define DBG_SM
#ifdef DBG_SM
#define DBG_SM_CODE(_line_) _line_
#define DBG_SM_METHOD_BEG() DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s +++\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__)
#define DBG_SM_METHOD_BEG_WITH_PARAMS(_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s +++ "_format_str_"\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__,__VA_ARGS__)
#define DBG_SM_METHOD_END() DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s ---\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__)
#define DBG_SM_METHOD_END_WITH_STATUS(_status_) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s --- [0x%.8X]\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__,_status_)
#define DBG_SM_PRINT_WARNING(_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s WARNING "_format_str_"\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__,__VA_ARGS__)
#define DBG_SM_PRINT_TRACE(_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s "_format_str_"\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__,__VA_ARGS__)
#define DBG_SM_PRINT_INFO(_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s "_format_str_"\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pAdapter?pAdapter->ENETDev_DeviceName:"ENETx",__FUNCTION__,__VA_ARGS__)
#endif //DBG_SM
// MDIO bus specific macros - uncomment next line for message printing
//#define DBG_MDIO_BUS
#ifdef DBG_MDIO_BUS
#define DBG_MDIO_BUS_CODE(_line_) _line_
#define DBG_MDIO_BUS_METHOD_BEG() DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s +++\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pMDIOBus?pMDIOBus->MDIOBus_DeviceName:"MDIOx",__FUNCTION__)
#define DBG_MDIO_BUS_METHOD_BEG_WITH_PARAMS(_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s +++ "_format_str_"\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pMDIOBus?pMDIOBus->MDIOBus_DeviceName:"MDIOx",__FUNCTION__,__VA_ARGS__)
#define DBG_MDIO_BUS_METHOD_END() DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s ---\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pMDIOBus?pMDIOBus->MDIOBus_DeviceName:"MDIOx",__FUNCTION__)
#define DBG_MDIO_BUS_METHOD_END_WITH_STATUS(_status_) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s --- [0x%.8X]\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pMDIOBus?pMDIOBus->MDIOBus_DeviceName:"MDIOx",__FUNCTION__,_status_)
#define DBG_MDIO_BUS_PRINT_WARNING(_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s WARNING "_format_str_"\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pMDIOBus?pMDIOBus->MDIOBus_DeviceName:"MDIOx",__FUNCTION__,__VA_ARGS__)
#define DBG_MDIO_BUS_PRINT_TRACE(_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s "_format_str_"\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pMDIOBus?pMDIOBus->MDIOBus_DeviceName:"MDIOx",__FUNCTION__,__VA_ARGS__)
#define DBG_MDIO_BUS_PRINT_INFO(_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s "_format_str_"\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pMDIOBus?pMDIOBus->MDIOBus_DeviceName:"MDIOx",__FUNCTION__,__VA_ARGS__)
#endif //DBG_MDIO_BUS
// MDIO device specific macros - uncomment next line for message printing
//#define DBG_MDIO_DEV
#ifdef DBG_MDIO_DEV
#define DBG_MDIO_DEV_CODE(_line_) _line_
#define DBG_MDIO_DEV_METHOD_BEG() DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s +++\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pMDIODev?pMDIODev->MDIODev_DeviceName:"MDIOx(ENETx",__FUNCTION__)
#define DBG_MDIO_DEV_METHOD_BEG_WITH_PARAMS(_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s +++ "_format_str_"\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pMDIODev?pMDIODev->MDIODev_DeviceName:"MDIOx(ENETx",__FUNCTION__,__VA_ARGS__)
#define DBG_MDIO_DEV_METHOD_END() DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s ---\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pMDIODev?pMDIODev->MDIODev_DeviceName:"MDIOx(ENETx",__FUNCTION__)
#define DBG_MDIO_DEV_METHOD_END_WITH_STATUS(_status_) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s --- [0x%.8X]\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pMDIODev?pMDIODev->MDIODev_DeviceName:"MDIOx(ENETx",__FUNCTION__,_status_)
#define DBG_MDIO_DEV_PRINT_WARNING(_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s WARNING "_format_str_"\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pMDIODev?pMDIODev->MDIODev_DeviceName:"MDIOx(ENETx",__FUNCTION__,__VA_ARGS__)
#define DBG_MDIO_DEV_PRINT_TRACE(_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s "_format_str_"\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pMDIODev?pMDIODev->MDIODev_DeviceName:"MDIOx(ENETx",__FUNCTION__,__VA_ARGS__)
#define DBG_MDIO_DEV_PRINT_INFO(_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s "_format_str_"\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pMDIODev?pMDIODev->MDIODev_DeviceName:"MDIOx(ENETx",__FUNCTION__,__VA_ARGS__)
#endif //DBG_MDIO_DEV
// MDIO device command specific macros - uncomment next line for message printing
//#define DBG_MDIO_DEV_CMD
#ifdef DBG_MDIO_DEV_CMD
#define DBG_MDIO_DEV_CMD_CODE(_line_) _line_
#define DBG_MDIO_DEV_CMD_METHOD_BEG() DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s +++\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pMDIODev?pMDIODev->MDIODev_DeviceName:"MDIOx(ENETx",__FUNCTION__)
#define DBG_MDIO_DEV_CMD_METHOD_BEG_WITH_PARAMS(_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s +++ "_format_str_"\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pMDIODev?pMDIODev->MDIODev_DeviceName:"MDIOx(ENETx",__FUNCTION__,__VA_ARGS__)
#define DBG_MDIO_DEV_CMD_METHOD_END() DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s ---\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pMDIODev?pMDIODev->MDIODev_DeviceName:"MDIOx(ENETx",__FUNCTION__)
#define DBG_MDIO_DEV_CMD_METHOD_END_WITH_STATUS(_status_) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s --- [0x%.8X]\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pMDIODev?pMDIODev->MDIODev_DeviceName:"MDIOx(ENETx",__FUNCTION__,_status_)
#define DBG_MDIO_DEV_CMD_PRINT_WARNING(_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s WARNING "_format_str_"\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pMDIODev?pMDIODev->MDIODev_DeviceName:"MDIOx(ENETx",__FUNCTION__,__VA_ARGS__)
#define DBG_MDIO_DEV_CMD_PRINT_TRACE(_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s "_format_str_"\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pMDIODev?pMDIODev->MDIODev_DeviceName:"MDIOx(ENETx",__FUNCTION__,__VA_ARGS__)
#define DBG_MDIO_DEV_CMD_PRINT_INFO(_format_str_,...) DbgPrintEx(DPFLTR_IHVDRIVER_ID,0xFFFFFFFE,"C%d D%d %s:%s "_format_str_"\n" ,KeGetCurrentProcessorNumber(),KeGetCurrentIrql(),pMDIODev?pMDIODev->MDIODev_DeviceName:"MDIOx(ENETx",__FUNCTION__,__VA_ARGS__)
#endif //DBG_MDIO_DEV_CMD
#endif // DBG_MESSAGE_PRINTING
#else // DBG
#define Dbg_PrintOidDescription(...)
#define Dbg_DumpMACRegs(...)
#define Dbg_DumpRxStats(...)
#define Dbg_DumpTxStats(...)
#define Dbg_DumpStatistics(...)
#define Dbg_DumpFifoTrasholdsAndPauseFrameDuration(...)
#define Dbg_PrintMDIODeviceInfo(...)
#define Dbg_PrintMDIOBusInfo(...)
#define Dbg_PrintENETDeviceSettings(...)
#define Dbg_GetMpStateMachineStateName(...)
#define Dbg_GetMpMediaConnectStateName(...)
#define Dbg_GetMpMediaDuplexStateName(...)
#define Dbg_GetNdisStatusName(...)
#define Dbg_GetNdisOidName(...)
#define Dbg_GetNdisOidRequestTypeName(...)
#define Dbg_GetNdisPowerStateName(...)
#define Dbg_GetEnetPhyInterfaceTypeName(...)
#define Dbg_GetACPIFunctionName(...)
#define Dbg_GetMIICallbackName(...)
#endif // DBG
#ifndef DBG_CODE
#define DBG_CODE(...)
#endif
#ifndef DBG_PRINT_BASIC_ENET_CONFIGURATION
#define DBG_PRINT_BASIC_ENET_CONFIGURATION(...)
#endif
#ifndef DBG_DRV_CODE
#define DBG_DRV_CODE(...)
#endif
#ifndef DBG_DRV_METHOD_BEG
#define DBG_DRV_METHOD_BEG(...)
#endif
#ifndef DBG_DRV_METHOD_BEG_WITH_PARAMS
#define DBG_DRV_METHOD_BEG_WITH_PARAMS(...)
#endif
#ifndef DBG_DRV_METHOD_END
#define DBG_DRV_METHOD_END(...)
#endif
#ifndef DBG_DRV_METHOD_END_WITH_STATUS
#define DBG_DRV_METHOD_END_WITH_STATUS(...)
#endif
#ifndef DBG_DRV_PRINT_ERROR
#define DBG_DRV_PRINT_ERROR(...)
#endif
#ifndef DBG_DRV_PRINT_ERROR_WITH_STATUS
#define DBG_DRV_PRINT_ERROR_WITH_STATUS(...)
#endif
#ifndef DBG_DRV_PRINT_ERROR_WITH_STATUS_AND_PARAMS
#define DBG_DRV_PRINT_ERROR_WITH_STATUS_AND_PARAMS(...)
#endif
#ifndef DBG_DRV_PRINT_WARNING
#define DBG_DRV_PRINT_WARNING(...)
#endif
#ifndef DBG_DRV_PRINT_TRACE
#define DBG_DRV_PRINT_TRACE(...)
#endif
#ifndef DBG_DRV_PRINT_INFO
#define DBG_DRV_PRINT_INFO(...)
#endif
#ifndef DBG_ENET_DEV_CODE
#define DBG_ENET_DEV_CODE(...)
#endif
#ifndef DBG_ENET_DEV_METHOD_BEG
#define DBG_ENET_DEV_METHOD_BEG(...)
#endif
#ifndef DBG_ENET_DEV_METHOD_BEG_WITH_PARAMS
#define DBG_ENET_DEV_METHOD_BEG_WITH_PARAMS(...)
#endif
#ifndef DBG_ENET_DEV_METHOD_END
#define DBG_ENET_DEV_METHOD_END(...)
#endif
#ifndef DBG_ENET_DEV_METHOD_END_WITH_STATUS
#define DBG_ENET_DEV_METHOD_END_WITH_STATUS(...)
#endif
#ifndef DBG_ENET_DEV_PRINT_ERROR
#define DBG_ENET_DEV_PRINT_ERROR(...)
#endif
#ifndef DBG_ENET_DEV_PRINT_ERROR_WITH_STATUS
#define DBG_ENET_DEV_PRINT_ERROR_WITH_STATUS(...)
#endif
#ifndef DBG_ENET_DEV_PRINT_ERROR_WITH_STATUS_AND_PARAMS
#define DBG_ENET_DEV_PRINT_ERROR_WITH_STATUS_AND_PARAMS(...)
#endif
#ifndef DBG_ENET_DEV_PRINT_WARNING
#define DBG_ENET_DEV_PRINT_WARNING(...)
#endif
#ifndef DBG_ENET_DEV_PRINT_TRACE
#define DBG_ENET_DEV_PRINT_TRACE(...)
#endif
#ifndef DBG_ENET_DEV_PRINT_INFO
#define DBG_ENET_DEV_PRINT_INFO(...)
#endif
#ifndef DBG_ENET_DEV_ISR_CODE
#define DBG_ENET_DEV_ISR_CODE(...)
#endif
#ifndef DBG_ENET_DEV_ISR_METHOD_BEG
#define DBG_ENET_DEV_ISR_METHOD_BEG(...)
#endif
#ifndef DBG_ENET_DEV_ISR_METHOD_BEG_WITH_PARAMS
#define DBG_ENET_DEV_ISR_METHOD_BEG_WITH_PARAMS(...)
#endif
#ifndef DBG_ENET_DEV_ISR_METHOD_END
#define DBG_ENET_DEV_ISR_METHOD_END(...)
#endif
#ifndef DBG_ENET_DEV_ISR_METHOD_END_WITH_STATUS
#define DBG_ENET_DEV_ISR_METHOD_END_WITH_STATUS(...)
#endif
#ifndef DBG_ENET_DEV_ISR_PRINT_ERROR
#define DBG_ENET_DEV_ISR_PRINT_ERROR(...)
#endif
#ifndef DBG_ENET_DEV_ISR_PRINT_ERROR_WITH_STATUS
#define DBG_ENET_DEV_ISR_PRINT_ERROR_WITH_STATUS(...)
#endif
#ifndef DBG_ENET_DEV_ISR_PRINT_ERROR_WITH_STATUS_AND_PARAMS
#define DBG_ENET_DEV_ISR_PRINT_ERROR_WITH_STATUS_AND_PARAMS(...)
#endif
#ifndef DBG_ENET_DEV_ISR_PRINT_WARNING
#define DBG_ENET_DEV_ISR_PRINT_WARNING(...)
#endif
#ifndef DBG_ENET_DEV_ISR_PRINT_TRACE
#define DBG_ENET_DEV_ISR_PRINT_TRACE(...)
#endif
#ifndef DBG_ENET_DEV_ISR_PRINT_INFO
#define DBG_ENET_DEV_ISR_PRINT_INFO(...)
#endif
#ifndef DBG_ENET_DEV_DPC_CODE
#define DBG_ENET_DEV_DPC_CODE(...)
#endif
#ifndef DBG_ENET_DEV_DPC_METHOD_BEG
#define DBG_ENET_DEV_DPC_METHOD_BEG(...)
#endif
#ifndef DBG_ENET_DEV_DPC_METHOD_BEG_WITH_PARAMS
#define DBG_ENET_DEV_DPC_METHOD_BEG_WITH_PARAMS(...)
#endif
#ifndef DBG_ENET_DEV_DPC_METHOD_END
#define DBG_ENET_DEV_DPC_METHOD_END(...)
#endif
#ifndef DBG_ENET_DEV_DPC_METHOD_END_WITH_STATUS
#define DBG_ENET_DEV_DPC_METHOD_END_WITH_STATUS(...)
#endif
#ifndef DBG_ENET_DEV_DPC_PRINT_ERROR
#define DBG_ENET_DEV_DPC_PRINT_ERROR(...)
#endif
#ifndef DBG_ENET_DEV_DPC_PRINT_ERROR_WITH_STATUS
#define DBG_ENET_DEV_DPC_PRINT_ERROR_WITH_STATUS(...)
#endif
#ifndef DBG_ENET_DEV_DPC_PRINT_ERROR_WITH_STATUS_AND_PARAMS
#define DBG_ENET_DEV_DPC_PRINT_ERROR_WITH_STATUS_AND_PARAMS(...)
#endif
#ifndef DBG_ENET_DEV_DPC_PRINT_WARNING
#define DBG_ENET_DEV_DPC_PRINT_WARNING(...)
#endif
#ifndef DBG_ENET_DEV_DPC_PRINT_TRACE
#define DBG_ENET_DEV_DPC_PRINT_TRACE(...)
#endif
#ifndef DBG_ENET_DEV_DPC_PRINT_INFO
#define DBG_ENET_DEV_DPC_PRINT_INFO(...)
#endif
#ifndef DBG_ENET_DEV_RX_CODE
#define DBG_ENET_DEV_RX_CODE(...)
#endif
#ifndef DBG_ENET_DEV_RX_METHOD_BEG
#define DBG_ENET_DEV_RX_METHOD_BEG(...)
#endif
#ifndef DBG_ENET_DEV_RX_METHOD_BEG_WITH_PARAMS
#define DBG_ENET_DEV_RX_METHOD_BEG_WITH_PARAMS(...)
#endif
#ifndef DBG_ENET_DEV_RX_METHOD_END
#define DBG_ENET_DEV_RX_METHOD_END(...)
#endif
#ifndef DBG_ENET_DEV_RX_METHOD_END_WITH_STATUS
#define DBG_ENET_DEV_RX_METHOD_END_WITH_STATUS(...)
#endif
#ifndef DBG_ENET_DEV_RX_PRINT_ERROR
#define DBG_ENET_DEV_RX_PRINT_ERROR(...)
#endif
#ifndef DBG_ENET_DEV_RX_PRINT_ERROR_WITH_STATUS
#define DBG_ENET_DEV_RX_PRINT_ERROR_WITH_STATUS(...)
#endif
#ifndef DBG_ENET_DEV_RX_PRINT_ERROR_WITH_STATUS_AND_PARAMS
#define DBG_ENET_DEV_RX_PRINT_ERROR_WITH_STATUS_AND_PARAMS(...)
#endif
#ifndef DBG_ENET_DEV_RX_PRINT_WARNING
#define DBG_ENET_DEV_RX_PRINT_WARNING(...)
#endif
#ifndef DBG_ENET_DEV_RX_PRINT_TRACE
#define DBG_ENET_DEV_RX_PRINT_TRACE(...)
#endif
#ifndef DBG_ENET_DEV_RX_PRINT_INFO
#define DBG_ENET_DEV_RX_PRINT_INFO(...)
#endif
#ifndef DBG_ENET_DEV_TX_CODE
#define DBG_ENET_DEV_TX_CODE(...)
#endif
#ifndef DBG_ENET_DEV_TX_METHOD_BEG
#define DBG_ENET_DEV_TX_METHOD_BEG(...)
#endif
#ifndef DBG_ENET_DEV_TX_METHOD_BEG_WITH_PARAMS
#define DBG_ENET_DEV_TX_METHOD_BEG_WITH_PARAMS(...)
#endif
#ifndef DBG_ENET_DEV_TX_METHOD_END
#define DBG_ENET_DEV_TX_METHOD_END(...)
#endif
#ifndef DBG_ENET_DEV_TX_METHOD_END_WITH_STATUS
#define DBG_ENET_DEV_TX_METHOD_END_WITH_STATUS(...)
#endif
#ifndef DBG_ENET_DEV_TX_PRINT_ERROR
#define DBG_ENET_DEV_TX_PRINT_ERROR(...)
#endif
#ifndef DBG_ENET_DEV_TX_PRINT_ERROR_WITH_STATUS
#define DBG_ENET_DEV_TX_PRINT_ERROR_WITH_STATUS(...)
#endif
#ifndef DBG_ENET_DEV_TX_PRINT_ERROR_WITH_STATUS_AND_PARAMS
#define DBG_ENET_DEV_TX_PRINT_ERROR_WITH_STATUS_AND_PARAMS(...)
#endif
#ifndef DBG_ENET_DEV_TX_PRINT_WARNING
#define DBG_ENET_DEV_TX_PRINT_WARNING(...)
#endif
#ifndef DBG_ENET_DEV_TX_PRINT_TRACE
#define DBG_ENET_DEV_TX_PRINT_TRACE(...)
#endif
#ifndef DBG_ENET_DEV_TX_PRINT_INFO
#define DBG_ENET_DEV_TX_PRINT_INFO(...)
#endif
#ifndef DBG_ENET_DEV_DPC_RX_CODE
#define DBG_ENET_DEV_DPC_RX_CODE(...)
#endif
#ifndef DBG_ENET_DEV_DPC_RX_METHOD_BEG
#define DBG_ENET_DEV_DPC_RX_METHOD_BEG(...)
#endif
#ifndef DBG_ENET_DEV_DPC_RX_METHOD_BEG_WITH_PARAMS
#define DBG_ENET_DEV_DPC_RX_METHOD_BEG_WITH_PARAMS(...)
#endif
#ifndef DBG_ENET_DEV_DPC_RX_METHOD_END
#define DBG_ENET_DEV_DPC_RX_METHOD_END(...)
#endif
#ifndef DBG_ENET_DEV_DPC_RX_METHOD_END_WITH_STATUS
#define DBG_ENET_DEV_DPC_RX_METHOD_END_WITH_STATUS(...)
#endif
#ifndef DBG_ENET_DEV_DPC_RX_PRINT_ERROR
#define DBG_ENET_DEV_DPC_RX_PRINT_ERROR(...)
#endif
#ifndef DBG_ENET_DEV_DPC_RX_PRINT_ERROR_WITH_STATUS
#define DBG_ENET_DEV_DPC_RX_PRINT_ERROR_WITH_STATUS(...)
#endif
#ifndef DBG_ENET_DEV_DPC_RX_PRINT_ERROR_WITH_STATUS_AND_PARAMS
#define DBG_ENET_DEV_DPC_RX_PRINT_ERROR_WITH_STATUS_AND_PARAMS(...)
#endif
#ifndef DBG_ENET_DEV_DPC_RX_PRINT_WARNING
#define DBG_ENET_DEV_DPC_RX_PRINT_WARNING(...)
#endif
#ifndef DBG_ENET_DEV_DPC_RX_PRINT_TRACE
#define DBG_ENET_DEV_DPC_RX_PRINT_TRACE(...)
#endif
#ifndef DBG_ENET_DEV_DPC_RX_PRINT_INFO
#define DBG_ENET_DEV_DPC_RX_PRINT_INFO(...)
#endif
#ifndef DBG_ENET_DEV_DPC_TX_CODE
#define DBG_ENET_DEV_DPC_TX_CODE(...)
#endif
#ifndef DBG_ENET_DEV_DPC_TX_METHOD_BEG
#define DBG_ENET_DEV_DPC_TX_METHOD_BEG(...)
#endif
#ifndef DBG_ENET_DEV_DPC_TX_METHOD_BEG_WITH_PARAMS
#define DBG_ENET_DEV_DPC_TX_METHOD_BEG_WITH_PARAMS(...)
#endif
#ifndef DBG_ENET_DEV_DPC_TX_METHOD_END
#define DBG_ENET_DEV_DPC_TX_METHOD_END(...)
#endif
#ifndef DBG_ENET_DEV_DPC_TX_METHOD_END_WITH_STATUS
#define DBG_ENET_DEV_DPC_TX_METHOD_END_WITH_STATUS(...)
#endif
#ifndef DBG_ENET_DEV_DPC_TX_PRINT_ERROR
#define DBG_ENET_DEV_DPC_TX_PRINT_ERROR(...)
#endif
#ifndef DBG_ENET_DEV_DPC_TX_PRINT_ERROR_WITH_STATUS
#define DBG_ENET_DEV_DPC_TX_PRINT_ERROR_WITH_STATUS(...)
#endif
#ifndef DBG_ENET_DEV_DPC_TX_PRINT_ERROR_WITH_STATUS_AND_PARAMS
#define DBG_ENET_DEV_DPC_TX_PRINT_ERROR_WITH_STATUS_AND_PARAMS(...)
#endif
#ifndef DBG_ENET_DEV_DPC_TX_PRINT_WARNING
#define DBG_ENET_DEV_DPC_TX_PRINT_WARNING(...)
#endif
#ifndef DBG_ENET_DEV_DPC_TX_PRINT_TRACE
#define DBG_ENET_DEV_DPC_TX_PRINT_TRACE(...)
#endif
#ifndef DBG_ENET_DEV_DPC_TX_PRINT_INFO
#define DBG_ENET_DEV_DPC_TX_PRINT_INFO(...)
#endif
#ifndef DBG_ENET_DEV_OIDS_CODE
#define DBG_ENET_DEV_OIDS_CODE(...)
#endif
#ifndef DBG_ENET_DEV_OIDS_METHOD_BEG
#define DBG_ENET_DEV_OIDS_METHOD_BEG(...)
#endif
#ifndef DBG_ENET_DEV_OIDS_METHOD_BEG_WITH_PARAMS
#define DBG_ENET_DEV_OIDS_METHOD_BEG_WITH_PARAMS(...)
#endif
#ifndef DBG_ENET_DEV_OIDS_METHOD_END
#define DBG_ENET_DEV_OIDS_METHOD_END(...)
#endif
#ifndef DBG_ENET_DEV_OIDS_METHOD_END_WITH_STATUS
#define DBG_ENET_DEV_OIDS_METHOD_END_WITH_STATUS(...)
#endif
#ifndef DBG_ENET_DEV_OIDS_PRINT_ERROR
#define DBG_ENET_DEV_OIDS_PRINT_ERROR(...)
#endif
#ifndef DBG_ENET_DEV_OIDS_PRINT_ERROR_WITH_STATUS
#define DBG_ENET_DEV_OIDS_PRINT_ERROR_WITH_STATUS(...)
#endif
#ifndef DBG_ENET_DEV_OIDS_PRINT_ERROR_WITH_STATUS_AND_PARAMS
#define DBG_ENET_DEV_OIDS_PRINT_ERROR_WITH_STATUS_AND_PARAMS(...)
#endif
#ifndef DBG_ENET_DEV_OIDS_PRINT_WARNING
#define DBG_ENET_DEV_OIDS_PRINT_WARNING(...)
#endif
#ifndef DBG_ENET_DEV_OIDS_PRINT_TRACE
#define DBG_ENET_DEV_OIDS_PRINT_TRACE(...)
#endif
#ifndef DBG_ENET_DEV_OIDS_PRINT_INFO
#define DBG_ENET_DEV_OIDS_PRINT_INFO(...)
#endif
#ifndef DBG_PHY_DEV_CODE
#define DBG_PHY_DEV_CODE(...)
#endif
#ifndef DBG_PHY_DEV_METHOD_BEG
#define DBG_PHY_DEV_METHOD_BEG(...)
#endif
#ifndef DBG_PHY_DEV_METHOD_BEG_WITH_PARAMS
#define DBG_PHY_DEV_METHOD_BEG_WITH_PARAMS(...)
#endif
#ifndef DBG_PHY_DEV_METHOD_END
#define DBG_PHY_DEV_METHOD_END(...)
#endif
#ifndef DBG_PHY_DEV_METHOD_END_WITH_STATUS
#define DBG_PHY_DEV_METHOD_END_WITH_STATUS(...)
#endif
#ifndef DBG_PHY_DEV_PRINT_ERROR
#define DBG_PHY_DEV_PRINT_ERROR(...)
#endif
#ifndef DBG_PHY_DEV_PRINT_ERROR_WITH_STATUS
#define DBG_PHY_DEV_PRINT_ERROR_WITH_STATUS(...)
#endif
#ifndef DBG_PHY_DEV_PRINT_ERROR_WITH_STATUS_AND_PARAMS
#define DBG_PHY_DEV_PRINT_ERROR_WITH_STATUS_AND_PARAMS(...)
#endif
#ifndef DBG_PHY_DEV_PRINT_WARNING
#define DBG_PHY_DEV_PRINT_WARNING(...)
#endif
#ifndef DBG_PHY_DEV_PRINT_TRACE
#define DBG_PHY_DEV_PRINT_TRACE(...)
#endif
#ifndef DBG_PHY_DEV_PRINT_INFO
#define DBG_PHY_DEV_PRINT_INFO(...)
#endif
#ifndef DBG_ACPI_CODE
#define DBG_ACPI_CODE(...)
#endif
#ifndef DBG_ACPI_METHOD_BEG
#define DBG_ACPI_METHOD_BEG(...)
#endif
#ifndef DBG_ACPI_METHOD_BEG_WITH_PARAMS
#define DBG_ACPI_METHOD_BEG_WITH_PARAMS(...)
#endif
#ifndef DBG_ACPI_METHOD_END
#define DBG_ACPI_METHOD_END(...)
#endif
#ifndef DBG_ACPI_METHOD_END_WITH_STATUS
#define DBG_ACPI_METHOD_END_WITH_STATUS(...)
#endif
#ifndef DBG_ACPI_PRINT_ERROR
#define DBG_ACPI_PRINT_ERROR(...)
#endif
#ifndef DBG_ACPI_PRINT_ERROR_WITH_STATUS
#define DBG_ACPI_PRINT_ERROR_WITH_STATUS(...)
#endif
#ifndef DBG_ACPI_PRINT_ERROR_WITH_STATUS_AND_PARAMS
#define DBG_ACPI_PRINT_ERROR_WITH_STATUS_AND_PARAMS(...)
#endif
#ifndef DBG_ACPI_PRINT_WARNING
#define DBG_ACPI_PRINT_WARNING(...)
#endif
#ifndef DBG_ACPI_PRINT_TRACE
#define DBG_ACPI_PRINT_TRACE(...)
#endif
#ifndef DBG_ACPI_PRINT_INFO
#define DBG_ACPI_PRINT_INFO(...)
#endif
#ifndef DBG_SM_CODE
#define DBG_SM_CODE(...)
#endif
#ifndef DBG_SM_METHOD_BEG
#define DBG_SM_METHOD_BEG(...)
#endif
#ifndef DBG_SM_METHOD_BEG_WITH_PARAMS
#define DBG_SM_METHOD_BEG_WITH_PARAMS(...)
#endif
#ifndef DBG_SM_METHOD_END
#define DBG_SM_METHOD_END(...)
#endif
#ifndef DBG_SM_METHOD_END_WITH_STATUS
#define DBG_SM_METHOD_END_WITH_STATUS(...)
#endif
#ifndef DBG_SM_PRINT_ERROR
#define DBG_SM_PRINT_ERROR(...)
#endif
#ifndef DBG_SM_PRINT_ERROR_WITH_STATUS
#define DBG_SM_PRINT_ERROR_WITH_STATUS(...)
#endif
#ifndef DBG_SM_PRINT_ERROR_WITH_STATUS_AND_PARAMS
#define DBG_SM_PRINT_ERROR_WITH_STATUS_AND_PARAMS(...)
#endif
#ifndef DBG_SM_PRINT_WARNING
#define DBG_SM_PRINT_WARNING(...)
#endif
#ifndef DBG_SM_PRINT_TRACE
#define DBG_SM_PRINT_TRACE(...)
#endif
#ifndef DBG_SM_PRINT_INFO
#define DBG_SM_PRINT_INFO(...)
#endif
#ifndef DBG_MDIO_BUS_CODE
#define DBG_MDIO_BUS_CODE(...)
#endif
#ifndef DBG_MDIO_BUS_METHOD_BEG
#define DBG_MDIO_BUS_METHOD_BEG(...)
#endif
#ifndef DBG_MDIO_BUS_METHOD_BEG_WITH_PARAMS
#define DBG_MDIO_BUS_METHOD_BEG_WITH_PARAMS(...)
#endif
#ifndef DBG_MDIO_BUS_METHOD_END
#define DBG_MDIO_BUS_METHOD_END(...)
#endif
#ifndef DBG_MDIO_BUS_METHOD_END_WITH_STATUS
#define DBG_MDIO_BUS_METHOD_END_WITH_STATUS(...)
#endif
#ifndef DBG_MDIO_BUS_PRINT_ERROR
#define DBG_MDIO_BUS_PRINT_ERROR(...)
#endif
#ifndef DBG_MDIO_BUS_PRINT_ERROR_WITH_STATUS
#define DBG_MDIO_BUS_PRINT_ERROR_WITH_STATUS(...)
#endif
#ifndef DBG_MDIO_BUS_PRINT_ERROR_WITH_STATUS_AND_PARAMS
#define DBG_MDIO_BUS_PRINT_ERROR_WITH_STATUS_AND_PARAMS(...)
#endif
#ifndef DBG_MDIO_BUS_PRINT_WARNING
#define DBG_MDIO_BUS_PRINT_WARNING(...)
#endif
#ifndef DBG_MDIO_BUS_PRINT_TRACE
#define DBG_MDIO_BUS_PRINT_TRACE(...)
#endif
#ifndef DBG_MDIO_BUS_PRINT_INFO
#define DBG_MDIO_BUS_PRINT_INFO(...)
#endif
#ifndef DBG_MDIO_DEV_CODE
#define DBG_MDIO_DEV_CODE(...)
#endif
#ifndef DBG_MDIO_DEV_METHOD_BEG
#define DBG_MDIO_DEV_METHOD_BEG(...)
#endif
#ifndef DBG_MDIO_DEV_METHOD_BEG_WITH_PARAMS
#define DBG_MDIO_DEV_METHOD_BEG_WITH_PARAMS(...)
#endif
#ifndef DBG_MDIO_DEV_METHOD_END
#define DBG_MDIO_DEV_METHOD_END(...)
#endif
#ifndef DBG_MDIO_DEV_METHOD_END_WITH_STATUS
#define DBG_MDIO_DEV_METHOD_END_WITH_STATUS(...)
#endif
#ifndef DBG_MDIO_DEV_PRINT_ERROR
#define DBG_MDIO_DEV_PRINT_ERROR(...)
#endif
#ifndef DBG_MDIO_DEV_PRINT_ERROR_WITH_STATUS
#define DBG_MDIO_DEV_PRINT_ERROR_WITH_STATUS(...)
#endif
#ifndef DBG_MDIO_DEV_PRINT_ERROR_WITH_STATUS_AND_PARAMS
#define DBG_MDIO_DEV_PRINT_ERROR_WITH_STATUS_AND_PARAMS(...)
#endif
#ifndef DBG_MDIO_DEV_PRINT_WARNING
#define DBG_MDIO_DEV_PRINT_WARNING(...)
#endif
#ifndef DBG_MDIO_DEV_PRINT_TRACE
#define DBG_MDIO_DEV_PRINT_TRACE(...)
#endif
#ifndef DBG_MDIO_DEV_PRINT_INFO
#define DBG_MDIO_DEV_PRINT_INFO(...)
#endif
#ifndef DBG_MDIO_DEV_CMD_CODE
#define DBG_MDIO_DEV_CMD_CODE(...)
#endif
#ifndef DBG_MDIO_DEV_CMD_METHOD_BEG
#define DBG_MDIO_DEV_CMD_METHOD_BEG(...)
#endif
#ifndef DBG_MDIO_DEV_CMD_METHOD_BEG_WITH_PARAMS
#define DBG_MDIO_DEV_CMD_METHOD_BEG_WITH_PARAMS(...)
#endif
#ifndef DBG_MDIO_DEV_CMD_METHOD_END
#define DBG_MDIO_DEV_CMD_METHOD_END(...)
#endif
#ifndef DBG_MDIO_DEV_CMD_METHOD_END_WITH_STATUS
#define DBG_MDIO_DEV_CMD_METHOD_END_WITH_STATUS(...)
#endif
#ifndef DBG_MDIO_DEV_CMD_PRINT_ERROR
#define DBG_MDIO_DEV_CMD_PRINT_ERROR(...)
#endif
#ifndef DBG_MDIO_DEV_CMD_PRINT_ERROR_WITH_STATUS
#define DBG_MDIO_DEV_CMD_PRINT_ERROR_WITH_STATUS(...)
#endif
#ifndef DBG_MDIO_DEV_CMD_PRINT_ERROR_WITH_STATUS_AND_PARAMS
#define DBG_MDIO_DEV_CMD_PRINT_ERROR_WITH_STATUS_AND_PARAMS(...)
#endif
#ifndef DBG_MDIO_DEV_CMD_PRINT_WARNING
#define DBG_MDIO_DEV_CMD_PRINT_WARNING(...)
#endif
#ifndef DBG_MDIO_DEV_CMD_PRINT_TRACE
#define DBG_MDIO_DEV_CMD_PRINT_TRACE(...)
#endif
#ifndef DBG_MDIO_DEV_CMD_PRINT_INFO
#define DBG_MDIO_DEV_CMD_PRINT_INFO(...)
#endif
#endif // _MP_DBG_H