iPXE
autoboot.h
Go to the documentation of this file.
1 #ifndef _USR_AUTOBOOT_H
2 #define _USR_AUTOBOOT_H
3 
4 /** @file
5  *
6  * Automatic booting
7  *
8  */
9 
10 FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
11 
12 #include <ipxe/device.h>
13 
14 struct net_device;
15 struct uri;
16 struct settings;
17 
18 /** uriboot() flags */
23 };
24 
25 #define URIBOOT_NO_SAN ( URIBOOT_NO_SAN_DESCRIBE | \
26  URIBOOT_NO_SAN_BOOT | \
27  URIBOOT_NO_SAN_UNHOOK )
28 
29 extern void set_autoboot_busloc ( unsigned int bus_type,
30  unsigned int location );
31 extern void set_autoboot_ll_addr ( const void *ll_addr, size_t len );
32 
33 extern int uriboot ( struct uri *filename, struct uri **root_paths,
34  unsigned int root_path_count, int drive,
35  const char *san_filename, unsigned int flags );
36 extern struct uri *
38 extern int netboot ( struct net_device *netdev );
39 extern int ipxe ( struct net_device *netdev );
40 
41 extern int pxe_menu_boot ( struct net_device *netdev );
42 
43 #endif /* _USR_AUTOBOOT_H */
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
int ipxe(struct net_device *netdev)
Main iPXE flow of execution.
Definition: autoboot.c:567
int uriboot(struct uri *filename, struct uri **root_paths, unsigned int root_path_count, int drive, const char *san_filename, unsigned int flags)
Boot from filename and root-path URIs.
Definition: autoboot.c:125
void set_autoboot_busloc(unsigned int bus_type, unsigned int location)
Identify autoboot device by bus type and location.
Definition: autoboot.c:478
uint8_t drive
Drive number.
Definition: int13.h:16
uriboot_flags
uriboot() flags
Definition: autoboot.h:19
int netboot(struct net_device *netdev)
Boot from a network device.
Definition: autoboot.c:384
static struct net_device * netdev
Definition: gdbudp.c:52
A network device.
Definition: netdevice.h:348
A settings block.
Definition: settings.h:132
uint32_t len
Length.
Definition: ena.h:14
void set_autoboot_ll_addr(const void *ll_addr, size_t len)
Identify autoboot device by link-layer address.
Definition: autoboot.c:506
struct uri * fetch_next_server_and_filename(struct settings *settings)
Fetch next-server and filename settings into a URI.
Definition: autoboot.c:234
Device model.
A Uniform Resource Identifier.
Definition: uri.h:50
uint8_t flags
Flags.
Definition: ena.h:18
int pxe_menu_boot(struct net_device *netdev)
Boot using PXE boot menu.
Definition: pxemenu.c:344