help
Support controlling of the boot order via the fw_cfg/CBFS
"bootorder" file.
- config BOOTDEVICES
- depends on BOOT
- bool "Boot device information"
- default y
- help
- Support boot device information via the fw_cfg/CBFS
- "bootdevices" file.
config COREBOOT_FLASH
depends on COREBOOT
static void
loadBootDevices(void)
{
- if (!CONFIG_BOOTDEVICES)
- return;
-
BootDeviceCount = 0;
int fsize;
char *f = romfile_loadfile("bootdevices", &fsize);
static BootDevice *
bootdevice_find_pci_device(struct pci_device *pci)
{
- if (!CONFIG_BOOTDEVICES)
- return NULL;
// Find pci device - for example: /pci@i0cf8/ethernet@5
char desc[256];
build_pci_path(desc, sizeof(desc), "*", pci);
static BootDevice *
bootdevice_find_scsi_device(struct pci_device *pci, int target, int lun)
{
- if (!CONFIG_BOOTDEVICES)
- return NULL;
if (!pci)
// support only pci machine for now
return NULL;
static BootDevice *
bootdevice_find_ata_device(struct pci_device *pci, int chanid, int slave)
{
- if (!CONFIG_BOOTDEVICES)
- return NULL;
if (!pci)
// support only pci machine for now
return NULL;