case sizeof(uint32_t):
{
uint32_t ® = *(uint32_t *)data;
+ uint16_t rfaddr;
switch (daddr) {
case CR:
break;
case RFDR:
- uint16_t rfaddr = (uint16_t)(regs.rfcr & RFCR_RFADDR);
+ rfaddr = (uint16_t)(regs.rfcr & RFCR_RFADDR);
switch (rfaddr) {
// Read from perfect match ROM octets
case 0x000:
break;
}
- panic("reading RFDR for something other than pattern\
- matching or hashing! %#x\n", rfaddr);
+ panic("reading RFDR for something other than pattern"
+ " matching or hashing! %#x\n", rfaddr);
}
break;
if (req->size == sizeof(uint32_t)) {
uint32_t reg = *(uint32_t *)data;
+ uint16_t rfaddr;
+
DPRINTF(EthernetPIO, "write data=%d data=%#x\n", reg, reg);
switch (daddr) {
break;
case RFDR:
- uint16_t rfaddr = (uint16_t)(regs.rfcr & RFCR_RFADDR);
+ rfaddr = (uint16_t)(regs.rfcr & RFCR_RFADDR);
switch (rfaddr) {
case 0x000:
rom.perfectMatch[0] = (uint8_t)reg;