--- src/sys/kern/bus_if.m 2004/02/21 06:37:08 1.5 +++ src/sys/kern/bus_if.m 2005/05/23 18:19:54 1.6 @@ -202,6 +202,24 @@ METHOD int teardown_intr { void *cookie; }; +# Enable or disable an interrupt. The device is generally expected to do +# the physical enablement and disablement. The bus code must flag the +# condition so it does not call the handler from a scheduled interrupt thread, +# since the hard interrupt might be disabled after the interrupt thread +# has been scheduled but before it runs. +# +METHOD void enable_intr { + device_t dev; + device_t child; + void *cookie; +} DEFAULT bus_generic_enable_intr; + +METHOD void disable_intr { + device_t dev; + device_t child; + void *cookie; +} DEFAULT bus_generic_disable_intr; + # # Set the range used for a particular resource. Return EINVAL if # the type or rid are out of range.