Commit 3257d2b64f9df45ef7cbe85282da404584a06dfc

Authored by ths
1 parent baa7666c

Less magic constants, by Filip Navara.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3170 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 5 additions and 4 deletions
hw/eepro100.c
... ... @@ -140,6 +140,7 @@ enum speedo_offsets {
140 140 SCBflash = 12, SCBeeprom = 14, /* EEPROM and flash memory control. */
141 141 SCBCtrlMDI = 16, /* MDI interface control. */
142 142 SCBEarlyRx = 20, /* Early receive byte count. */
  143 + SCBFlow = 24,
143 144 };
144 145  
145 146 /* A speedo3 transmit buffer descriptor with two buffers... */
... ... @@ -1256,10 +1257,10 @@ static void eepro100_write1(EEPRO100State * s, uint32_t addr, uint8_t val)
1256 1257 eepro100_interrupt(s, 0);
1257 1258 break;
1258 1259 case SCBPort + 3:
1259   - case 24:
1260   - case 25:
1261   - case 26:
1262   - case 27:
  1260 + case SCBFlow:
  1261 + case SCBFlow + 1:
  1262 + case SCBFlow + 2:
  1263 + case SCBFlow + 3:
1263 1264 logout("addr=%s val=0x%02x\n", regname(addr), val);
1264 1265 break;
1265 1266 case SCBeeprom:
... ...