Move IPL.bev to static variables in boot.c
[seabios.git] / src / boot.h
1 // Storage for boot definitions.
2 #ifndef __BOOT_H
3 #define __BOOT_H
4
5 struct ipl_s {
6     char **fw_bootorder;
7     int fw_bootorder_count;
8 };
9
10
11 /****************************************************************
12  * Function defs
13  ****************************************************************/
14
15 // boot.c
16 extern struct ipl_s IPL;
17 void boot_setup(void);
18 void boot_add_bev(u16 seg, u16 bev, u16 desc, int prio);
19 void boot_add_bcv(u16 seg, u16 ip, u16 desc, int prio);
20 struct drive_s;
21 void boot_add_floppy(struct drive_s *drive_g, int prio);
22 void boot_add_hd(struct drive_s *drive_g, int prio);
23 void boot_add_cd(struct drive_s *drive_g, int prio);
24 void boot_add_cbfs(void *data, const char *desc, int prio);
25 void boot_prep(void);
26 int bootprio_find_pci_device(int bdf);
27 int bootprio_find_ata_device(int bdf, int chanid, int slave);
28 int bootprio_find_fdc_device(int bfd, int port, int fdid);
29 int bootprio_find_pci_rom(int bdf, int instance);
30 int bootprio_find_named_rom(const char *name, int instance);
31
32 #endif // __BOOT_H