aboutsummaryrefslogtreecommitdiffstats
path: root/gpxe/src/include/console.h
diff options
context:
space:
mode:
Diffstat (limited to 'gpxe/src/include/console.h')
-rw-r--r--gpxe/src/include/console.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/gpxe/src/include/console.h b/gpxe/src/include/console.h
index 9addd526..62fedf5b 100644
--- a/gpxe/src/include/console.h
+++ b/gpxe/src/include/console.h
@@ -14,6 +14,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
/**
* A console driver
*
@@ -85,6 +87,9 @@ struct console_driver {
int ( *iskey ) ( void );
};
+/** Console driver table */
+#define CONSOLES __table ( struct console_driver, "consoles" )
+
/**
* Mark a <tt> struct console_driver </tt> as being part of the
* console drivers table.
@@ -102,7 +107,7 @@ struct console_driver {
* @endcode
*
*/
-#define __console_driver __table ( struct console_driver, console, 01 )
+#define __console_driver __table_entry ( CONSOLES, 01 )
/* Function prototypes */