diff options
author | tmm <tmm@FreeBSD.org> | 2002-03-24 02:11:06 +0000 |
---|---|---|
committer | tmm <tmm@FreeBSD.org> | 2002-03-24 02:11:06 +0000 |
commit | 521e80e7004d21d31b68b84f1038865ad8513c5b (patch) | |
tree | 38a7ef1596d0873fd81c61d83dd216b08b60752f /sys/sparc64/include/ofw_bus.h | |
parent | 587f263c4d8db119551ac4d9518abee9498ebd04 (diff) | |
download | FreeBSD-src-521e80e7004d21d31b68b84f1038865ad8513c5b.zip FreeBSD-src-521e80e7004d21d31b68b84f1038865ad8513c5b.tar.gz |
Make the OpenFirmware interrupt mapping code more generic, to reduce
the bus-dependent code and to be able to support more systems. The core
of the new code is mostly obtained from NetBSD.
Kluge the interrupt routing methods of the psycho and apb drivers so
that an intline of 0 can be handled for now; real routing is still not
possible (all intline registers are preinitialized instead); this will
require a sparc64-specific adaption of the driver for generic PCI-PCI
bridges with a custom routing method to work right.
Diffstat (limited to 'sys/sparc64/include/ofw_bus.h')
-rw-r--r-- | sys/sparc64/include/ofw_bus.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/sparc64/include/ofw_bus.h b/sys/sparc64/include/ofw_bus.h index 55f15f9..2b0670e 100644 --- a/sys/sparc64/include/ofw_bus.h +++ b/sys/sparc64/include/ofw_bus.h @@ -28,7 +28,9 @@ #ifndef _MACHINE_OFW_BUS_H_ #define _MACHINE_OFW_BUS_H_ -u_int32_t ofw_bus_route_intr(int intr, void *regs, int regsz, int physz, - int nregs, void *imap, int nimap, void *imapmsk, char *regm); +#define ORIP_NOINT -1 +#define ORIR_NOTFOUND 0xffffffff + +u_int32_t ofw_bus_route_intr(phandle_t, int); #endif /* !_MACHINE_OFW_BUS_H_ */ |