[VBEMP] Rename to vgapnp.sys

- rename driver vbemp.sys to vgapnp.sys
- rename service VBE to vga
- store settings in non hardware-profile registry key
This commit is contained in:
Hervé Poussineau 2021-11-24 07:55:20 +01:00
parent 073a1ea34c
commit f03750de6a
6 changed files with 62 additions and 64 deletions

View file

@ -83,16 +83,16 @@ HKLM,"SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\HID_DEVICE_SYSTEM_
HKLM,"SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\HID_DEVICE_SYSTEM_MOUSE","Service",0x00000000,"mouhid"
HKLM,"SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\HID_DEVICE_SYSTEM_MOUSE","ClassGUID",0x00000000,"{4D36E96F-E325-11CE-BFC1-08002BE10318}"
HKLM,"SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\PCI#CC_0000","Service",0x00000000,"VBE"
HKLM,"SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\PCI#CC_0000","Service",0x00000000,"vga"
HKLM,"SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\PCI#CC_0000","ClassGUID",0x00000000,"{4D36E968-E325-11CE-BFC1-08002BE10318}"
HKLM,"SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\PCI#CC_0001","Service",0x00000000,"VBE"
HKLM,"SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\PCI#CC_0001","Service",0x00000000,"vga"
HKLM,"SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\PCI#CC_0001","ClassGUID",0x00000000,"{4D36E968-E325-11CE-BFC1-08002BE10318}"
HKLM,"SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\PCI#CC_0300","Service",0x00000000,"VBE"
HKLM,"SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\PCI#CC_0300","Service",0x00000000,"vga"
HKLM,"SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\PCI#CC_0300","ClassGUID",0x00000000,"{4D36E968-E325-11CE-BFC1-08002BE10318}"
HKLM,"SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\PCI#CC_0301","Service",0x00000000,"VBE"
HKLM,"SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\PCI#CC_0301","Service",0x00000000,"vga"
HKLM,"SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\PCI#CC_0301","ClassGUID",0x00000000,"{4D36E968-E325-11CE-BFC1-08002BE10318}"
HKLM,"SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\*PNP0303","Service",0x00000000,"i8042prt"
@ -252,10 +252,8 @@ HKLM,"SYSTEM\CurrentControlSet\Control\SafeBoot\Network\{745A17A0-74D3-11D0-B6FE
; ReactOS specific - required to load in Safe Mode and for debugging in Safe Mode (until vga.sys and vgasave.sys are implemented)
HKLM,"SYSTEM\CurrentControlSet\Control\SafeBoot\Minimal\Debug","",0x00000000,"Driver Group"
HKLM,"SYSTEM\CurrentControlSet\Control\SafeBoot\Minimal\vbemp.sys","",0x00000000,"Driver"
HKLM,"SYSTEM\CurrentControlSet\Control\SafeBoot\Network\Debug","",0x00000000,"Driver Group"
HKLM,"SYSTEM\CurrentControlSet\Control\SafeBoot\Network\vbemp.sys","",0x00000000,"Driver"
; Other
HKLM,"SYSTEM\CurrentControlSet\Control\Arbiters",,0x00000012

View file

@ -296,30 +296,30 @@ halmp.dll = 1,,,,,,,2,,,hal.dll,1,2
[Display]
;<id> = <user friendly name>,<spare>,<service key name>,<width>,<height>,<bpp>
vga = "VGA Display (640x480x4)",,VgaSave,640,480,4
vbe_640x480x8 = "VESA Display (640x480x8)",,VBE,640,480,8
vbe_640x480x16 = "VESA Display (640x480x16)",,VBE,640,480,16
vbe_640x480x24 = "VESA Display (640x480x24)",,VBE,640,480,24
vbe_640x480x32 = "VESA Display (640x480x32)",,VBE,640,480,32
vbe_800x600x8 = "VESA Display (800x600x8)",,VBE,800,600,8
vbe_800x600x16 = "VESA Display (800x600x16)",,VBE,800,600,16
vbe_800x600x24 = "VESA Display (800x600x24)",,VBE,800,600,24
vbe = "VESA Display (800x600x32)",,VBE,800,600,32
vbe_1024x768x8 = "VESA Display (1024x768x8)",,VBE,1024,768,8
vbe_1024x768x16 = "VESA Display (1024x768x16)",,VBE,1024,768,16
vbe_1024x768x24 = "VESA Display (1024x768x24)",,VBE,1024,768,24
vbe_1024x768x32 = "VESA Display (1024x768x32)",,VBE,1024,768,32
vbe_1152x864x8 = "VESA Display (1152x864x8)",,VBE,1152,864,8
vbe_1152x864x16 = "VESA Display (1152x864x16)",,VBE,1152,864,16
vbe_1152x864x24 = "VESA Display (1152x864x24)",,VBE,1152,864,24
vbe_1152x864x32 = "VESA Display (1152x864x32)",,VBE,1152,864,32
vbe_1280x1024x8 = "VESA Display (1280x1024x8)",,VBE,1280,1024,8
vbe_1280x1024x16 = "VESA Display (1280x1024x16)",,VBE,1280,1024,16
vbe_1280x1024x24 = "VESA Display (1280x1024x24)",,VBE,1280,1024,24
vbe_1280x1024x32 = "VESA Display (1280x1024x32)",,VBE,1280,1024,32
vbe_1600x1200x8 = "VESA Display (1600x1200x8)",,VBE,1600,1200,8
vbe_1600x1200x16 = "VESA Display (1600x1200x16)",,VBE,1600,1200,16
vbe_1600x1200x24 = "VESA Display (1600x1200x24)",,VBE,1600,1200,24
vbe_1600x1200x32 = "VESA Display (1600x1200x32)",,VBE,1600,1200,32
vbe_640x480x8 = "VESA Display (640x480x8)",,vga,640,480,8
vbe_640x480x16 = "VESA Display (640x480x16)",,vga,640,480,16
vbe_640x480x24 = "VESA Display (640x480x24)",,vga,640,480,24
vbe_640x480x32 = "VESA Display (640x480x32)",,vga,640,480,32
vbe_800x600x8 = "VESA Display (800x600x8)",,vga,800,600,8
vbe_800x600x16 = "VESA Display (800x600x16)",,vga,800,600,16
vbe_800x600x24 = "VESA Display (800x600x24)",,vga,800,600,24
vbe = "VESA Display (800x600x32)",,vga,800,600,32
vbe_1024x768x8 = "VESA Display (1024x768x8)",,vga,1024,768,8
vbe_1024x768x16 = "VESA Display (1024x768x16)",,vga,1024,768,16
vbe_1024x768x24 = "VESA Display (1024x768x24)",,vga,1024,768,24
vbe_1024x768x32 = "VESA Display (1024x768x32)",,vga,1024,768,32
vbe_1152x864x8 = "VESA Display (1152x864x8)",,vga,1152,864,8
vbe_1152x864x16 = "VESA Display (1152x864x16)",,vga,1152,864,16
vbe_1152x864x24 = "VESA Display (1152x864x24)",,vga,1152,864,24
vbe_1152x864x32 = "VESA Display (1152x864x32)",,vga,1152,864,32
vbe_1280x1024x8 = "VESA Display (1280x1024x8)",,vga,1280,1024,8
vbe_1280x1024x16 = "VESA Display (1280x1024x16)",,vga,1280,1024,16
vbe_1280x1024x24 = "VESA Display (1280x1024x24)",,vga,1280,1024,24
vbe_1280x1024x32 = "VESA Display (1280x1024x32)",,vga,1280,1024,32
vbe_1600x1200x8 = "VESA Display (1600x1200x8)",,vga,1600,1200,8
vbe_1600x1200x16 = "VESA Display (1600x1200x16)",,vga,1600,1200,16
vbe_1600x1200x24 = "VESA Display (1600x1200x24)",,vga,1600,1200,24
vbe_1600x1200x32 = "VESA Display (1600x1200x32)",,vga,1600,1200,32
xbox = "Original Xbox NV2A Framebuffer (640x480x32)",,XboxVmp,640,480,32
[Map.Display]

View file

@ -38,7 +38,7 @@ HKR, , Installer32, 0, "desk.cpl,DisplayClassInstaller"
CopyFiles = VGA.Miniport_CopyFiles.NT, VGA.Display_CopyFiles.NT
[VGA.Miniport_CopyFiles.NT]
vbemp.sys
vgapnp.sys
[VGA.Display_CopyFiles.NT]
vgaddi.dll
@ -46,13 +46,13 @@ framebuf.dll
[VGA_Inst.NT.Services]
AddService = , 0x00000002
AddService = VBE, 0x00000003, VBE_Service_Inst ; SPSVCINST_TAGTOFRONT + SPSVCINST_ASSOCSERVICE
AddService = vga, 0x00000003, VBE_Service_Inst ; SPSVCINST_TAGTOFRONT + SPSVCINST_ASSOCSERVICE
[VBE_Service_Inst]
ServiceType = 1
StartType = 1
ErrorControl = 0
ServiceBinary = %12%\vbemp.sys
ServiceBinary = %12%\vgapnp.sys
LoadOrderGroup = Video Save
;-------------------------------- STRINGS -------------------------------

View file

@ -4,10 +4,10 @@ list(APPEND SOURCE
vbemp.c
vbemp.h)
add_library(vbemp MODULE ${SOURCE} vbemp.rc)
set_module_type(vbemp kernelmodedriver)
add_importlibs(vbemp videoprt)
add_pch(vbemp vbemp.h SOURCE)
target_link_libraries(vbemp libcntpr)
add_cd_file(TARGET vbemp DESTINATION reactos/system32/drivers FOR all)
add_library(vgapnp MODULE ${SOURCE} vbemp.rc)
set_module_type(vgapnp kernelmodedriver)
add_importlibs(vgapnp videoprt)
add_pch(vgapnp vbemp.h SOURCE)
target_link_libraries(vgapnp libcntpr)
add_cd_file(TARGET vgapnp DESTINATION reactos/system32/drivers FOR all)
add_registry_inf(vbemp_reg.inf)

View file

@ -1,5 +1,5 @@
#define REACTOS_VERSION_DLL
#define REACTOS_STR_FILE_DESCRIPTION "VBE Miniport Device Driver"
#define REACTOS_STR_INTERNAL_NAME "vbemp"
#define REACTOS_STR_ORIGINAL_FILENAME "vbemp.sys"
#define REACTOS_STR_INTERNAL_NAME "vgapnp"
#define REACTOS_STR_ORIGINAL_FILENAME "vgapnp.sys"
#include <reactos/version.rc>

View file

@ -1,28 +1,28 @@
; VBE SVGA driver
[AddReg]
HKLM,"SYSTEM\CurrentControlSet\Services\VBE","ErrorControl",0x00010001,0x00000000
HKLM,"SYSTEM\CurrentControlSet\Services\VBE","Group",0x00000000,"Video Save"
HKLM,"SYSTEM\CurrentControlSet\Services\VBE","ImagePath",0x00020000,"system32\drivers\vbemp.sys"
HKLM,"SYSTEM\CurrentControlSet\Services\VBE","Start",0x00010001,0x00000001
HKLM,"SYSTEM\CurrentControlSet\Services\VBE","Type",0x00010001,0x00000001
HKLM,"SYSTEM\CurrentControlSet\Services\VBE","Tag",0x00010001,0x00000001
HKLM,"SYSTEM\CurrentControlSet\Services\VBE\Video","Service",0x00000000,"VBE"
HKLM,"SYSTEM\CurrentControlSet\Services\vga","ErrorControl",0x00010001,0x00000000
HKLM,"SYSTEM\CurrentControlSet\Services\vga","Group",0x00000000,"Video Save"
HKLM,"SYSTEM\CurrentControlSet\Services\vga","ImagePath",0x00020000,"system32\drivers\vgapnp.sys"
HKLM,"SYSTEM\CurrentControlSet\Services\vga","Start",0x00010001,0x00000001
HKLM,"SYSTEM\CurrentControlSet\Services\vga","Type",0x00010001,0x00000001
HKLM,"SYSTEM\CurrentControlSet\Services\vga","Tag",0x00010001,0x00000001
HKLM,"SYSTEM\CurrentControlSet\Services\vga\Video","Service",0x00000000,"vga"
HKLM,"SYSTEM\CurrentControlSet\Hardware Profiles\Current\System\CurrentControlSet\Services\VBE\Device0","InstalledDisplayDrivers",0x00010000,"framebuf"
HKLM,"SYSTEM\CurrentControlSet\Hardware Profiles\Current\System\CurrentControlSet\Services\VBE\Device0","DefaultSettings.VRefresh",0x00010001,1
HKLM,"SYSTEM\CurrentControlSet\Hardware Profiles\Current\System\CurrentControlSet\Services\VBE\Device0","DefaultSettings.BitsPerPel",0x00010001,32
HKLM,"SYSTEM\CurrentControlSet\Hardware Profiles\Current\System\CurrentControlSet\Services\VBE\Device0","DefaultSettings.XResolution",0x00010001,800
HKLM,"SYSTEM\CurrentControlSet\Hardware Profiles\Current\System\CurrentControlSet\Services\VBE\Device0","DefaultSettings.YResolution",0x00010001,600
HKLM,"SYSTEM\CurrentControlSet\Hardware Profiles\Current\System\CurrentControlSet\Services\VBE\Device0","DefaultSettings.FixedOutput",0x00010001,0
HKLM,"SYSTEM\CurrentControlSet\Hardware Profiles\Current\System\CurrentControlSet\Services\VBE\Device0","DefaultSettings.Flags",0x00010001,0
HKLM,"SYSTEM\CurrentControlSet\Hardware Profiles\Current\System\CurrentControlSet\Services\VBE\Device0","DefaultSettings.Orientation",0x00010001,0
HKLM,"SYSTEM\CurrentControlSet\Hardware Profiles\Current\System\CurrentControlSet\Services\VBE\Device0","DefaultSettings.XPanning",0x00010001,0
HKLM,"SYSTEM\CurrentControlSet\Hardware Profiles\Current\System\CurrentControlSet\Services\VBE\Device0","DefaultSettings.YPanning",0x00010001,0
HKLM,"SYSTEM\CurrentControlSet\Hardware Profiles\Current\System\CurrentControlSet\Services\VBE\Device0","Attach.RelativeX",0x00010001,0
HKLM,"SYSTEM\CurrentControlSet\Hardware Profiles\Current\System\CurrentControlSet\Services\VBE\Device0","Attach.RelativeY",0x00010001,0
HKLM,"SYSTEM\CurrentControlSet\Hardware Profiles\Current\System\CurrentControlSet\Services\VBE\Device0","Attach.ToDesktop",0x00010001,1
HKLM,"SYSTEM\CurrentControlSet\Hardware Profiles\Current\System\CurrentControlSet\Services\VBE\Device0","Attach.PrimaryDevice",0x00010001,1
HKLM,"SYSTEM\CurrentControlSet\Hardware Profiles\Current\System\CurrentControlSet\Services\VBE\Device0","Device Description",0x00020000,"Generic VESA Adapter"
HKLM,"SYSTEM\CurrentControlSet\Services\vga\Device0","InstalledDisplayDrivers",0x00010000,"framebuf"
HKLM,"SYSTEM\CurrentControlSet\Services\vga\Device0","DefaultSettings.VRefresh",0x00010001,1
HKLM,"SYSTEM\CurrentControlSet\Services\vga\Device0","DefaultSettings.BitsPerPel",0x00010001,32
HKLM,"SYSTEM\CurrentControlSet\Services\vga\Device0","DefaultSettings.XResolution",0x00010001,800
HKLM,"SYSTEM\CurrentControlSet\Services\vga\Device0","DefaultSettings.YResolution",0x00010001,600
HKLM,"SYSTEM\CurrentControlSet\Services\vga\Device0","DefaultSettings.FixedOutput",0x00010001,0
HKLM,"SYSTEM\CurrentControlSet\Services\vga\Device0","DefaultSettings.Flags",0x00010001,0
HKLM,"SYSTEM\CurrentControlSet\Services\vga\Device0","DefaultSettings.Orientation",0x00010001,0
HKLM,"SYSTEM\CurrentControlSet\Services\vga\Device0","DefaultSettings.XPanning",0x00010001,0
HKLM,"SYSTEM\CurrentControlSet\Services\vga\Device0","DefaultSettings.YPanning",0x00010001,0
HKLM,"SYSTEM\CurrentControlSet\Services\vga\Device0","Attach.RelativeX",0x00010001,0
HKLM,"SYSTEM\CurrentControlSet\Services\vga\Device0","Attach.RelativeY",0x00010001,0
HKLM,"SYSTEM\CurrentControlSet\Services\vga\Device0","Attach.ToDesktop",0x00010001,1
HKLM,"SYSTEM\CurrentControlSet\Services\vga\Device0","Attach.PrimaryDevice",0x00010001,1
HKLM,"SYSTEM\CurrentControlSet\Services\vga\Device0","Device Description",0x00000000,"Generic VESA Adapter"
; This is not true but it allows to use 3rd party drivers while having the VBE driver installed
HKLM,"SYSTEM\CurrentControlSet\Hardware Profiles\Current\System\CurrentControlSet\Services\VBE\Device0","VgaCompatible",0x00010001,1
HKLM,"SYSTEM\CurrentControlSet\Services\vga\Device0","VgaCompatible",0x00010001,1