aboutsummaryrefslogtreecommitdiff
path: root/src/include/ipxe/linux.h
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2013-07-13 12:42:40 +0200
committerMichael Brown <mcb30@ipxe.org>2013-07-13 12:44:45 +0200
commitd8392851d2d5cfe0a7f79c2dab29219f59affa60 (patch)
tree9c9f9b7167a07518892075d3267f53c3d94f4679 /src/include/ipxe/linux.h
parent3dbcce51eaa3de66c945628676d9303aca5a98fd (diff)
downloadipxe-d8392851d2d5cfe0a7f79c2dab29219f59affa60.zip
ipxe-d8392851d2d5cfe0a7f79c2dab29219f59affa60.tar.gz
ipxe-d8392851d2d5cfe0a7f79c2dab29219f59affa60.tar.bz2
[linux] Add support for accessing PCI configuration space via /proc/bus/pci
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/linux.h')
-rw-r--r--src/include/ipxe/linux.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/include/ipxe/linux.h b/src/include/ipxe/linux.h
index dac508e..a01ace3 100644
--- a/src/include/ipxe/linux.h
+++ b/src/include/ipxe/linux.h
@@ -30,6 +30,14 @@ FILE_LICENCE(GPL2_OR_LATER);
#include <ipxe/device.h>
#include <ipxe/settings.h>
+/**
+ * Convert a Linux error number to an iPXE status code
+ *
+ * @v errno Linux error number
+ * @ret rc iPXE status code (before negation)
+ */
+#define ELINUX( errno ) EPLATFORM ( EINFO_EPLATFORM, errno )
+
/** A linux device */
struct linux_device {
/** Generic device */