diff options
author | jhibbits <jhibbits@FreeBSD.org> | 2013-12-21 04:31:54 +0000 |
---|---|---|
committer | jhibbits <jhibbits@FreeBSD.org> | 2013-12-21 04:31:54 +0000 |
commit | 5da3574e724e097bde8ffb8d9bad07e178f3ac28 (patch) | |
tree | 5444931b60e3663f087eb165ff6c64e175504055 /sys/powerpc/ofw/openpic_ofw.c | |
parent | d8d2ad3d7cc60662db5c2c9191e59ca665c82d56 (diff) | |
download | FreeBSD-src-5da3574e724e097bde8ffb8d9bad07e178f3ac28.zip FreeBSD-src-5da3574e724e097bde8ffb8d9bad07e178f3ac28.tar.gz |
Add suspend/resume state saving for OpenPIC on PowerMac. It's likely this
can be used on the others (cpcht and psim), but that has not been tested.
Diffstat (limited to 'sys/powerpc/ofw/openpic_ofw.c')
-rw-r--r-- | sys/powerpc/ofw/openpic_ofw.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/powerpc/ofw/openpic_ofw.c b/sys/powerpc/ofw/openpic_ofw.c index 0e85dda..2ddfb61 100644 --- a/sys/powerpc/ofw/openpic_ofw.c +++ b/sys/powerpc/ofw/openpic_ofw.c @@ -51,6 +51,7 @@ __FBSDID("$FreeBSD$"); #include <sys/rman.h> +#include <machine/openpicreg.h> #include <machine/openpicvar.h> #include "pic_if.h" @@ -68,6 +69,8 @@ static device_method_t openpic_ofw_methods[] = { /* Device interface */ DEVMETHOD(device_probe, openpic_ofw_probe), DEVMETHOD(device_attach, openpic_ofw_attach), + DEVMETHOD(device_suspend, openpic_suspend), + DEVMETHOD(device_resume, openpic_resume), /* PIC interface */ DEVMETHOD(pic_bind, openpic_bind), |