Less magic constants, by Filip Navara.
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>
Fri, 14 Sep 2007 22:22:13 +0000 (22:22 +0000)
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>
Fri, 14 Sep 2007 22:22:13 +0000 (22:22 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3170 c046a42c-6fe2-441c-8c8c-71466251a162

hw/eepro100.c

index ad81cbf..36b0925 100644 (file)
@@ -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: