vbios
} vbios;
vbios.area = map_physical_memory("ASLS mapping", kVBIOSAddress,
kVBIOSSize, B_ANY_KERNEL_ADDRESS, B_KERNEL_READ_AREA, (void **)&vbios.memory);
if (vbios.area < 0)
kVBIOSAddress, vbios.memory));
if (memcmp(vbios.memory, OPREGION_SIGNATURE, 16) != 0) {
delete_area(vbios.area);
vbios.area = -1;
opregion_header* header = (opregion_header*)vbios.memory;
opregion_asle* asle = (opregion_asle*)(vbios.memory + OPREGION_ASLE_OFFSET);
vbios.memory += OPREGION_VBT_OFFSET;
delete_area(vbios.area);
vbios.area = map_physical_memory("RVDA mapping", rvda,
kVBIOSSize, B_ANY_KERNEL_ADDRESS, B_KERNEL_READ_AREA, (void **)&vbios.memory);
if (vbios.area < 0)
vbios.area = map_physical_memory("VBIOS mapping", kVBIOSAddress,
kVBIOSSize, B_ANY_KERNEL_ADDRESS, B_KERNEL_READ_AREA, (void**)&vbios.memory);
if (vbios.area < 0)
kVBIOSAddress, vbios.memory));
dumprom(vbios.memory, kVBIOSSize, info);
if (memcmp(vbios.memory + i, "$VBT", 4) == 0) {
delete_area(vbios.area);
struct vbt_header* vbt = (struct vbt_header*)(vbios.memory + *vbtOffset);
delete_area(vbios.area);
struct vbt_header* vbt = (struct vbt_header*)(vbios.memory + vbtOffset);
struct bdb_header* bdb = (struct bdb_header*)(vbios.memory + bdbOffset);
delete_area(vbios.area);
int id = vbios.memory[start];
blockSize = vbios.ReadWord(start + 1) + 3;
features = (struct bdb_general_features*)(vbios.memory + start);
defs = (struct bdb_general_definitions*)(vbios.memory + start);
lvds1 = (struct lvds_bdb1 *)(vbios.memory + start);
lvds2 = (struct lvds_bdb2 *)(vbios.memory + start);
(vbios.memory + bdbOffset
uint8_t* timing_data = vbios.memory + bdbOffset
bdb_generic_dtd* generic_dtd = (bdb_generic_dtd*)(vbios.memory + start);
= (bdb_lfp_backlight_data*)(vbios.memory + start);
delete_area(vbios.area);
GOP_VBIOS_CONTENT* vbios;
vbios = (GOP_VBIOS_CONTENT*)((char*)vfct + vfct->VBIOSImageOffset);
vhdr = &vbios->VbiosHeader;
rom = vbios->VbiosContent;