2007-01-10 03:03:20 +01:00
|
|
|
#ifndef _USR_AUTOBOOT_H
|
|
|
|
#define _USR_AUTOBOOT_H
|
|
|
|
|
|
|
|
/** @file
|
|
|
|
*
|
|
|
|
* Automatic booting
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2015-03-02 14:29:46 +01:00
|
|
|
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
|
2009-05-01 16:41:06 +02:00
|
|
|
|
2014-02-26 00:00:23 +01:00
|
|
|
#include <ipxe/device.h>
|
2014-07-08 00:55:55 +02:00
|
|
|
|
2009-01-31 08:36:05 +01:00
|
|
|
struct net_device;
|
2011-01-27 19:48:47 +01:00
|
|
|
struct uri;
|
|
|
|
struct settings;
|
2009-01-31 08:36:05 +01:00
|
|
|
|
2011-04-23 10:50:38 +02:00
|
|
|
/** uriboot() flags */
|
|
|
|
enum uriboot_flags {
|
|
|
|
URIBOOT_NO_SAN_DESCRIBE = 0x0001,
|
|
|
|
URIBOOT_NO_SAN_BOOT = 0x0002,
|
|
|
|
URIBOOT_NO_SAN_UNHOOK = 0x0004,
|
|
|
|
};
|
|
|
|
|
|
|
|
#define URIBOOT_NO_SAN ( URIBOOT_NO_SAN_DESCRIBE | \
|
|
|
|
URIBOOT_NO_SAN_BOOT | \
|
|
|
|
URIBOOT_NO_SAN_UNHOOK )
|
|
|
|
|
2014-07-08 00:55:55 +02:00
|
|
|
extern void set_autoboot_busloc ( unsigned int bus_type,
|
|
|
|
unsigned int location );
|
|
|
|
extern void set_autoboot_ll_addr ( const void *ll_addr, size_t len );
|
2014-02-26 00:00:23 +01:00
|
|
|
|
2017-03-26 14:12:11 +02:00
|
|
|
extern int uriboot ( struct uri *filename, struct uri **root_paths,
|
|
|
|
unsigned int root_path_count, int drive,
|
2017-04-12 16:03:25 +02:00
|
|
|
const char *san_filename, unsigned int flags );
|
2011-01-27 19:48:47 +01:00
|
|
|
extern struct uri *
|
|
|
|
fetch_next_server_and_filename ( struct settings *settings );
|
2010-11-20 18:20:03 +01:00
|
|
|
extern int netboot ( struct net_device *netdev );
|
2015-08-21 16:41:35 +02:00
|
|
|
extern int ipxe ( struct net_device *netdev );
|
2009-10-07 01:15:06 +02:00
|
|
|
|
2010-05-27 02:52:44 +02:00
|
|
|
extern int pxe_menu_boot ( struct net_device *netdev );
|
2007-01-10 03:03:20 +01:00
|
|
|
|
|
|
|
#endif /* _USR_AUTOBOOT_H */
|