summaryrefslogtreecommitdiffstats
path: root/qemu/roms/ipxe/src/include/usr
diff options
context:
space:
mode:
Diffstat (limited to 'qemu/roms/ipxe/src/include/usr')
-rw-r--r--qemu/roms/ipxe/src/include/usr/autoboot.h42
-rw-r--r--qemu/roms/ipxe/src/include/usr/dhcpmgmt.h16
-rw-r--r--qemu/roms/ipxe/src/include/usr/fcmgmt.h21
-rw-r--r--qemu/roms/ipxe/src/include/usr/ifmgmt.h22
-rw-r--r--qemu/roms/ipxe/src/include/usr/imgmgmt.h22
-rw-r--r--qemu/roms/ipxe/src/include/usr/imgtrust.h17
-rw-r--r--qemu/roms/ipxe/src/include/usr/ipstat.h14
-rw-r--r--qemu/roms/ipxe/src/include/usr/iwmgmt.h17
-rw-r--r--qemu/roms/ipxe/src/include/usr/lotest.h15
-rw-r--r--qemu/roms/ipxe/src/include/usr/neighmgmt.h14
-rw-r--r--qemu/roms/ipxe/src/include/usr/nslookup.h14
-rw-r--r--qemu/roms/ipxe/src/include/usr/pingmgmt.h17
-rw-r--r--qemu/roms/ipxe/src/include/usr/profstat.h14
-rw-r--r--qemu/roms/ipxe/src/include/usr/prompt.h14
-rw-r--r--qemu/roms/ipxe/src/include/usr/route.h35
-rw-r--r--qemu/roms/ipxe/src/include/usr/sync.h14
16 files changed, 308 insertions, 0 deletions
diff --git a/qemu/roms/ipxe/src/include/usr/autoboot.h b/qemu/roms/ipxe/src/include/usr/autoboot.h
new file mode 100644
index 000000000..bc51aae79
--- /dev/null
+++ b/qemu/roms/ipxe/src/include/usr/autoboot.h
@@ -0,0 +1,42 @@
+#ifndef _USR_AUTOBOOT_H
+#define _USR_AUTOBOOT_H
+
+/** @file
+ *
+ * Automatic booting
+ *
+ */
+
+FILE_LICENCE ( GPL2_OR_LATER );
+
+#include <ipxe/device.h>
+
+struct net_device;
+struct uri;
+struct settings;
+
+/** 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 )
+
+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 );
+
+extern int uriboot ( struct uri *filename, struct uri *root_path, int drive,
+ unsigned int flags );
+extern struct uri *
+fetch_next_server_and_filename ( struct settings *settings );
+extern int netboot ( struct net_device *netdev );
+extern void ipxe ( struct net_device *netdev );
+
+extern int pxe_menu_boot ( struct net_device *netdev );
+
+#endif /* _USR_AUTOBOOT_H */
diff --git a/qemu/roms/ipxe/src/include/usr/dhcpmgmt.h b/qemu/roms/ipxe/src/include/usr/dhcpmgmt.h
new file mode 100644
index 000000000..af1eceb17
--- /dev/null
+++ b/qemu/roms/ipxe/src/include/usr/dhcpmgmt.h
@@ -0,0 +1,16 @@
+#ifndef _USR_DHCPMGMT_H
+#define _USR_DHCPMGMT_H
+
+/** @file
+ *
+ * DHCP management
+ *
+ */
+
+FILE_LICENCE ( GPL2_OR_LATER );
+
+struct net_device;
+
+extern int pxebs ( struct net_device *netdev, unsigned int pxe_type );
+
+#endif /* _USR_DHCPMGMT_H */
diff --git a/qemu/roms/ipxe/src/include/usr/fcmgmt.h b/qemu/roms/ipxe/src/include/usr/fcmgmt.h
new file mode 100644
index 000000000..9441cefb4
--- /dev/null
+++ b/qemu/roms/ipxe/src/include/usr/fcmgmt.h
@@ -0,0 +1,21 @@
+#ifndef _USR_FCMGMT_H
+#define _USR_FCMGMT_H
+
+/** @file
+ *
+ * Fibre Channel management
+ *
+ */
+
+FILE_LICENCE ( GPL2_OR_LATER );
+
+struct fc_port;
+struct fc_peer;
+struct fc_els_handler;
+
+extern void fcportstat ( struct fc_port *port );
+extern void fcpeerstat ( struct fc_peer *peer );
+extern int fcels ( struct fc_port *port, struct fc_port_id *peer_port_id,
+ struct fc_els_handler *handler );
+
+#endif /* _USR_FCMGMT_H */
diff --git a/qemu/roms/ipxe/src/include/usr/ifmgmt.h b/qemu/roms/ipxe/src/include/usr/ifmgmt.h
new file mode 100644
index 000000000..db77f1f1b
--- /dev/null
+++ b/qemu/roms/ipxe/src/include/usr/ifmgmt.h
@@ -0,0 +1,22 @@
+#ifndef _USR_IFMGMT_H
+#define _USR_IFMGMT_H
+
+/** @file
+ *
+ * Network interface management
+ *
+ */
+
+FILE_LICENCE ( GPL2_OR_LATER );
+
+struct net_device;
+struct net_device_configurator;
+
+extern int ifopen ( struct net_device *netdev );
+extern int ifconf ( struct net_device *netdev,
+ struct net_device_configurator *configurator );
+extern void ifclose ( struct net_device *netdev );
+extern void ifstat ( struct net_device *netdev );
+extern int iflinkwait ( struct net_device *netdev, unsigned long timeout );
+
+#endif /* _USR_IFMGMT_H */
diff --git a/qemu/roms/ipxe/src/include/usr/imgmgmt.h b/qemu/roms/ipxe/src/include/usr/imgmgmt.h
new file mode 100644
index 000000000..5e25c562b
--- /dev/null
+++ b/qemu/roms/ipxe/src/include/usr/imgmgmt.h
@@ -0,0 +1,22 @@
+#ifndef _USR_IMGMGMT_H
+#define _USR_IMGMGMT_H
+
+/** @file
+ *
+ * Image management
+ *
+ */
+
+FILE_LICENCE ( GPL2_OR_LATER );
+
+#include <ipxe/image.h>
+
+extern int imgdownload ( struct uri *uri, unsigned long timeout,
+ struct image **image );
+extern int imgdownload_string ( const char *uri_string, unsigned long timeout,
+ struct image **image );
+extern int imgacquire ( const char *name, unsigned long timeout,
+ struct image **image );
+extern void imgstat ( struct image *image );
+
+#endif /* _USR_IMGMGMT_H */
diff --git a/qemu/roms/ipxe/src/include/usr/imgtrust.h b/qemu/roms/ipxe/src/include/usr/imgtrust.h
new file mode 100644
index 000000000..f47105af0
--- /dev/null
+++ b/qemu/roms/ipxe/src/include/usr/imgtrust.h
@@ -0,0 +1,17 @@
+#ifndef _USR_IMGTRUST_H
+#define _USR_IMGTRUST_H
+
+/** @file
+ *
+ * Image trust management
+ *
+ */
+
+FILE_LICENCE ( GPL2_OR_LATER );
+
+#include <ipxe/image.h>
+
+extern int imgverify ( struct image *image, struct image *signature,
+ const char *name );
+
+#endif /* _USR_IMGTRUST_H */
diff --git a/qemu/roms/ipxe/src/include/usr/ipstat.h b/qemu/roms/ipxe/src/include/usr/ipstat.h
new file mode 100644
index 000000000..5ff8b40c3
--- /dev/null
+++ b/qemu/roms/ipxe/src/include/usr/ipstat.h
@@ -0,0 +1,14 @@
+#ifndef _USR_IPSTAT_H
+#define _USR_IPSTAT_H
+
+/** @file
+ *
+ * IP statistics
+ *
+ */
+
+FILE_LICENCE ( GPL2_OR_LATER );
+
+extern void ipstat ( void );
+
+#endif /* _USR_IPSTAT_H */
diff --git a/qemu/roms/ipxe/src/include/usr/iwmgmt.h b/qemu/roms/ipxe/src/include/usr/iwmgmt.h
new file mode 100644
index 000000000..c1bdc37a8
--- /dev/null
+++ b/qemu/roms/ipxe/src/include/usr/iwmgmt.h
@@ -0,0 +1,17 @@
+#ifndef _USR_IWMGMT_H
+#define _USR_IWMGMT_H
+
+/** @file
+ *
+ * Wireless network interface management
+ *
+ */
+
+FILE_LICENCE ( GPL2_OR_LATER );
+
+struct net80211_device;
+
+extern void iwstat ( struct net80211_device *dev );
+extern int iwlist ( struct net80211_device *dev );
+
+#endif /* _USR_IWMGMT_H */
diff --git a/qemu/roms/ipxe/src/include/usr/lotest.h b/qemu/roms/ipxe/src/include/usr/lotest.h
new file mode 100644
index 000000000..aa4bbac4d
--- /dev/null
+++ b/qemu/roms/ipxe/src/include/usr/lotest.h
@@ -0,0 +1,15 @@
+#ifndef _USR_LOTEST_H
+#define _USR_LOTEST_H
+
+/** @file
+ *
+ * Loopback testing
+ *
+ */
+
+FILE_LICENCE ( GPL2_OR_LATER );
+
+extern int loopback_test ( struct net_device *sender,
+ struct net_device *receiver, size_t mtu );
+
+#endif /* _USR_LOTEST_H */
diff --git a/qemu/roms/ipxe/src/include/usr/neighmgmt.h b/qemu/roms/ipxe/src/include/usr/neighmgmt.h
new file mode 100644
index 000000000..3c2b704af
--- /dev/null
+++ b/qemu/roms/ipxe/src/include/usr/neighmgmt.h
@@ -0,0 +1,14 @@
+#ifndef _USR_NEIGHMGMT_H
+#define _USR_NEIGHMGMT_H
+
+/** @file
+ *
+ * Neighbour management
+ *
+ */
+
+FILE_LICENCE ( GPL2_OR_LATER );
+
+extern void nstat ( void );
+
+#endif /* _USR_NEIGHMGMT_H */
diff --git a/qemu/roms/ipxe/src/include/usr/nslookup.h b/qemu/roms/ipxe/src/include/usr/nslookup.h
new file mode 100644
index 000000000..d34649e9f
--- /dev/null
+++ b/qemu/roms/ipxe/src/include/usr/nslookup.h
@@ -0,0 +1,14 @@
+#ifndef _USR_NSLOOKUP_H
+#define _USR_NSLOOKUP_H
+
+/** @file
+ *
+ * Standalone name resolution
+ *
+ */
+
+FILE_LICENCE ( GPL2_OR_LATER );
+
+extern int nslookup ( const char *name, const char *setting_name );
+
+#endif /* _USR_NSLOOKUP_H */
diff --git a/qemu/roms/ipxe/src/include/usr/pingmgmt.h b/qemu/roms/ipxe/src/include/usr/pingmgmt.h
new file mode 100644
index 000000000..d4c2d6cd5
--- /dev/null
+++ b/qemu/roms/ipxe/src/include/usr/pingmgmt.h
@@ -0,0 +1,17 @@
+#ifndef _USR_PINGMGMT_H
+#define _USR_PINGMGMT_H
+
+/** @file
+ *
+ * ICMP ping management
+ *
+ */
+
+FILE_LICENCE ( GPL2_OR_LATER );
+
+#include <stdint.h>
+
+extern int ping ( const char *hostname, unsigned long timeout, size_t len,
+ unsigned int count, int quiet );
+
+#endif /* _USR_PINGMGMT_H */
diff --git a/qemu/roms/ipxe/src/include/usr/profstat.h b/qemu/roms/ipxe/src/include/usr/profstat.h
new file mode 100644
index 000000000..06ea251a0
--- /dev/null
+++ b/qemu/roms/ipxe/src/include/usr/profstat.h
@@ -0,0 +1,14 @@
+#ifndef _USR_PROFSTAT_H
+#define _USR_PROFSTAT_H
+
+/** @file
+ *
+ * Profiling
+ *
+ */
+
+FILE_LICENCE ( GPL2_OR_LATER );
+
+extern void profstat ( void );
+
+#endif /* _USR_PROFSTAT_H */
diff --git a/qemu/roms/ipxe/src/include/usr/prompt.h b/qemu/roms/ipxe/src/include/usr/prompt.h
new file mode 100644
index 000000000..57e43d2dc
--- /dev/null
+++ b/qemu/roms/ipxe/src/include/usr/prompt.h
@@ -0,0 +1,14 @@
+#ifndef _USR_PROMPT_H
+#define _USR_PROMPT_H
+
+/** @file
+ *
+ * Prompt for keypress
+ *
+ */
+
+FILE_LICENCE ( GPL2_OR_LATER );
+
+extern int prompt ( const char *text, unsigned long timeout, int key );
+
+#endif /* _USR_PROMPT_H */
diff --git a/qemu/roms/ipxe/src/include/usr/route.h b/qemu/roms/ipxe/src/include/usr/route.h
new file mode 100644
index 000000000..b914f4b84
--- /dev/null
+++ b/qemu/roms/ipxe/src/include/usr/route.h
@@ -0,0 +1,35 @@
+#ifndef _USR_ROUTE_H
+#define _USR_ROUTE_H
+
+/** @file
+ *
+ * Routing management
+ *
+ */
+
+FILE_LICENCE ( GPL2_OR_LATER );
+
+#include <ipxe/tables.h>
+
+/** A routing family */
+struct routing_family {
+ /**
+ * Print routes for a network device
+ *
+ * @v netdev Network device
+ */
+ void ( * print ) ( struct net_device *netdev );
+};
+
+/** Routing family table */
+#define ROUTING_FAMILIES __table ( struct routing_family, "routing_families" )
+
+/** Declare a routing family */
+#define __routing_family( order ) __table_entry ( ROUTING_FAMILIES, order )
+
+#define ROUTING_IPV4 01
+#define ROUTING_IPV6 02
+
+extern void route ( void );
+
+#endif /* _USR_ROUTE_H */
diff --git a/qemu/roms/ipxe/src/include/usr/sync.h b/qemu/roms/ipxe/src/include/usr/sync.h
new file mode 100644
index 000000000..0047d4ed9
--- /dev/null
+++ b/qemu/roms/ipxe/src/include/usr/sync.h
@@ -0,0 +1,14 @@
+#ifndef _USR_SYNC_H
+#define _USR_SYNC_H
+
+/** @file
+ *
+ * Wait for pending operations to complete
+ *
+ */
+
+FILE_LICENCE ( GPL2_OR_LATER );
+
+extern int sync ( unsigned long timeout );
+
+#endif /* _USR_SYNC_H */