diff options
author | jkim <jkim@FreeBSD.org> | 2009-11-12 17:56:56 +0000 |
---|---|---|
committer | jkim <jkim@FreeBSD.org> | 2009-11-12 17:56:56 +0000 |
commit | 1aa17d213da2c1227225a1f624b8cefc8ff318dd (patch) | |
tree | cff399f1b66cc210fbaf3d124014f164d882523d /sys/dev/pci | |
parent | ab54ccdf3ee1752793bb4b58c787a65df7527204 (diff) | |
download | FreeBSD-src-1aa17d213da2c1227225a1f624b8cefc8ff318dd.zip FreeBSD-src-1aa17d213da2c1227225a1f624b8cefc8ff318dd.tar.gz |
- Partially revert hackish r198964 and r199002.
- Add a proxy driver vgapm to help vgapci to save/load VGA state.
- Move device_set_desc() to the right place while we are here.
Reviewed by: jhb
Diffstat (limited to 'sys/dev/pci')
-rw-r--r-- | sys/dev/pci/vga_pci.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/sys/dev/pci/vga_pci.c b/sys/dev/pci/vga_pci.c index 9f6a449..19fe9df 100644 --- a/sys/dev/pci/vga_pci.c +++ b/sys/dev/pci/vga_pci.c @@ -46,8 +46,6 @@ __FBSDID("$FreeBSD$"); #include <sys/sysctl.h> #include <sys/systm.h> -#include <dev/fb/vgareg.h> - #include <dev/pci/pcireg.h> #include <dev/pci/pcivar.h> @@ -57,7 +55,6 @@ struct vga_resource { }; struct vga_pci_softc { - device_t vga_isa_dev; /* Sister isavga driver. */ device_t vga_msi_child; /* Child driver using MSI. */ struct vga_resource vga_res[PCIR_MAX_BAR_0 + 1]; }; @@ -115,11 +112,6 @@ vga_pci_attach(device_t dev) static int vga_pci_suspend(device_t dev) { - struct vga_pci_softc *sc; - - sc = device_get_softc(dev); - if (sc->vga_isa_dev != NULL) - (void)DEVICE_SUSPEND(sc->vga_isa_dev); return (bus_generic_suspend(dev)); } @@ -127,11 +119,6 @@ vga_pci_suspend(device_t dev) static int vga_pci_resume(device_t dev) { - struct vga_pci_softc *sc; - - sc = device_get_softc(dev); - if (sc->vga_isa_dev != NULL) - (void)DEVICE_RESUME(sc->vga_isa_dev); return (bus_generic_resume(dev)); } |