You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

efi_pci.h 630B

12345678910111213141516171819202122232425
  1. #ifndef _IPXE_EFI_PCI_H
  2. #define _IPXE_EFI_PCI_H
  3. /** @file
  4. *
  5. * EFI driver interface
  6. */
  7. FILE_LICENCE ( GPL2_OR_LATER );
  8. #include <ipxe/pci.h>
  9. #include <ipxe/efi/efi.h>
  10. #include <ipxe/efi/Protocol/PciIo.h>
  11. /* PciRootBridgeIo.h uses LShiftU64(), which isn't defined anywhere else */
  12. static inline EFIAPI uint64_t LShiftU64 ( UINT64 value, UINTN shift ) {
  13. return ( value << shift );
  14. }
  15. extern int efipci_open ( EFI_HANDLE device, UINT32 attributes,
  16. struct pci_device *pci );
  17. extern void efipci_close ( EFI_HANDLE device );
  18. extern int efipci_info ( EFI_HANDLE device, struct pci_device *pci );
  19. #endif /* _IPXE_EFI_PCI_H */