Revision b8f6ba0d hw/eepro100.c
b/hw/eepro100.c | ||
---|---|---|
635 | 635 |
} |
636 | 636 |
|
637 | 637 |
#if defined(DEBUG_EEPRO100) |
638 |
static const char * const reg[PCI_IO_SIZE / 4] = { |
|
638 |
static const char * const e100_reg[PCI_IO_SIZE / 4] = {
|
|
639 | 639 |
"Command/Status", |
640 | 640 |
"General Pointer", |
641 | 641 |
"Port", |
642 | 642 |
"EEPROM/Flash Control", |
643 | 643 |
"MDI Control", |
644 | 644 |
"Receive DMA Byte Count", |
645 |
"Flow control",
|
|
645 |
"Flow Control",
|
|
646 | 646 |
"General Status/Control" |
647 | 647 |
}; |
648 | 648 |
|
... | ... | |
650 | 650 |
{ |
651 | 651 |
static char buf[32]; |
652 | 652 |
if (addr < PCI_IO_SIZE) { |
653 |
const char *r = reg[addr / 4]; |
|
653 |
const char *r = e100_reg[addr / 4];
|
|
654 | 654 |
if (r != 0) { |
655 | 655 |
snprintf(buf, sizeof(buf), "%s+%u", r, addr % 4); |
656 | 656 |
} else { |
Also available in: Unified diff