From 4793b3db380bcaac1d396101ed11d3b3001642e5 Mon Sep 17 00:00:00 2001 From: jhb Date: Wed, 22 Feb 2006 18:16:26 +0000 Subject: - Use bus_setup_intr() and bus_teardown_intr() to register device driver interrupt handlers rather than BUS_SETUP_INTR() and BUS_TEARDOWN_INTR(). Uses of the BUS_*() versions in the implementation of foo_intr methods in bus drivers were not changed. Mostly this just means that some drivers might start printing diagnostic messages like [FAST] when appropriate as well as honoring mpsafenet=0. - Fix two more of the ppbus drivers' identify routines to function correctly in the mythical case of a machine with more than one ppbus. --- sys/dev/sio/sio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/sio/sio.c') diff --git a/sys/dev/sio/sio.c b/sys/dev/sio/sio.c index 5f1a690..df9f11b 100644 --- a/sys/dev/sio/sio.c +++ b/sys/dev/sio/sio.c @@ -1074,11 +1074,11 @@ determined_type: ; rid = 0; com->irqres = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid, RF_ACTIVE); if (com->irqres) { - ret = BUS_SETUP_INTR(device_get_parent(dev), dev, com->irqres, + ret = bus_setup_intr(dev, com->irqres, INTR_TYPE_TTY | INTR_FAST, siointr, com, &com->cookie); if (ret) { - ret = BUS_SETUP_INTR(device_get_parent(dev), dev, + ret = bus_setup_intr(dev, com->irqres, INTR_TYPE_TTY, siointr, com, &com->cookie); if (ret == 0) -- cgit v1.1