summaryrefslogtreecommitdiffstats
path: root/sys/dev/puc
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2005-03-04 22:23:21 +0000
committermarius <marius@FreeBSD.org>2005-03-04 22:23:21 +0000
commitd730e7dc0a683c07a1bcb12a666d1971b6f739de (patch)
treef0137a61cb51a1bada1585d68d76b4c9a8eebbae /sys/dev/puc
parentee7224dfdd43a3858556ec007e57d600e6150a93 (diff)
downloadFreeBSD-src-d730e7dc0a683c07a1bcb12a666d1971b6f739de.zip
FreeBSD-src-d730e7dc0a683c07a1bcb12a666d1971b6f739de.tar.gz
- sparc64/fhc/fhc.c:
Change fhc(4) to use IRQ numbers instead of RIDs for allocating the IRQs of children. This works similar to e.g. sbus(4), i.e. add the IRQ resources as fully specified to the resource lists of the children, allocate them like normal. When establishing the interrupt search the interrupt maps of the children for a matching INO to determine which map we need to write the fully specified interrupt number to and to enable the mapping (before the RID was used to indicate which interrupt map to use). - dev/puc/puc.c: Revert rev. 1.38, with the above change fhc(4) no longer needs special treatment for allocating IRQs. Thanks to: joerg for providing access to an E3500
Diffstat (limited to 'sys/dev/puc')
-rw-r--r--sys/dev/puc/puc.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/sys/dev/puc/puc.c b/sys/dev/puc/puc.c
index 11506e5..86e2a0c 100644
--- a/sys/dev/puc/puc.c
+++ b/sys/dev/puc/puc.c
@@ -97,10 +97,6 @@ __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>
@@ -193,12 +189,7 @@ 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)
OpenPOWER on IntegriCloud