iPXE
efi_pci.h
Go to the documentation of this file.
00001 #ifndef _IPXE_EFI_PCI_H
00002 #define _IPXE_EFI_PCI_H
00003 
00004 /** @file
00005  *
00006  * EFI driver interface
00007  */
00008 
00009 FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
00010 
00011 #include <ipxe/pci.h>
00012 #include <ipxe/efi/efi.h>
00013 #include <ipxe/efi/Protocol/PciIo.h>
00014 
00015 /* PciRootBridgeIo.h uses LShiftU64(), which isn't defined anywhere else */
00016 static inline EFIAPI uint64_t LShiftU64 ( UINT64 value, UINTN shift ) {
00017         return ( value << shift );
00018 }
00019 
00020 extern int efipci_open ( EFI_HANDLE device, UINT32 attributes,
00021                          struct pci_device *pci );
00022 extern void efipci_close ( EFI_HANDLE device );
00023 extern int efipci_info ( EFI_HANDLE device, struct pci_device *pci );
00024 
00025 #endif /* _IPXE_EFI_PCI_H */