mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-24 16:10:11 +00:00
[ig4] Add generic resource methods to bus interface
That allows ig4 children to allocate IRQs
This commit is contained in:
parent
bff2755582
commit
fceaa2ec31
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=354319
@ -169,6 +169,17 @@ static device_method_t ig4iic_acpi_methods[] = {
|
||||
DEVMETHOD(device_suspend, ig4iic_acpi_suspend),
|
||||
DEVMETHOD(device_resume, ig4iic_acpi_resume),
|
||||
|
||||
/* Bus interface */
|
||||
DEVMETHOD(bus_setup_intr, bus_generic_setup_intr),
|
||||
DEVMETHOD(bus_teardown_intr, bus_generic_teardown_intr),
|
||||
DEVMETHOD(bus_alloc_resource, bus_generic_alloc_resource),
|
||||
DEVMETHOD(bus_release_resource, bus_generic_release_resource),
|
||||
DEVMETHOD(bus_activate_resource, bus_generic_activate_resource),
|
||||
DEVMETHOD(bus_deactivate_resource, bus_generic_deactivate_resource),
|
||||
DEVMETHOD(bus_adjust_resource, bus_generic_adjust_resource),
|
||||
DEVMETHOD(bus_set_resource, bus_generic_rl_set_resource),
|
||||
DEVMETHOD(bus_get_resource, bus_generic_rl_get_resource),
|
||||
|
||||
/* iicbus interface */
|
||||
DEVMETHOD(iicbus_transfer, ig4iic_transfer),
|
||||
DEVMETHOD(iicbus_reset, ig4iic_reset),
|
||||
|
@ -230,6 +230,18 @@ static device_method_t ig4iic_pci_methods[] = {
|
||||
DEVMETHOD(device_suspend, ig4iic_pci_suspend),
|
||||
DEVMETHOD(device_resume, ig4iic_pci_resume),
|
||||
|
||||
/* Bus interface */
|
||||
DEVMETHOD(bus_setup_intr, bus_generic_setup_intr),
|
||||
DEVMETHOD(bus_teardown_intr, bus_generic_teardown_intr),
|
||||
DEVMETHOD(bus_alloc_resource, bus_generic_alloc_resource),
|
||||
DEVMETHOD(bus_release_resource, bus_generic_release_resource),
|
||||
DEVMETHOD(bus_activate_resource, bus_generic_activate_resource),
|
||||
DEVMETHOD(bus_deactivate_resource, bus_generic_deactivate_resource),
|
||||
DEVMETHOD(bus_adjust_resource, bus_generic_adjust_resource),
|
||||
DEVMETHOD(bus_set_resource, bus_generic_rl_set_resource),
|
||||
DEVMETHOD(bus_get_resource, bus_generic_rl_get_resource),
|
||||
|
||||
/* iicbus interface */
|
||||
DEVMETHOD(iicbus_transfer, ig4iic_transfer),
|
||||
DEVMETHOD(iicbus_reset, ig4iic_reset),
|
||||
DEVMETHOD(iicbus_callback, ig4iic_callback),
|
||||
|
Loading…
Reference in New Issue
Block a user