module metal.drivers.bochs
Code Map
module metal.drivers.bochs;
enum BGA_DISPI_IOPORT_INDEX;
enum BGA_DISPI_IOPORT_DATA;
enum BGA_DISPI_INDEX_ID;
enum BGA_DISPI_INDEX_XRES;
enum BGA_DISPI_INDEX_YRES;
enum BGA_DISPI_INDEX_BPP;
enum BGA_DISPI_INDEX_ENABLE;
enum BGA_DISPI_INDEX_BANK;
enum BGA_DISPI_INDEX_VIRT_WIDTH;
enum BGA_DISPI_INDEX_VIRT_HEIGHT;
enum BGA_DISPI_INDEX_X_OFFSET;
enum BGA_DISPI_INDEX_Y_OFFSET;
enum BGA_DISPI_INDEX_VIDEO_MEMORY_64K;
enum BGA_DISPI_ID0;
enum BGA_DISPI_ID1;
enum BGA_DISPI_ID2;
enum BGA_DISPI_ID3;
enum BGA_DISPI_ID4;
enum BGA_DISPI_ID5;
enum BGA_DISPI_DISABLED;
enum BGA_DISPI_ENABLED;
enum BGA_DISPI_GETCAPS;
enum BGA_DISPI_8BIT_DAC;
enum BGA_DISPI_LFB_ENABLED;
enum BGA_DISPI_NOCLEARMEM;
struct Bochs
{
public:
ptr: void*;
w: u16;
h: u16;
pitch: u16;
bpp: u16;
loaded: bool;
pci: pci.Device*;
}
global dev: Bochs;
fn loadFromPCI(pciDev: pci.Device*) { }
fn readLayout(dev: Bochs*) { }
fn setLayout(dev: Bochs*, w: u16, h: u16, bpp: u16) { }
fn read(reg: u16) u16 { }
fn write(reg: u16, val: u16) { }