summary refs log tree commit diff stats
path: root/hw/eepro100.c
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-09-14 22:22:13 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-09-14 22:22:13 +0000
commit3257d2b64f9df45ef7cbe85282da404584a06dfc (patch)
treeb3d9343b433f4d0ade98de630689bedf4a9c32da /hw/eepro100.c
parentbaa7666c74e7495c0982afe2a566aabcd4dbe1ac (diff)
downloadfocaccia-qemu-3257d2b64f9df45ef7cbe85282da404584a06dfc.tar.gz
focaccia-qemu-3257d2b64f9df45ef7cbe85282da404584a06dfc.zip
Less magic constants, by Filip Navara.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3170 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/eepro100.c')
-rw-r--r--hw/eepro100.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/hw/eepro100.c b/hw/eepro100.c
index ad81cbf495..36b09252b6 100644
--- a/hw/eepro100.c
+++ b/hw/eepro100.c
@@ -140,6 +140,7 @@ enum speedo_offsets {
     SCBflash = 12, SCBeeprom = 14,      /* EEPROM and flash memory control. */
     SCBCtrlMDI = 16,            /* MDI interface control. */
     SCBEarlyRx = 20,            /* Early receive byte count. */
+    SCBFlow = 24,
 };
 
 /* A speedo3 transmit buffer descriptor with two buffers... */
@@ -1256,10 +1257,10 @@ static void eepro100_write1(EEPRO100State * s, uint32_t addr, uint8_t val)
         eepro100_interrupt(s, 0);
         break;
     case SCBPort + 3:
-    case 24:
-    case 25:
-    case 26:
-    case 27:
+    case SCBFlow:
+    case SCBFlow + 1:
+    case SCBFlow + 2:
+    case SCBFlow + 3:
         logout("addr=%s val=0x%02x\n", regname(addr), val);
         break;
     case SCBeeprom: