summaryrefslogtreecommitdiffstats
path: root/sys/dev/eisa/eisaconf.h
diff options
context:
space:
mode:
authormdodd <mdodd@FreeBSD.org>1999-08-01 22:57:09 +0000
committermdodd <mdodd@FreeBSD.org>1999-08-01 22:57:09 +0000
commitc790088cf6511de19be83cd5a1ca24ad896d2be1 (patch)
tree62ea067550649b36861238bc9f0b86abd784376b /sys/dev/eisa/eisaconf.h
parent6a572156072aa10677fe402b5b7995b0754131d6 (diff)
downloadFreeBSD-src-c790088cf6511de19be83cd5a1ca24ad896d2be1.zip
FreeBSD-src-c790088cf6511de19be83cd5a1ca24ad896d2be1.tar.gz
Move the specification of EDGE/LEVEL triggered interrupts to
eisa_add_intr() which now takes an additional arguement (one of EISA_TRIGGER_LEVEL or EISA_TRIGGER_EDGE). The flag RR_SHAREABLE has no effect when passed to bus_alloc_resource(dev, SYS_RES_IRQ, ...) in an EISA device context as the eisa_alloc_resource() call (bus_alloc_resource method) now deals with this flag directly, depending on the device ivars. This change does nothing more than move all the 'shared = inb(foo + iobsse)' nonesense to the device probe methods rather than the device attach. Also, print out 'edge' or 'level' in the IRQ announcement message. Reviewed by: dfr
Diffstat (limited to 'sys/dev/eisa/eisaconf.h')
-rw-r--r--sys/dev/eisa/eisaconf.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/dev/eisa/eisaconf.h b/sys/dev/eisa/eisaconf.h
index cb950c8..6174b6b 100644
--- a/sys/dev/eisa/eisaconf.h
+++ b/sys/dev/eisa/eisaconf.h
@@ -28,7 +28,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: eisaconf.h,v 1.17 1997/09/21 21:35:23 gibbs Exp $
+ * $Id: eisaconf.h,v 1.18 1999/04/18 15:50:33 peter Exp $
*/
#ifndef _I386_EISA_EISACONF_H_
@@ -53,6 +53,9 @@ enum eisa_device_ivars {
EISA_IVAR_IRQ
};
+#define EISA_TRIGGER_EDGE 0x0
+#define EISA_TRIGGER_LEVEL 0x1
+
/*
* Simplified accessors for isa devices
*/
@@ -75,7 +78,7 @@ EISA_ACCESSOR(slot, SLOT, int)
EISA_ACCESSOR(id, ID, eisa_id_t)
EISA_ACCESSOR(irq, IRQ, eisa_id_t)
-int eisa_add_intr __P((device_t, int));
+int eisa_add_intr __P((device_t, int, int));
#define RESVADDR_NONE 0x00
#define RESVADDR_BITMASK 0x01 /* size is a mask of reserved
OpenPOWER on IntegriCloud