summaryrefslogtreecommitdiffstats
path: root/sys/sparc64/pci/psycho.c
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2008-08-22 20:28:19 +0000
committermarius <marius@FreeBSD.org>2008-08-22 20:28:19 +0000
commitb09c8c9fe798b03bb9ad0ac314bc2aa293282440 (patch)
tree0267cfba52946517b0cbbeecbd70a19cb7e6b8a9 /sys/sparc64/pci/psycho.c
parente4f89fa63b16195aab9b830031c8f59ac283a5ad (diff)
downloadFreeBSD-src-b09c8c9fe798b03bb9ad0ac314bc2aa293282440.zip
FreeBSD-src-b09c8c9fe798b03bb9ad0ac314bc2aa293282440.tar.gz
cosmetic changes and style fixes
Diffstat (limited to 'sys/sparc64/pci/psycho.c')
-rw-r--r--sys/sparc64/pci/psycho.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/sparc64/pci/psycho.c b/sys/sparc64/pci/psycho.c
index 034e794..88d7bc8 100644
--- a/sys/sparc64/pci/psycho.c
+++ b/sys/sparc64/pci/psycho.c
@@ -281,7 +281,6 @@ psycho_probe(device_t dev)
device_set_desc(dev, "U2P UPA-PCI bridge");
return (0);
}
-
return (ENXIO);
}
@@ -331,6 +330,7 @@ psycho_attach(device_t dev)
default:
panic("%s: bogus PCI control register location",
__func__);
+ /* NOTREACHED */
}
} else {
rid = 0;
@@ -651,7 +651,7 @@ psycho_attach(device_t dev)
* firmware.
*/
PCIB_WRITE_CONFIG(dev, sc->sc_pci_secbus, PCS_DEVICE, PCS_FUNC,
- PCIR_LATTIMER, 64, 1);
+ PCIR_LATTIMER, OFW_PCI_LATENCY, 1);
for (n = PCIR_VENDOR; n < PCIR_STATUS; n += sizeof(uint16_t))
le16enc(&sc->sc_pci_hpbcfg[n], bus_space_read_2(
@@ -966,6 +966,7 @@ psycho_read_config(device_t dev, u_int bus, u_int slot, u_int func, u_int reg,
break;
default:
panic("%s: bad width", __func__);
+ /* NOTREACHED */
}
if (i) {
@@ -1001,6 +1002,7 @@ psycho_write_config(device_t dev, u_int bus, u_int slot, u_int func, u_int reg,
break;
default:
panic("%s: bad width", __func__);
+ /* NOTREACHED */
}
}
@@ -1278,6 +1280,7 @@ psycho_alloc_resource(device_t bus, device_t child, int type, int *rid,
break;
default:
return (NULL);
+ /* NOTREACHED */
}
rv = rman_reserve_resource(rm, start, end, count, flags, child);
@@ -1294,7 +1297,6 @@ psycho_alloc_resource(device_t bus, device_t child, int type, int *rid,
return (NULL);
}
}
-
return (rv);
}
OpenPOWER on IntegriCloud