Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- QEMU Standard VGA
Browse files Browse the repository at this point in the history
tgiphil committed Oct 21, 2024
1 parent a0c8b20 commit 91dc85f
Showing 2 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -2,13 +2,16 @@

using Mosa.DeviceSystem.Framework;

namespace Mosa.DeviceDriver.PCI.Bochs;
namespace Mosa.DeviceDriver.PCI.QEMU;

// QEMU Standard VGA
// https://www.qemu.org/docs/master/specs/standard-vga.html#pci-spec

// Bochs VBE Extensions
// https://wiki.osdev.org/Bochs_VBE_Extensions

//[PCIDeviceDriver(VendorID = 0x1234, DeviceID = 0x1111, Platforms = PlatformArchitecture.X86AndX64)]
public class BochsGraphicsAdaptor : BaseDeviceDriver
public class QEMUStandardVGA : BaseDeviceDriver
{
public override void Initialize() => Device.Name = "BochsGraphicsAdaptor";
public override void Initialize() => Device.Name = "QEMUStandardVGA";
}
6 changes: 2 additions & 4 deletions Source/Mosa.DeviceDriver/Setup.cs
Original file line number Diff line number Diff line change
@@ -150,16 +150,14 @@ public static class Setup

new PCIDeviceDriverRegistryEntry
{
Name = "BochsGraphicsAdaptor",
Name = "QEMUStandardVGA",
Platform = PlatformArchitecture.X86AndX64,
VendorID = 0x1234,
DeviceID = 0x1111,
PCIFields = PCIField.VendorID | PCIField.DeviceID,
Factory = () => new PCI.Bochs.BochsGraphicsAdaptor()
Factory = () => new PCI.QEMU.QEMUStandardVGA()
},

//

new PCIDeviceDriverRegistryEntry
{
Name = "Intel440FX",

0 comments on commit 91dc85f

Please sign in to comment.