diff options
author | marcel <marcel@FreeBSD.org> | 2003-09-10 21:37:10 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2003-09-10 21:37:10 +0000 |
commit | 5b7162679021b8172dbaed25aa7e46235bc50eb3 (patch) | |
tree | e352891e6c79c2e16bc27caa439f4d033d2c1b9a /sys/kern/bus_if.m | |
parent | 166a76868af23b3c216ac5e84e7f7fbba056cd41 (diff) | |
download | FreeBSD-src-5b7162679021b8172dbaed25aa7e46235bc50eb3.zip FreeBSD-src-5b7162679021b8172dbaed25aa7e46235bc50eb3.tar.gz |
Introduce BUS_CONFIG_INTR(). The method allows devices to tell parents
about interrupt trigger mode and interrupt polarity. This allows ACPI
for example to pass interrupt resource information up the hierarchy.
The default implementation of the method therefore is to pass the
request to the parent.
Reviewed by: jhb, njl
Diffstat (limited to 'sys/kern/bus_if.m')
-rw-r--r-- | sys/kern/bus_if.m | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sys/kern/bus_if.m b/sys/kern/bus_if.m index 81d05ea..fb83013 100644 --- a/sys/kern/bus_if.m +++ b/sys/kern/bus_if.m @@ -280,3 +280,14 @@ METHOD int child_location_str { char *_buf; size_t _buflen; }; + +# +# Allow (bus) drivers to specify the trigger mode and polarity of the +# specified interrupt. +# +METHOD int config_intr { + device_t _dev; + int _irq; + enum intr_trigger _trig; + enum intr_polarity _pol; +} DEFAULT bus_generic_config_intr; |