summaryrefslogtreecommitdiffstats
path: root/src/include/ipxe/device.h
diff options
context:
space:
mode:
authorMichael Brown2013-08-27 17:28:54 +0200
committerMichael Brown2013-08-27 17:39:43 +0200
commitae0124cd404c0ee25152bef70bee9e2030054ce7 (patch)
treebedcc132a7e4a8248db644702e47e432cbd23c98 /src/include/ipxe/device.h
parent[settings] Make built-in settings a linker table (diff)
downloadipxe-ae0124cd404c0ee25152bef70bee9e2030054ce7.tar.gz
ipxe-ae0124cd404c0ee25152bef70bee9e2030054ce7.tar.xz
ipxe-ae0124cd404c0ee25152bef70bee9e2030054ce7.zip
[linux] Give tap devices a name and bus type
Give tap devices a meaningful name, and avoid segmentation faults when attempting to retrieve ${net0/bustype} by assigning a new bus type for tap devices. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/device.h')
-rw-r--r--src/include/ipxe/device.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/include/ipxe/device.h b/src/include/ipxe/device.h
index 435af6ec..c59697c0 100644
--- a/src/include/ipxe/device.h
+++ b/src/include/ipxe/device.h
@@ -54,6 +54,9 @@ struct device_description {
/** ISA bus type */
#define BUS_TYPE_ISA 5
+/** TAP bus type */
+#define BUS_TYPE_TAP 6
+
/** A hardware device */
struct device {
/** Name */