diff options
author | Joan Lledó <joanlluislledo@gmail.com> | 2018-01-16 12:54:30 +0100 |
---|---|---|
committer | Damien Zammit <damien@zamaudio.com> | 2018-10-26 08:50:04 -0400 |
commit | d479f9541092b67186b2e471d20f21d8b2e28e6c (patch) | |
tree | c6a928f1ec36c251e61232743f19a03412c0d29f /src/pciaccess_private.h | |
parent | 44f3dd08f99ba67e967980daaea2b800c68e2659 (diff) |
New module for the Hurd
This new module uses Hurd's RPCs for accessing the PCI configuration space.
Direct access as in {read_write}_{8,16,32} functions is done by the old x86
module.
Some x86 function prototypes are now declared in a new header for the Hurd
module to use them, in order to duplicate as little code as possible.
Rebased onto upstream libpciaccess by Damien Zammit
Diffstat (limited to 'src/pciaccess_private.h')
-rw-r--r-- | src/pciaccess_private.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/pciaccess_private.h b/src/pciaccess_private.h index 2f05b29..10c9698 100644 --- a/src/pciaccess_private.h +++ b/src/pciaccess_private.h @@ -29,6 +29,9 @@ * \author Ian Romanick <idr@us.ibm.com> */ +#ifndef PCIACCESS_PRIVATE_H +#define PCIACCESS_PRIVATE_H + #if defined(__GNUC__) && (__GNUC__ >= 4) # define _pci_hidden __attribute__((visibility("hidden"))) #elif defined(__SUNPRO_C) && (__SUNPRO_C >= 0x550) @@ -150,6 +153,9 @@ struct pci_device_private { #ifdef __sun int is_primary; #endif +#ifdef __GNU__ + unsigned long device_port; +#endif }; @@ -189,5 +195,8 @@ extern int pci_system_netbsd_create( void ); extern int pci_system_openbsd_create( void ); extern void pci_system_openbsd_init_dev_mem( int ); extern int pci_system_solx_devfs_create( void ); +extern int pci_system_hurd_create( void ); extern int pci_system_x86_create( void ); extern void pci_io_cleanup( void ); + +#endif /* PCIACCESS_PRIVATE_H */ |