blob: e6b81bd0b3ac44a91c9ccfdcd13c9e69c9ce86ba [file] [log] [blame]
Kevin O'Connorc659fde2008-12-28 23:43:20 -05001// Storage for boot definitions.
2#ifndef __BOOT_H
3#define __BOOT_H
4
Kevin O'Connor2d2fa312013-09-14 21:55:26 -04005#include "types.h" // u16
6
Kevin O'Connorc659fde2008-12-28 23:43:20 -05007// boot.c
Kevin O'Connord83c87b2013-01-21 01:14:12 -05008void boot_init(void);
Kevin O'Connor031ef552010-12-27 19:26:57 -05009void boot_add_bev(u16 seg, u16 bev, u16 desc, int prio);
10void boot_add_bcv(u16 seg, u16 ip, u16 desc, int prio);
Kevin O'Connor77d227b2009-10-22 21:48:39 -040011struct drive_s;
Kevin O'Connorca2bc1c2010-12-29 21:41:19 -050012void boot_add_floppy(struct drive_s *drive_g, const char *desc, int prio);
13void boot_add_hd(struct drive_s *drive_g, const char *desc, int prio);
14void boot_add_cd(struct drive_s *drive_g, const char *desc, int prio);
Kevin O'Connor031ef552010-12-27 19:26:57 -050015void boot_add_cbfs(void *data, const char *desc, int prio);
Kevin O'Connor8a0a9722013-01-21 01:53:31 -050016void interactive_bootmenu(void);
17void bcv_prepboot(void);
Kevin O'Connor1355a882011-07-09 14:31:50 -040018struct pci_device;
Kevin O'Connordc3a7d62011-07-09 14:33:56 -040019int bootprio_find_pci_device(struct pci_device *pci);
Paolo Bonzinic5c488f2012-02-27 17:22:23 +010020int bootprio_find_scsi_device(struct pci_device *pci, int target, int lun);
Kevin O'Connor95b2e0c2011-07-09 14:42:11 -040021int bootprio_find_ata_device(struct pci_device *pci, int chanid, int slave);
Kevin O'Connor03e589c2011-07-09 14:35:37 -040022int bootprio_find_fdc_device(struct pci_device *pci, int port, int fdid);
Kevin O'Connorfce91892011-07-09 14:47:47 -040023int bootprio_find_pci_rom(struct pci_device *pci, int instance);
Kevin O'Connor031ef552010-12-27 19:26:57 -050024int bootprio_find_named_rom(const char *name, int instance);
Kevin O'Connorea274782012-03-08 07:49:09 -050025struct usbdevice_s;
Kevin O'Connor7fa31b52012-06-13 08:47:03 -040026int bootprio_find_usb(struct usbdevice_s *usbdev, int lun);
Kevin O'Connorc659fde2008-12-28 23:43:20 -050027
28#endif // __BOOT_H