OpenCore  1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
OcPciIoU.h
Go to the documentation of this file.
1
10#ifndef _EFI_PCI_IO_PROTOCOL_H_
11#define _EFI_PCI_IO_PROTOCOL_H_
12
13#include <Uefi.h>
14#include <Library/BaseLib.h>
15#include <Library/BaseMemoryLib.h>
16#include <Library/DebugLib.h>
17#include <Library/OcMiscLib.h>
18#include <Library/UefiBootServicesTableLib.h>
19#include <Library/MemoryAllocationLib.h>
20
21#include <Protocol/PciRootBridgeIo.h>
22#include <Protocol/CpuIo2.h>
23#include <Library/IoLib.h>
24
25#define MAX_IO_PORT_ADDRESS 0xFFFF
26
27EFI_CPU_IO2_PROTOCOL *
29 VOID
30 );
31
71EFI_STATUS
72EFIAPI
74 IN EFI_CPU_IO2_PROTOCOL *This,
76 IN UINT64 Address,
77 IN UINTN Count,
78 OUT VOID *Buffer
79 );
80
120EFI_STATUS
121EFIAPI
123 IN EFI_CPU_IO2_PROTOCOL *This,
125 IN UINT64 Address,
126 IN UINTN Count,
127 IN VOID *Buffer
128 );
129
145EFI_STATUS
146EFIAPI
148 IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL *This,
149 IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_WIDTH Width,
150 IN UINT64 Address,
151 IN UINTN Count,
152 IN OUT VOID *Buffer
153 )
154;
155
171EFI_STATUS
172EFIAPI
174 IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL *This,
175 IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_WIDTH Width,
176 IN UINT64 Address,
177 IN UINTN Count,
178 IN OUT VOID *Buffer
179 )
180;
181
182#endif
EFI_CPU_IO_PROTOCOL_WIDTH
Definition CpuIo.h:39
EFI_CPU_IO2_PROTOCOL * InitializeCpuIo2(VOID)
Definition OcPciIoU.c:48
EFI_STATUS EFIAPI RootBridgeIoMemWrite(IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL *This, IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_WIDTH Width, IN UINT64 Address, IN UINTN Count, IN OUT VOID *Buffer)
EFI_STATUS EFIAPI RootBridgeIoMemRead(IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL *This, IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_WIDTH Width, IN UINT64 Address, IN UINTN Count, IN OUT VOID *Buffer)
EFI_STATUS EFIAPI CpuMemoryServiceWrite(IN EFI_CPU_IO2_PROTOCOL *This, IN EFI_CPU_IO_PROTOCOL_WIDTH Width, IN UINT64 Address, IN UINTN Count, IN VOID *Buffer)
Definition OcPciIoU.c:309
EFI_STATUS EFIAPI CpuMemoryServiceRead(IN EFI_CPU_IO2_PROTOCOL *This, IN EFI_CPU_IO_PROTOCOL_WIDTH Width, IN UINT64 Address, IN UINTN Count, OUT VOID *Buffer)
Definition OcPciIoU.c:228
OC_TYPING_BUFFER_ENTRY Buffer[OC_TYPING_BUFFER_SIZE]
Definition OcTypingLib.h:42