[linux] Add support for accessing PCI configuration space via /proc/bus/pci

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2013-07-13 12:42:40 +02:00
parent 3dbcce51ea
commit d8392851d2
8 changed files with 332 additions and 0 deletions

View File

@@ -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 );