summaryrefslogtreecommitdiff
path: root/gpxe/src/include/gpxe/pci_io.h
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2016-02-09 18:08:47 -0800
committerH. Peter Anvin <hpa@zytor.com>2016-02-09 18:08:47 -0800
commitf2f897a1762fab84d2905f32b1c15dd7b42abb56 (patch)
treea38f51d3f1fcbf44afddb4736d549c12eaf491be /gpxe/src/include/gpxe/pci_io.h
parent72d2959272b4616f17a97667e6dfa9d06bf109a3 (diff)
downloadsyslinux-f2f897a1762fab84d2905f32b1c15dd7b42abb56.tar.gz
gpxe: delete long since obsolete snapshot of gPXE
gPXE has been deprecated in favor of iPXE for many, many years now. It is much better than users get it directly from the iPXE project, since we should no longer need any special modifications for Syslinux use. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'gpxe/src/include/gpxe/pci_io.h')
-rw-r--r--gpxe/src/include/gpxe/pci_io.h124
1 files changed, 0 insertions, 124 deletions
diff --git a/gpxe/src/include/gpxe/pci_io.h b/gpxe/src/include/gpxe/pci_io.h
deleted file mode 100644
index 8b2729ab..00000000
--- a/gpxe/src/include/gpxe/pci_io.h
+++ /dev/null
@@ -1,124 +0,0 @@
-#ifndef _GPXE_PCI_IO_H
-#define _GPXE_PCI_IO_H
-
-/** @file
- *
- * PCI I/O API
- *
- */
-
-FILE_LICENCE ( GPL2_OR_LATER );
-
-#include <stdint.h>
-#include <gpxe/api.h>
-#include <config/ioapi.h>
-
-/**
- * Calculate static inline PCI I/O API function name
- *
- * @v _prefix Subsystem prefix
- * @v _api_func API function
- * @ret _subsys_func Subsystem API function
- */
-#define PCIAPI_INLINE( _subsys, _api_func ) \
- SINGLE_API_INLINE ( PCIAPI_PREFIX_ ## _subsys, _api_func )
-
-/**
- * Provide a PCI I/O API implementation
- *
- * @v _prefix Subsystem prefix
- * @v _api_func API function
- * @v _func Implementing function
- */
-#define PROVIDE_PCIAPI( _subsys, _api_func, _func ) \
- PROVIDE_SINGLE_API ( PCIAPI_PREFIX_ ## _subsys, _api_func, _func )
-
-/**
- * Provide a static inline PCI I/O API implementation
- *
- * @v _prefix Subsystem prefix
- * @v _api_func API function
- */
-#define PROVIDE_PCIAPI_INLINE( _subsys, _api_func ) \
- PROVIDE_SINGLE_API_INLINE ( PCIAPI_PREFIX_ ## _subsys, _api_func )
-
-/* Include all architecture-independent I/O API headers */
-#include <gpxe/efi/efi_pci.h>
-
-/* Include all architecture-dependent I/O API headers */
-#include <bits/pci_io.h>
-
-/**
- * Determine maximum PCI bus number within system
- *
- * @ret max_bus Maximum bus number
- */
-int pci_max_bus ( void );
-
-/**
- * Read byte from PCI configuration space
- *
- * @v pci PCI device
- * @v where Location within PCI configuration space
- * @v value Value read
- * @ret rc Return status code
- */
-int pci_read_config_byte ( struct pci_device *pci, unsigned int where,
- uint8_t *value );
-
-/**
- * Read 16-bit word from PCI configuration space
- *
- * @v pci PCI device
- * @v where Location within PCI configuration space
- * @v value Value read
- * @ret rc Return status code
- */
-int pci_read_config_word ( struct pci_device *pci, unsigned int where,
- uint16_t *value );
-
-/**
- * Read 32-bit dword from PCI configuration space
- *
- * @v pci PCI device
- * @v where Location within PCI configuration space
- * @v value Value read
- * @ret rc Return status code
- */
-int pci_read_config_dword ( struct pci_device *pci, unsigned int where,
- uint32_t *value );
-
-/**
- * Write byte to PCI configuration space
- *
- * @v pci PCI device
- * @v where Location within PCI configuration space
- * @v value Value to be written
- * @ret rc Return status code
- */
-int pci_write_config_byte ( struct pci_device *pci, unsigned int where,
- uint8_t value );
-
-/**
- * Write 16-bit word to PCI configuration space
- *
- * @v pci PCI device
- * @v where Location within PCI configuration space
- * @v value Value to be written
- * @ret rc Return status code
- */
-int pci_write_config_word ( struct pci_device *pci, unsigned int where,
- uint16_t value );
-
-/**
- * Write 32-bit dword to PCI configuration space
- *
- * @v pci PCI device
- * @v where Location within PCI configuration space
- * @v value Value to be written
- * @ret rc Return status code
- */
-int pci_write_config_dword ( struct pci_device *pci, unsigned int where,
- uint32_t value );
-
-#endif /* _GPXE_PCI_IO_H */