From d8392851d2d5cfe0a7f79c2dab29219f59affa60 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Sat, 13 Jul 2013 12:42:40 +0200 Subject: [linux] Add support for accessing PCI configuration space via /proc/bus/pci Signed-off-by: Michael Brown --- src/include/ipxe/linux.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/include/ipxe/linux.h') diff --git a/src/include/ipxe/linux.h b/src/include/ipxe/linux.h index dac508ea6..a01ace3de 100644 --- a/src/include/ipxe/linux.h +++ b/src/include/ipxe/linux.h @@ -30,6 +30,14 @@ FILE_LICENCE(GPL2_OR_LATER); #include #include +/** + * 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 */ -- cgit v1.2.3-55-g7522