From 54c024e0af429e544137fb12002591cea50634a8 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Mon, 13 Oct 2008 10:05:23 +0100 Subject: [sanboot] Quick and dirty hack to make SAN boot protocols selectable --- src/include/gpxe/sanboot.h | 14 ++++++++++++++ src/include/usr/aoeboot.h | 6 ------ src/include/usr/iscsiboot.h | 6 ------ 3 files changed, 14 insertions(+), 12 deletions(-) create mode 100644 src/include/gpxe/sanboot.h delete mode 100644 src/include/usr/aoeboot.h delete mode 100644 src/include/usr/iscsiboot.h (limited to 'src/include') diff --git a/src/include/gpxe/sanboot.h b/src/include/gpxe/sanboot.h new file mode 100644 index 000000000..ea26a3562 --- /dev/null +++ b/src/include/gpxe/sanboot.h @@ -0,0 +1,14 @@ +#ifndef _GPXE_SANBOOT_H +#define _GPXE_SANBOOT_H + +#include + +struct sanboot_protocol { + const char *prefix; + int ( * boot ) ( const char *root_path ); +}; + +#define __sanboot_protocol \ + __table ( struct sanboot_protocol, sanboot_protocols, 01 ) + +#endif /* _GPXE_SANBOOT_H */ diff --git a/src/include/usr/aoeboot.h b/src/include/usr/aoeboot.h deleted file mode 100644 index 0421ebcc0..000000000 --- a/src/include/usr/aoeboot.h +++ /dev/null @@ -1,6 +0,0 @@ -#ifndef _USR_AOEBOOT_H -#define _USR_AOEBOOT_H - -extern int aoeboot ( const char *root_path ); - -#endif /* _USR_AOEBOOT_H */ diff --git a/src/include/usr/iscsiboot.h b/src/include/usr/iscsiboot.h deleted file mode 100644 index b17951d56..000000000 --- a/src/include/usr/iscsiboot.h +++ /dev/null @@ -1,6 +0,0 @@ -#ifndef _USR_ISCSIBOOT_H -#define _USR_ISCSIBOOT_H - -extern int iscsiboot ( const char *root_path ); - -#endif /* _USR_ISCSIBOOT_H */ -- cgit v1.2.3-55-g7522