summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/vga_pci.c
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2009-11-12 17:56:56 +0000
committerjkim <jkim@FreeBSD.org>2009-11-12 17:56:56 +0000
commit1aa17d213da2c1227225a1f624b8cefc8ff318dd (patch)
treecff399f1b66cc210fbaf3d124014f164d882523d /sys/dev/pci/vga_pci.c
parentab54ccdf3ee1752793bb4b58c787a65df7527204 (diff)
downloadFreeBSD-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/vga_pci.c')
-rw-r--r--sys/dev/pci/vga_pci.c13
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));
}
OpenPOWER on IntegriCloud