aboutsummaryrefslogtreecommitdiff
path: root/sys/sparc64/sparc64/ofw_machdep.c
diff options
context:
space:
mode:
authorMarius Strobl <marius@FreeBSD.org>2007-01-18 18:32:26 +0000
committerMarius Strobl <marius@FreeBSD.org>2007-01-18 18:32:26 +0000
commit23e81b7e0312e6edcf1320225f04d1f6f382c8ba (patch)
tree75a8865fa92b6abec4f64c11c90a51178f5bd531 /sys/sparc64/sparc64/ofw_machdep.c
parentf1f234518b7c8fa8dd32043baf7e01ec88e14ec6 (diff)
downloadsrc-23e81b7e0312e6edcf1320225f04d1f6f382c8ba.tar.gz
src-23e81b7e0312e6edcf1320225f04d1f6f382c8ba.zip
- Rename UPA_BUS_SPACE to NEXUS_BUS_SPACE; besides an UPA bus, nexus(4)
may also reflect a Fireplane/Safari or JBus bus (or a virtual bus which in turn reflects a JBus bus or something like that...). - In the both the sparc64 and sun4v bus_machdep.c use __FBSDID. - Spell SBus the official way in comments. - Replace hardcoded function names (all of which were actually outdated) in panic and status strings with __func__. - Fix whitespace nits.
Notes
Notes: svn path=/head/; revision=166096
Diffstat (limited to 'sys/sparc64/sparc64/ofw_machdep.c')
-rw-r--r--sys/sparc64/sparc64/ofw_machdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/sparc64/sparc64/ofw_machdep.c b/sys/sparc64/sparc64/ofw_machdep.c
index 05c4437401fa..7efc807e28b7 100644
--- a/sys/sparc64/sparc64/ofw_machdep.c
+++ b/sys/sparc64/sparc64/ofw_machdep.c
@@ -245,14 +245,14 @@ OF_decode_addr(phandle_t node, int bank, int *space, bus_addr_t *addr)
/* Done with mapping. Return the bus space as used by FreeBSD. */
*addr = start;
if (OF_parent(lbus) == 0) {
- *space = UPA_BUS_SPACE;
+ *space = NEXUS_BUS_SPACE;
return (0);
}
if (OF_getprop(lbus, "name", name, sizeof(name)) == -1)
return (ENXIO);
name[sizeof(name) - 1] = '\0';
if (strcmp(name, "central") == 0 || strcmp(name, "upa") == 0) {
- *space = UPA_BUS_SPACE;
+ *space = NEXUS_BUS_SPACE;
return (0);
} else if (strcmp(name, "pci") == 0) {
switch (cspace) {