summaryrefslogtreecommitdiffstats
path: root/src/include/linux_api.h
diff options
context:
space:
mode:
authorMichael Brown2013-07-13 12:42:40 +0200
committerMichael Brown2013-07-13 12:44:45 +0200
commitd8392851d2d5cfe0a7f79c2dab29219f59affa60 (patch)
tree9c9f9b7167a07518892075d3267f53c3d94f4679 /src/include/linux_api.h
parent[settings] Add "busdevfn" setting type (diff)
downloadipxe-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/linux_api.h')
-rw-r--r--src/include/linux_api.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/linux_api.h b/src/include/linux_api.h
index 94dc991f..28a3cda3 100644
--- a/src/include/linux_api.h
+++ b/src/include/linux_api.h
@@ -47,11 +47,13 @@ typedef __kernel_loff_t loff_t;
typedef unsigned long nfds_t;
typedef uint32_t useconds_t;
#define MAP_FAILED ( ( void * ) -1 )
+#define SEEK_SET 0
extern long linux_syscall ( int number, ... );
extern int linux_open ( const char *pathname, int flags );
extern int linux_close ( int fd );
+extern off_t linux_lseek ( int fd, off_t offset, int whence );
extern __kernel_ssize_t linux_read ( int fd, void *buf, __kernel_size_t count );
extern __kernel_ssize_t linux_write ( int fd, const void *buf,
__kernel_size_t count );