diff options
Diffstat (limited to 'sys/alpha/pci/t2_pci.c')
-rw-r--r-- | sys/alpha/pci/t2_pci.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/alpha/pci/t2_pci.c b/sys/alpha/pci/t2_pci.c index 5d3eb21..687aa17 100644 --- a/sys/alpha/pci/t2_pci.c +++ b/sys/alpha/pci/t2_pci.c @@ -142,8 +142,10 @@ t2_pcib_read_config(device_t dev, int b, int s, int f, switch (width) { case 1: SWIZ_CFGREAD(b, s, f, reg, BYTE, u_int8_t); + break; case 2: SWIZ_CFGREAD(b, s, f, reg, WORD, u_int16_t); + break; case 4: SWIZ_CFGREAD(b, s, f, reg, LONG, u_int32_t); } @@ -157,8 +159,10 @@ t2_pcib_write_config(device_t dev, int b, int s, int f, switch (width) { case 1: SWIZ_CFGWRITE(b, s, f, reg, val, BYTE, u_int8_t); + break; case 2: SWIZ_CFGWRITE(b, s, f, reg, val, WORD, u_int16_t); + break; case 4: SWIZ_CFGWRITE(b, s, f, reg, val, LONG, u_int32_t); } |