X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=src%2Fboot.h;h=d776aa10515c080d011c620099f0c841a0c6c9e1;hb=refs%2Fheads%2Fcoreboot;hp=f251096b70ac4f68cb2a1796d2690a6857428163;hpb=7da1dcd03e3fc3a187c7222178a220fcb074b055;p=seabios.git diff --git a/src/boot.h b/src/boot.h index f251096..d776aa1 100644 --- a/src/boot.h +++ b/src/boot.h @@ -2,43 +2,22 @@ #ifndef __BOOT_H #define __BOOT_H - -/**************************************************************** - * Initial Program Load (IPL) - ****************************************************************/ - -struct ipl_entry_s { - u16 type; - u16 flags; - u32 vector; - const char *description; -}; - -struct ipl_s { - struct ipl_entry_s bev[8]; - struct ipl_entry_s bcv[8]; - int bevcount, bcvcount; - int bcv_override, cdrom_override; - u32 bootorder; - int checkfloppysig; -}; - -#define IPL_TYPE_FLOPPY 0x01 -#define IPL_TYPE_HARDDISK 0x02 -#define IPL_TYPE_CDROM 0x03 -#define IPL_TYPE_BEV 0x80 - - -/**************************************************************** - * Function defs - ****************************************************************/ - // boot.c -extern struct ipl_s IPL; -void boot_setup(); -void add_bev(u16 seg, u16 bev, u16 desc); -void add_bcv(u16 seg, u16 ip, u16 desc); -void add_bcv_hd(int driveid, const char *desc); -void boot_prep(); +void boot_setup(void); +void boot_add_bev(u16 seg, u16 bev, u16 desc, int prio); +void boot_add_bcv(u16 seg, u16 ip, u16 desc, int prio); +struct drive_s; +void boot_add_floppy(struct drive_s *drive_g, const char *desc, int prio); +void boot_add_hd(struct drive_s *drive_g, const char *desc, int prio); +void boot_add_cd(struct drive_s *drive_g, const char *desc, int prio); +void boot_add_cbfs(void *data, const char *desc, int prio); +void boot_prep(void); +struct pci_device; +int bootprio_find_pci_device(struct pci_device *pci); +int bootprio_find_ata_device(struct pci_device *pci, int chanid, int slave); +int bootprio_find_fdc_device(struct pci_device *pci, int port, int fdid); +int bootprio_find_pci_rom(struct pci_device *pci, int instance); +int bootprio_find_named_rom(const char *name, int instance); +int bootprio_find_usb(struct pci_device *pci, u64 path); #endif // __BOOT_H