mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-19 06:44:31 +00:00
Add a prototype for suspend/resume.
This commit is contained in:
parent
98e6731b51
commit
5e2a411f2d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=106809
|
@ -288,12 +288,28 @@ fwohci_pci_detach(device_t self)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int
|
||||||
|
fwohci_pci_suspend(device_t dev)
|
||||||
|
{
|
||||||
|
device_printf(dev, "fwoch_pci_suspend\n");
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
static int
|
||||||
|
fwohci_pci_resume(device_t dev)
|
||||||
|
{
|
||||||
|
device_printf(dev, "fwoch_pci_resume\n");
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
static device_method_t fwohci_methods[] = {
|
static device_method_t fwohci_methods[] = {
|
||||||
/* Device interface */
|
/* Device interface */
|
||||||
DEVMETHOD(device_probe, fwohci_pci_probe),
|
DEVMETHOD(device_probe, fwohci_pci_probe),
|
||||||
DEVMETHOD(device_attach, fwohci_pci_attach),
|
DEVMETHOD(device_attach, fwohci_pci_attach),
|
||||||
DEVMETHOD(device_detach, fwohci_pci_detach),
|
DEVMETHOD(device_detach, fwohci_pci_detach),
|
||||||
DEVMETHOD(device_shutdown, bus_generic_shutdown),
|
DEVMETHOD(device_shutdown, bus_generic_shutdown),
|
||||||
|
DEVMETHOD(device_suspend, fwohci_pci_suspend),
|
||||||
|
DEVMETHOD(device_resume, fwohci_pci_resume),
|
||||||
|
|
||||||
/* Bus interface */
|
/* Bus interface */
|
||||||
DEVMETHOD(bus_print_child, bus_generic_print_child),
|
DEVMETHOD(bus_print_child, bus_generic_print_child),
|
||||||
|
|
Loading…
Reference in a new issue