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/arch | |
| 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/arch')
| -rw-r--r-- | src/arch/x86/core/linux/linux_api.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/arch/x86/core/linux/linux_api.c b/src/arch/x86/core/linux/linux_api.c index c8a09b7d8..0bed9fd57 100644 --- a/src/arch/x86/core/linux/linux_api.c +++ b/src/arch/x86/core/linux/linux_api.c @@ -37,6 +37,10 @@ int linux_close ( int fd ) { return linux_syscall ( __NR_close, fd ); } +off_t linux_lseek ( int fd, off_t offset, int whence ) { + return linux_syscall ( __NR_lseek, fd, offset, whence ); +} + __kernel_ssize_t linux_read ( int fd, void *buf, __kernel_size_t count ) { return linux_syscall ( __NR_read, fd, buf, count ); } |
