TianoCore EDK2 master
Loading...
Searching...
No Matches
EmbeddedExternalDevice.h
Go to the documentation of this file.
1
9#ifndef __EMBEDDED_EXTERNAL_DEVICE_H__
10#define __EMBEDDED_EXTERNAL_DEVICE_H__
11
12//
13// Protocol GUID
14//
15#define EMBEDDED_EXTERNAL_DEVICE_PROTOCOL_GUID { 0x735F8C64, 0xD696, 0x44D0, { 0xBD, 0xF2, 0x44, 0x7F, 0xD0, 0x5A, 0x54, 0x06 }}
16
17//
18// Protocol interface structure
19//
21
22//
23// Function Prototypes
24//
25typedef
27(EFIAPI *EMBEDDED_EXTERNAL_DEVICE_READ)(
30 IN UINTN Length,
31 OUT VOID *Buffer
32 )
33
34/*++
35
36Routine Description:
37
38 Read a set of contiguous external device registers.
39
40Arguments:
41
42 This - pointer to protocol
43 Offset - starting register number
44 Length - number of bytes to read
45 Buffer - destination buffer
46
47Returns:
48
49 EFI_SUCCESS - registers read successfully
50
51--*/
52;
53
54typedef
56(EFIAPI *EMBEDDED_EXTERNAL_DEVICE_WRITE)(
59 IN UINTN Length,
60 IN VOID *Buffer
61 )
62
63/*++
64
65Routine Description:
66
67 Write to a set of contiguous external device registers.
68
69Arguments:
70
71 This - pointer to protocol
72 Offset - starting register number
73 Length - number of bytes to write
74 Buffer - source buffer
75
76Returns:
77
78 EFI_SUCCESS - registers written successfully
79
80--*/
81;
82
84 EMBEDDED_EXTERNAL_DEVICE_READ Read;
85 EMBEDDED_EXTERNAL_DEVICE_WRITE Write;
86};
87
88extern EFI_GUID gEmbeddedExternalDeviceProtocolGuid;
89
90#endif // __EMBEDDED_EXTERNAL_DEVICE_H__
UINT64 UINTN
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
EFI_STATUS EFIAPI Register(IN EFI_PEI_RSC_HANDLER_CALLBACK Callback)
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
Definition: Base.h:213