diff options
author | Michael Brown <mcb30@ipxe.org> | 2013-07-13 12:42:40 +0200 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2013-07-13 12:44:45 +0200 |
commit | d8392851d2d5cfe0a7f79c2dab29219f59affa60 (patch) | |
tree | 9c9f9b7167a07518892075d3267f53c3d94f4679 /src/include/ipxe/linux.h | |
parent | 3dbcce51eaa3de66c945628676d9303aca5a98fd (diff) | |
download | ipxe-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.h | 8 |
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 */ |