ReactOS 0.4.16-dev-91-g764881a
debug.c File Reference
#include "dc21x4.h"
Include dependency graph for debug.c:

Go to the source code of this file.

Functions

PCSTR MediaNumber2Str (_In_ PDC21X4_ADAPTER Adapter, _In_ ULONG MediaNumber)
 
PCSTR DcDbgBusError (_In_ ULONG InterruptStatus)
 

Variables

static PCSTR MediaName [MEDIA_MAX]
 

Function Documentation

◆ DcDbgBusError()

PCSTR DcDbgBusError ( _In_ ULONG  InterruptStatus)

Definition at line 55 of file debug.c.

57{
58 switch (InterruptStatus & DC_STATUS_SYSTEM_ERROR_MASK)
59 {
61 return "Parity Error";
63 return "Master Abort";
65 return "Target Abort";
66
67 default:
68 return "<unknown>";
69 }
70}
#define DC_STATUS_SYSTEM_ERROR_MASTER_ABORT
Definition: dc21x4hw.h:312
#define DC_STATUS_SYSTEM_ERROR_MASK
Definition: dc21x4hw.h:288
#define DC_STATUS_SYSTEM_ERROR_PARITY
Definition: dc21x4hw.h:311
#define DC_STATUS_SYSTEM_ERROR_TARGET_ABORT
Definition: dc21x4hw.h:313

◆ MediaNumber2Str()

PCSTR MediaNumber2Str ( _In_ PDC21X4_ADAPTER  Adapter,
_In_ ULONG  MediaNumber 
)

Definition at line 32 of file debug.c.

35{
36 switch (MediaNumber)
37 {
38 case MEDIA_100TX_HD:
39 {
40 if (Adapter->ChipType == DC21041)
41 return "10Base-T HD";
42 break;
43 }
44
45 default:
46 break;
47 }
48
49 ASSERT(MediaNumber < MEDIA_MAX);
50
51 return MediaName[MediaNumber];
52}
@ DC21041
Definition: dc21x4hw.h:13
static PCSTR MediaName[MEDIA_MAX]
Definition: debug.c:14
#define MEDIA_MAX
Definition: media.h:68
#define MEDIA_100TX_HD
Definition: media.h:49
#define ASSERT(a)
Definition: mode.c:44

Variable Documentation

◆ MediaName

PCSTR MediaName[MEDIA_MAX]
static
Initial value:
=
{
"10Base-T",
"10Base-2 (BNC)",
"10Base-5 (AUI)",
"100Base-TX HD",
"10Base-T FD",
"100Base-TX FD",
"100Base-T4",
"100Base-FX HD",
"100Base-FX FD",
"HomePNA",
"MII",
}

Definition at line 14 of file debug.c.

Referenced by MediaNumber2Str().