diff options
| author | Michael Brown | 2013-07-13 12:42:40 +0200 |
|---|---|---|
| committer | Michael Brown | 2013-07-13 12:44:45 +0200 |
| commit | d8392851d2d5cfe0a7f79c2dab29219f59affa60 (patch) | |
| tree | 9c9f9b7167a07518892075d3267f53c3d94f4679 /src/include/ipxe/linux.h | |
| parent | [settings] Add "busdevfn" setting type (diff) | |
| download | ipxe-d8392851d2d5cfe0a7f79c2dab29219f59affa60.tar.gz ipxe-d8392851d2d5cfe0a7f79c2dab29219f59affa60.tar.xz ipxe-d8392851d2d5cfe0a7f79c2dab29219f59affa60.zip | |
[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 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 <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 */ |
