aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/puc/puc.c
diff options
context:
space:
mode:
authorMarius Strobl <marius@FreeBSD.org>2005-02-26 00:22:52 +0000
committerMarius Strobl <marius@FreeBSD.org>2005-02-26 00:22:52 +0000
commitad11db7c28dc0fcc2be84b43993751c94753ad55 (patch)
tree6fe342706fa507fca317764329fb071079501add /sys/dev/puc/puc.c
parenta944e196da46dd13fa7a2b4e6563d1e97d81f488 (diff)
Notes
Diffstat (limited to 'sys/dev/puc/puc.c')
-rw-r--r--sys/dev/puc/puc.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/dev/puc/puc.c b/sys/dev/puc/puc.c
index 86e2a0caed52f..11506e5b1753b 100644
--- a/sys/dev/puc/puc.c
+++ b/sys/dev/puc/puc.c
@@ -97,6 +97,10 @@ __FBSDID("$FreeBSD$");
#include <dev/pci/pcireg.h>
#include <dev/pci/pcivar.h>
+#ifdef __sparc64__
+#include <sparc64/fhc/fhcreg.h>
+#endif
+
#define PUC_ENTRAILS 1
#include <dev/puc/pucvar.h>
@@ -189,7 +193,12 @@ puc_attach(device_t dev, const struct puc_device_description *desc)
printf("puc: name: %s\n", sc->sc_desc.name);
#endif
+
rid = 0;
+#ifdef __sparc64__
+ if (strcmp(device_get_name(device_get_parent(dev)), "fhc") == 0)
+ rid = FHC_UART;
+#endif
res = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid,
RF_ACTIVE | RF_SHAREABLE);
if (!res)