summaryrefslogtreecommitdiffstats
path: root/sys/dev/scc/scc_bfe_quicc.c
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2008-04-26 18:40:59 +0000
committermarcel <marcel@FreeBSD.org>2008-04-26 18:40:59 +0000
commit883428f9dfde48d3bf455628e1b6624cb0d07b37 (patch)
treeca20d5371a6bb7561b78df7dfca0226950ae04a0 /sys/dev/scc/scc_bfe_quicc.c
parent300a2381229dad74f8419cf1c6bffa99e4c6e1ad (diff)
downloadFreeBSD-src-883428f9dfde48d3bf455628e1b6624cb0d07b37.zip
FreeBSD-src-883428f9dfde48d3bf455628e1b6624cb0d07b37.tar.gz
With rev 1.24 of sys/powerpc/powermac/macio.c, we now get a
total of 6 interrupt resources for scc(4) on macio(4). This is 3 per channel, of which the 1st of each channel is the interrupt associated with the SCC. The other 2 are for DMA operation. Change scc_bfe_attach() to accept an argument that's the number of interrupts per channel (ipc) and change each bus front-end (bfe) to pass that argument through a wrapper for the device_attach method. For now, we only allocate the 1st interrupt of each channel to perserve behaviour.
Diffstat (limited to 'sys/dev/scc/scc_bfe_quicc.c')
-rw-r--r--sys/dev/scc/scc_bfe_quicc.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/dev/scc/scc_bfe_quicc.c b/sys/dev/scc/scc_bfe_quicc.c
index 4dc7024..f92aa52 100644
--- a/sys/dev/scc/scc_bfe_quicc.c
+++ b/sys/dev/scc/scc_bfe_quicc.c
@@ -69,10 +69,17 @@ scc_quicc_probe(device_t dev)
return (scc_bfe_probe(dev, 0, rclk, 0));
}
+static int
+scc_quicc_attach(device_t dev)
+{
+
+ return (scc_bfe_attach(dev, 0));
+}
+
static device_method_t scc_quicc_methods[] = {
/* Device interface */
DEVMETHOD(device_probe, scc_quicc_probe),
- DEVMETHOD(device_attach, scc_bfe_attach),
+ DEVMETHOD(device_attach, scc_quicc_attach),
DEVMETHOD(device_detach, scc_bfe_detach),
DEVMETHOD(bus_alloc_resource, scc_bus_alloc_resource),
OpenPOWER on IntegriCloud