DevPcBios.cpp revision 24ca3d27f14cf8a03b8448f6d0898110e915d46a
/* $Id$ */
/** @file
* DevPcBios - PC BIOS Device.
*/
/*
* Copyright (C) 2006-2013 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*/
/*******************************************************************************
* Header Files *
*******************************************************************************/
#define LOG_GROUP LOG_GROUP_DEV_PC_BIOS
#include <iprt/buildconfig.h>
#include "VBoxDD.h"
#include "VBoxDD2.h"
#include "DevPcBios.h"
#include "DevFwCommon.h"
#define NET_BOOT_DEVS 4
/** @page pg_devbios_cmos_assign CMOS Assignments (BIOS)
*
* The BIOS uses a CMOS to store configuration data.
* It is currently used as follows:
*
* @verbatim
First CMOS bank (offsets 0x00 to 0x7f):
Floppy drive type:
0x10
Hard disk type (old):
0x12
Equipment byte:
0x14
Base memory:
0x15
0x16
Extended memory:
0x17
0x18
0x30
0x31
First IDE HDD:
0x19
0x1e - 0x25
Second IDE HDD:
0x1a
0x26 - 0x2d
Checksum of 0x10-0x2d:
0x2e
0x2f
Amount of memory above 16M and below 4GB in 64KB units:
0x34
0x35
Boot device (BOCHS BIOS specific):
0x38
0x3c
0x3d
PXE debug:
0x3f
First SATA HDD:
0x40 - 0x47
Second SATA HDD:
0x48 - 0x4f
Third SATA HDD:
0x50 - 0x57
Fourth SATA HDD:
0x58 - 0x5f
Number of CPUs:
0x60
RAM above 4G in 64KB units:
0x61 - 0x65
Third IDE HDD:
0x67 - 0x6e
Fourth IDE HDD:
0x70 - 0x77
Second CMOS bank (offsets 0x80 to 0xff):
Reserved for internal use by PXE ROM:
0x80 - 0x81
0x82 - 0x83
Second to third net boot devices:
0x84 - 0x89
@endverbatim
*
* @todo Mark which bits are compatible with which BIOSes and
* which are our own definitions.
*/
/*******************************************************************************
* Structures and Typedefs *
*******************************************************************************/
/**
* The boot device.
*/
typedef enum DEVPCBIOSBOOT
{
/**
* PC Bios instance data structure.
*/
typedef struct DEVPCBIOS
{
/** Pointer back to the device instance. */
/** Boot devices (ordered). */
/** RAM size (in bytes). */
/** RAM hole size (in bytes). */
/** Bochs shutdown index. */
/** Floppy device. */
char *pszFDDevice;
/** Harddisk device. */
char *pszHDDevice;
/** Sata harddisk device. */
char *pszSataDevice;
/** LUN of the four harddisks which are emulated as IDE. */
/** Bios message buffer. */
char szMsg[256];
/** Bios message buffer index. */
/** The system BIOS ROM data. */
/** The size of the system BIOS ROM. */
/** The name of the BIOS ROM file. */
char *pszPcBiosFile;
/** The LAN boot ROM data. */
/** The name of the LAN boot ROM file. */
char *pszLanBootFile;
/** The size of the LAN boot ROM. */
/** The DMI tables. */
/** The boot countdown (in seconds). */
/** PXE debug logging enabled? */
/** Number of logical CPUs in guest */
} DEVPCBIOS;
/** Pointer to the BIOS device state. */
typedef DEVPCBIOS *PDEVPCBIOS;
/**
* @callback_method_impl{FNIOMIOPORTIN, Boch Debug and Shutdown ports.}
*/
static DECLCALLBACK(int) pcbiosIOPortRead(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t *pu32, unsigned cb)
{
return VERR_IOM_IOPORT_UNUSED;
}
/**
* @callback_method_impl{FNIOMIOPORTOUT, Boch Debug and Shutdown ports.}
*/
static DECLCALLBACK(int) pcbiosIOPortWrite(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t u32, unsigned cb)
{
/*
* Bochs BIOS Panic
*/
if ( cb == 2
&& ( Port == 0x400
|| Port == 0x401))
{
return VERR_INTERNAL_ERROR;
}
/*
* Bochs BIOS char printing.
*/
if ( cb == 1
&& ( Port == 0x402
|| Port == 0x403))
{
/* The raw version. */
switch (u32)
{
}
/* The readable, buffered version. */
{
}
else
{
{
}
}
return VINF_SUCCESS;
}
/*
* Bochs BIOS shutdown request.
*/
{
static const unsigned char szShutdown[] = "Shutdown";
{
{
LogRel(("DevPcBios: 8900h shutdown request.\n"));
return PDMDevHlpVMPowerOff(pDevIns);
}
}
else
return VINF_SUCCESS;
}
/* not in use. */
return VINF_SUCCESS;
}
/**
* Attempt to guess the LCHS disk geometry from the MS-DOS master boot record
* (partition table).
*
* @returns VBox status code.
* @param pBlock The block device interface of the disk.
* @param pLCHSGeometry Where to return the disk geometry on success
*/
{
int rc;
if (!pBlock)
return VERR_INVALID_PARAMETER;
if (RT_FAILURE(rc))
return rc;
/* Test MBR magic number. */
return VERR_INVALID_PARAMETER;
for (uint32_t i = 0; i < 4; i++)
{
/* Figure out the start of a partition table entry. */
iEndHead = p[5];
{
/* Assumption: partition terminates on a cylinder boundary. */
if (cLCHSCylinders >= 1)
{
return VINF_SUCCESS;
}
}
}
return VERR_INVALID_PARAMETER;
}
/**
* Write to CMOS memory.
* This is used by the init complete code.
*/
{
}
/**
* Read from CMOS memory.
* This is used by the init complete code.
*/
{
return u8val;
}
/**
* Initializes the CMOS data for one harddisk.
*/
static void pcbiosCmosInitHardDisk(PPDMDEVINS pDevIns, int offType, int offInfo, PCPDMMEDIAGEOMETRY pLCHSGeometry)
{
Log2(("%s: offInfo=%#x: LCHS=%d/%d/%d\n", __FUNCTION__, offInfo, pLCHSGeometry->cCylinders, pLCHSGeometry->cHeads, pLCHSGeometry->cSectors));
if (offType)
/* Cylinders low */
/* Cylinders high */
/* Heads */
/* Landing zone low */
/* Landing zone high */
/* Write precomp low */
/* Write precomp high */
/* Sectors */
}
/**
* Set logical CHS geometry for a hard disk
*
* @returns VBox status code.
* @param pBase Base interface for the device.
* @param pHardDisk The hard disk.
* @param pLCHSGeometry Where to store the geometry settings.
*/
static int setLogicalDiskGeometry(PPDMIBASE pBase, PPDMIBLOCKBIOS pHardDisk, PPDMMEDIAGEOMETRY pLCHSGeometry)
{
int rc = VINF_SUCCESS;
if ( rc == VERR_PDM_GEOMETRY_NOT_SET
|| LCHSGeometry.cCylinders == 0
|| LCHSGeometry.cHeads == 0
|| LCHSGeometry.cSectors == 0
{
/* No LCHS geometry, autodetect and set. */
if (RT_FAILURE(rc))
{
/* Try if PCHS geometry works, otherwise fall back. */
}
if ( RT_FAILURE(rc)
|| LCHSGeometry.cCylinders == 0
|| LCHSGeometry.cHeads == 0
|| LCHSGeometry.cSectors == 0
{
{
}
{
}
{
}
{
}
else
{
}
}
if (rc == VERR_VD_IMAGE_READ_ONLY)
{
LogRel(("DevPcBios: ATA failed to update LCHS geometry, read only\n"));
rc = VINF_SUCCESS;
}
else if (rc == VERR_PDM_GEOMETRY_NOT_SET)
{
LogRel(("DevPcBios: ATA failed to update LCHS geometry, backend refused\n"));
rc = VINF_SUCCESS;
}
}
return rc;
}
/**
* Get BIOS boot code from enmBootDevice in order
*
* @todo r=bird: This is a rather silly function since the conversion is 1:1.
*/
{
{
case DEVPCBIOSBOOT_NONE:
return 0;
case DEVPCBIOSBOOT_FLOPPY:
return 1;
case DEVPCBIOSBOOT_HD:
return 2;
case DEVPCBIOSBOOT_DVD:
return 3;
case DEVPCBIOSBOOT_LAN:
return 4;
default:
return 0;
}
}
/**
* @interface_method_impl{PDMDEVREG,pfnInitComplete}
*
* This routine will write information needed by the bios to the CMOS.
*
* a description of standard and non-standard CMOS registers.
*/
{
unsigned i;
LogFlow(("pcbiosInitComplete:\n"));
/*
* Memory sizes.
*/
/* base memory. */
u32 = pThis->cbRam > 640 ? 640 : (uint32_t)pThis->cbRam / _1K; /* <-- this test is wrong, but it doesn't matter since we never assign less than 1MB */
/* Extended memory, up to 65MB */
/* Bochs BIOS specific? Anyway, it's the amount of memory above 16MB
and below 4GB (as it can only hold 4GB+16M). We have to chop off the
top 2MB or it conflict with what the ACPI tables return. (Should these
be adjusted, we still have to chop it at 0xfffc0000 or it'll conflict
with the high BIOS mapping.) */
u32 = (uint32_t)( (RT_MIN(RT_MIN(pThis->cbRam, offRamHole), UINT32_C(0xffe00000)) - 16U * _1M) / _64K );
else
u32 = 0;
Bochs got these in a different location which we've already used for SATA,
it also lacks the last two. */
c64KBAbove4GB = 0;
else
{
/* Make sure it doesn't hit the limits of the current BIOS code. */
AssertLogRelMsgReturn((c64KBAbove4GB >> (3 * 8)) < 255, ("%#RX64\n", c64KBAbove4GB), VERR_OUT_OF_RANGE);
}
/*
* Number of CPUs.
*/
/*
* Bochs BIOS specifics - boot device.
* We do both new and old (ami-style) settings.
* See rombios.c line ~7215 (int19_function).
*/
/* This is an extension. Bochs BIOS normally supports only 3 boot devices. */
/*
* PXE debug option.
*/
/*
* Network boot device list.
*/
for (i = 0; i < NET_BOOT_DEVS; ++i)
{
}
/*
* Floppy drive type.
*/
for (i = 0; i < RT_ELEMENTS(apFDs); i++)
{
if (RT_SUCCESS(rc))
}
u32 = 0;
if (apFDs[0])
{
default: AssertFailed(); break;
}
if (apFDs[1])
{
default: AssertFailed(); break;
}
/*
* Equipment byte.
*/
switch (u32)
{
default:u32 = 0; break; /* floppy not installed. */
}
/*
* Harddisks.
*/
for (i = 0; i < RT_ELEMENTS(apHDs); i++)
{
if (RT_SUCCESS(rc))
if ( apHDs[i]
if (apHDs[i])
{
if (i < 4)
{
/* Award BIOS extended drive types for first to fourth disk.
* Used by the BIOS for setting the logical geometry. */
switch (i)
{
case 0:
offType = 0x19;
offInfo = 0x1e;
break;
case 1:
offType = 0x1a;
offInfo = 0x26;
break;
case 2:
offType = 0x00;
offInfo = 0x67;
break;
case 3:
default:
offType = 0x00;
offInfo = 0x70;
break;
}
&LCHSGeometry);
}
LogRel(("DevPcBios: ATA LUN#%d LCHS=%u/%u/%u\n", i, LCHSGeometry.cCylinders, LCHSGeometry.cHeads, LCHSGeometry.cSectors));
}
}
/* 0Fh means extended and points to 19h, 1Ah */
/*
* Sata Harddisks.
*/
if (pThis->pszSataDevice)
{
/* Clear pointers to IDE controller. */
for (i = 0; i < RT_ELEMENTS(apHDs); i++)
for (i = 0; i < RT_ELEMENTS(apHDs); i++)
{
if (RT_SUCCESS(rc))
if ( apHDs[i]
if (apHDs[i])
{
if (i < 4)
{
/* Award BIOS extended drive types for first to fourth disk.
* Used by the BIOS for setting the logical geometry. */
int offInfo;
switch (i)
{
case 0:
offInfo = 0x40;
break;
case 1:
offInfo = 0x48;
break;
case 2:
offInfo = 0x50;
break;
case 3:
default:
offInfo = 0x58;
break;
}
&LCHSGeometry);
}
LogRel(("DevPcBios: SATA LUN#%d LCHS=%u/%u/%u\n", i, LCHSGeometry.cCylinders, LCHSGeometry.cHeads, LCHSGeometry.cSectors));
}
}
}
/* Calculate and store AT-style CMOS checksum. */
for (i = 0x10; i < 0x2e; ++i)
return VINF_SUCCESS;
}
/**
* @interface_method_impl{PDMDEVREG,pfnMemSetup}
*/
{
LogFlow(("pcbiosMemSetup:\n"));
/*
*
* This is normally done by the BIOS code, but since we're currently lacking
* the chipset support for this we do it here (and in the constructor).
*/
while (cPages > 0)
{
int rc;
/* Read the (original) ROM page and write it back to the RAM page. */
if (RT_FAILURE(rc))
/* Advance */
cPages--;
}
}
/**
* @interface_method_impl{PDMDEVREG,pfnDestruct}
*/
{
LogFlow(("pcbiosDestruct:\n"));
/*
* Free MM heap pointers.
*/
{
}
if (pThis->pszPcBiosFile)
{
}
if (pThis->pu8LanBoot)
{
}
if (pThis->pszLanBootFile)
{
}
if (pThis->pszHDDevice)
{
}
if (pThis->pszFDDevice)
{
}
if (pThis->pszSataDevice)
{
}
return VINF_SUCCESS;
}
/**
* Convert config value to DEVPCBIOSBOOT.
*
* @returns VBox status code.
* @param pCfg Configuration handle.
* @param pszParam The name of the value to read.
* @param penmBoot Where to store the boot method.
*/
static int pcbiosBootFromCfg(PPDMDEVINS pDevIns, PCFGMNODE pCfg, const char *pszParam, DEVPCBIOSBOOT *penmBoot)
{
char *psz;
if (RT_FAILURE(rc))
N_("Configuration error: Querying \"%s\" as a string failed"),
pszParam);
else
{
N_("Configuration error: The \"%s\" value \"%s\" is unknown"),
}
return rc;
}
/**
* @interface_method_impl{PDMDEVREG,pfnConstruct}
*/
{
int rc;
int cb;
/*
* Validate configuration.
*/
if (!CFGMR3AreValuesValid(pCfg,
"BootDevice0\0"
"BootDevice1\0"
"BootDevice2\0"
"BootDevice3\0"
"RamSize\0"
"RamHoleSize\0"
"HardDiskDevice\0"
"SataHardDiskDevice\0"
"SataLUN1\0"
"SataLUN2\0"
"SataLUN3\0"
"SataLUN4\0"
"FloppyDevice\0"
"DelayBoot\0"
"BiosRom\0"
"LanBootRom\0"
"PXEDebug\0"
"UUID\0"
"IOAPIC\0"
"NumCPUs\0"
"McfgBase\0"
"McfgLength\0"
"DmiBIOSFirmwareMajor\0"
"DmiBIOSFirmwareMinor\0"
"DmiBIOSReleaseDate\0"
"DmiBIOSReleaseMajor\0"
"DmiBIOSReleaseMinor\0"
"DmiBIOSVendor\0"
"DmiBIOSVersion\0"
"DmiSystemFamily\0"
"DmiSystemProduct\0"
"DmiSystemSerial\0"
"DmiSystemSKU\0"
"DmiSystemUuid\0"
"DmiSystemVendor\0"
"DmiSystemVersion\0"
"DmiBoardAssetTag\0"
"DmiBoardBoardType\0"
"DmiBoardLocInChass\0"
"DmiBoardProduct\0"
"DmiBoardSerial\0"
"DmiBoardVendor\0"
"DmiBoardVersion\0"
"DmiChassisAssetTag\0"
"DmiChassisSerial\0"
"DmiChassisVendor\0"
"DmiChassisVersion\0"
"DmiProcManufacturer\0"
"DmiProcVersion\0"
"DmiOEMVBoxVer\0"
"DmiOEMVBoxRev\0"
"DmiUseHostInfo\0"
"DmiExposeMemoryTable\0"
"DmiExposeProcInf\0"
))
N_("Invalid configuration for device pcbios device"));
/*
* Init the data.
*/
if (RT_FAILURE(rc))
N_("Configuration error: Querying \"RamSize\" as integer failed"));
if (RT_FAILURE(rc))
N_("Configuration error: Querying \"RamHoleSize\" as integer failed"));
if (RT_FAILURE(rc))
N_("Configuration error: Querying \"NumCPUs\" as integer failed"));
if (RT_FAILURE(rc))
N_("Configuration error: Querying \"\" as integer failed"));
if (RT_FAILURE(rc))
N_("Configuration error: Querying \"McfgLength\" as integer failed"));
if (RT_FAILURE (rc))
N_("Configuration error: Failed to read \"IOAPIC\""));
static const char * const s_apszBootDevices[] = { "BootDevice0", "BootDevice1", "BootDevice2", "BootDevice3" };
{
if (RT_FAILURE(rc))
return rc;
}
if (RT_FAILURE(rc))
N_("Configuration error: Querying \"HardDiskDevice\" as a string failed"));
if (RT_FAILURE(rc))
N_("Configuration error: Querying \"FloppyDevice\" as a string failed"));
if (rc == VERR_CFGM_VALUE_NOT_FOUND)
else if (RT_FAILURE(rc))
N_("Configuration error: Querying \"SataHardDiskDevice\" as a string failed"));
if (pThis->pszSataDevice)
{
static const char * const s_apszSataDisks[] =
{ "SataLUN1", "SataLUN2", "SataLUN3", "SataLUN4" };
{
if (rc == VERR_CFGM_VALUE_NOT_FOUND)
pThis->iSataHDLUN[i] = i;
else if (RT_FAILURE(rc))
}
}
/*
* Register I/O Ports and PC BIOS.
*/
if (RT_FAILURE(rc))
return rc;
if (RT_FAILURE(rc))
return rc;
/*
* Read the PXE debug logging option.
*/
if (RT_FAILURE(rc))
N_("Configuration error: Querying \"PXEDebug\" as integer failed"));
/* Clear the net boot device list. All bits set invokes old behavior,
* as if no second CMOS bank was present.
*/
/*
* Determine the network boot order.
*/
if (pCfgNetBoot == NULL)
{
/* Do nothing. */
rc = VINF_SUCCESS;
}
else
{
char szIndex[] = "?";
for (unsigned i = 0; i < NET_BOOT_DEVS; ++i)
{
szIndex[0] = '0' + i;
{
/* Do nothing and stop iterating. */
rc = VINF_SUCCESS;
break;
}
else if (RT_FAILURE(rc))
{
/* Do nothing and stop iterating. */
rc = VINF_SUCCESS;
break;
}
else if (RT_FAILURE(rc))
N_("Configuration error: Querying \"Netboot/x/PCIDeviceNo\" as integer failed"));
{
/* Do nothing and stop iterating. */
rc = VINF_SUCCESS;
break;
}
else if (RT_FAILURE(rc))
N_("Configuration error: Querying \"Netboot/x/PCIFunctionNo\" as integer failed"));
}
}
/*
* Get the system BIOS ROM file name.
*/
if (rc == VERR_CFGM_VALUE_NOT_FOUND)
{
rc = VINF_SUCCESS;
}
else if (RT_FAILURE(rc))
N_("Configuration error: Querying \"BiosRom\" as a string failed"));
else if (!*pThis->pszPcBiosFile)
{
}
if (pThis->pszPcBiosFile)
{
/*
* Load the BIOS ROM.
*/
if (RT_SUCCESS(rc))
{
/* Figure the size and check restrictions. */
if (RT_SUCCESS(rc))
{
{
{
if (RT_FAILURE(rc))
}
else
N_("Failed to allocate %#x bytes for loading the BIOS image"),
}
else
N_("Invalid system BIOS file size ('%s'): %#llx (%llu)"),
}
else
N_("Failed to query the system BIOS file size ('%s')"),
}
else
if (RT_FAILURE(rc))
return rc;
LogRel(("DevPcBios: Using BIOS ROM '%s' with a size of %#x bytes\n", pThis->pszPcBiosFile, pThis->cbPcBios));
}
else
{
/*
* Use the embedded BIOS ROM image.
*/
{
}
else
N_("Failed to allocate %#x bytes for loading the embedded BIOS image"),
}
/*
*/
if (RT_FAILURE(rc))
N_("Configuration error: Querying \"UUID\" failed"));
/* Convert the UUID to network byte order. Not entirely straightforward as parts are MSB already... */
uint16_t cbDmiTables = 0;
uint16_t cNumDmiTables = 0;
if (RT_FAILURE(rc))
return rc;
{
/* If the DMI table is located at the expected place, patch the DMI table length and the checksum. */
{
if (j != i + 0x05)
break;
}
}
PGMPHYS_ROM_FLAGS_PERMANENT_BINARY, "DMI tables");
if (RT_FAILURE(rc))
return rc;
/*
* Map the BIOS into memory.
* There are two mappings:
* 1. 0x000e0000 to 0x000fffff contains the last 128 kb of the bios.
* The bios code might be 64 kb in size, and will then start at 0xf0000.
* 2. 0xfffxxxxx to 0xffffffff contains the entire bios.
*/
("cbPcBiosBinary=%#x\n", cbPcBiosBinary));
PGMPHYS_ROM_FLAGS_PERMANENT_BINARY, "PC BIOS - 0xfffff");
if (RT_FAILURE(rc))
return rc;
rc = PDMDevHlpROMRegister(pDevIns, (uint32_t)-(int32_t)cbPcBiosBinary, cbPcBiosBinary, pu8PcBiosBinary, cbPcBiosBinary,
PGMPHYS_ROM_FLAGS_PERMANENT_BINARY, "PC BIOS - 0xffffffff");
if (RT_FAILURE(rc))
return rc;
/*
* Get the LAN boot ROM file name.
*/
if (rc == VERR_CFGM_VALUE_NOT_FOUND)
{
rc = VINF_SUCCESS;
}
else if (RT_FAILURE(rc))
N_("Configuration error: Querying \"LanBootRom\" as a string failed"));
else if (!*pThis->pszLanBootFile)
{
}
/*
* Determine the LAN boot ROM size, open specified ROM file in the process.
*/
if (pThis->pszLanBootFile)
{
if (RT_SUCCESS(rc))
{
if (RT_SUCCESS(rc))
{
}
}
if (RT_FAILURE(rc))
{
/*
* Ignore failure and fall back to the built-in LAN boot ROM.
*/
LogRel(("DevPcBios: Failed to open LAN boot ROM file '%s', rc=%Rrc!\n", pThis->pszLanBootFile, rc));
}
}
/*
* Get the LAN boot ROM data.
*/
if (pThis->pszLanBootFile)
{
LogRel(("DevPcBios: Using LAN ROM '%s' with a size of %#x bytes\n", pThis->pszLanBootFile, cbFileLanBoot));
/*
* Allocate buffer for the LAN boot ROM data.
*/
if (pThis->pu8LanBoot)
{
if (RT_FAILURE(rc))
{
}
rc = VINF_SUCCESS;
}
else
rc = VERR_NO_MEMORY;
}
else
/* cleanup */
if (FileLanBoot != NIL_RTFILE)
/* If we were unable to get the data from file for whatever reason, fall
* back to the built-in LAN boot ROM image.
*/
{
#ifdef VBOX_WITH_PXE_ROM
#endif
}
else
{
}
/*
* Map the Network Boot ROM into memory.
* Currently there is a fixed mapping: 0x000e2000 to 0x000effff contains
* the (up to) 56 kb ROM image. The mapping size is fixed to trouble with
* the saved state (in PGM).
*/
if (pu8LanBootBinary)
{
PGMPHYS_ROM_FLAGS_SHADOWED, "Net Boot ROM");
}
if (RT_FAILURE(rc))
N_("Configuration error: Querying \"DelayBoot\" as integer failed"));
return VINF_SUCCESS;
}
/**
* The device registration structure.
*/
const PDMDEVREG g_DevicePcBios =
{
/* u32Version */
/* szName */
"pcbios",
/* szRCMod */
"",
/* szR0Mod */
"",
/* pszDescription */
"PC BIOS Device",
/* fFlags */
/* fClass */
/* cMaxInstances */
1,
/* cbInstance */
sizeof(DEVPCBIOS),
/* pfnConstruct */
/* pfnDestruct */
/* pfnRelocate */
NULL,
/* pfnMemSetup */
/* pfnPowerOn */
NULL,
/* pfnReset */
NULL,
/* pfnSuspend */
NULL,
/* pfnResume */
NULL,
/* pfnAttach */
NULL,
/* pfnDetach */
NULL,
/* pfnQueryInterface. */
NULL,
/* pfnInitComplete. */
/* pfnPowerOff */
NULL,
/* pfnSoftReset */
NULL,
/* u32VersionEnd */
};