Attach dpms(4) to vgapm and make sure to restore DPMS state after
VGA is resumed properly. Reviewed by: jhb
This commit is contained in:
parent
5f2e16424c
commit
1ce5efd4b6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=200584
@ -118,15 +118,14 @@ static driver_t dpms_driver = {
|
||||
|
||||
static devclass_t dpms_devclass;
|
||||
|
||||
DRIVER_MODULE(dpms, vgapci, dpms_driver, dpms_devclass, NULL, NULL);
|
||||
DRIVER_MODULE(dpms, vgapm, dpms_driver, dpms_devclass, NULL, NULL);
|
||||
MODULE_DEPEND(dpms, x86bios, 1, 1, 1);
|
||||
|
||||
static void
|
||||
dpms_identify(driver_t *driver, device_t parent)
|
||||
{
|
||||
|
||||
if (device_get_flags(parent) != 0 &&
|
||||
x86bios_match_device(0xc0000, parent))
|
||||
if (x86bios_match_device(0xc0000, device_get_parent(parent)))
|
||||
device_add_child(parent, "dpms", 0);
|
||||
}
|
||||
|
||||
|
@ -328,6 +328,9 @@ static int
|
||||
vgapm_attach(device_t dev)
|
||||
{
|
||||
|
||||
bus_generic_probe(dev);
|
||||
bus_generic_attach(dev);
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user