TianoCore EDK2 master
Loading...
Searching...
No Matches
DebugPort.h
Go to the documentation of this file.
1
12#ifndef __DEBUG_PORT_H__
13#define __DEBUG_PORT_H__
14
18#define EFI_DEBUGPORT_PROTOCOL_GUID \
19 { \
20 0xEBA4E8D2, 0x3858, 0x41EC, {0xA2, 0x81, 0x26, 0x47, 0xBA, 0x96, 0x60, 0xD0 } \
21 }
22
23extern EFI_GUID gEfiDebugPortProtocolGuid;
24
26
27//
28// DebugPort member functions
29//
30
40typedef
42(EFIAPI *EFI_DEBUGPORT_RESET)(
44 );
45
60typedef
62(EFIAPI *EFI_DEBUGPORT_WRITE)(
64 IN UINT32 Timeout,
65 IN OUT UINTN *BufferSize,
66 IN VOID *Buffer
67 );
68
84typedef
86(EFIAPI *EFI_DEBUGPORT_READ)(
88 IN UINT32 Timeout,
89 IN OUT UINTN *BufferSize,
90 OUT VOID *Buffer
91 );
92
103typedef
105(EFIAPI *EFI_DEBUGPORT_POLL)(
107 );
108
117};
118
119//
120// DEBUGPORT variable definitions...
121//
122#define EFI_DEBUGPORT_VARIABLE_NAME L"DEBUGPORT"
123#define EFI_DEBUGPORT_VARIABLE_GUID EFI_DEBUGPORT_PROTOCOL_GUID
124
125extern EFI_GUID gEfiDebugPortVariableGuid;
126
127//
128// DebugPort device path definitions...
129//
130#define DEVICE_PATH_MESSAGING_DEBUGPORT EFI_DEBUGPORT_PROTOCOL_GUID
131
132extern EFI_GUID gEfiDebugPortDevicePathGuid;
133
134typedef struct {
136 EFI_GUID Guid;
138
139#endif
UINT64 UINTN
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
EFI_STATUS(EFIAPI * EFI_DEBUGPORT_POLL)(IN EFI_DEBUGPORT_PROTOCOL *This)
Definition: DebugPort.h:105
EFI_STATUS(EFIAPI * EFI_DEBUGPORT_RESET)(IN EFI_DEBUGPORT_PROTOCOL *This)
Definition: DebugPort.h:42
EFI_STATUS(EFIAPI * EFI_DEBUGPORT_WRITE)(IN EFI_DEBUGPORT_PROTOCOL *This, IN UINT32 Timeout, IN OUT UINTN *BufferSize, IN VOID *Buffer)
Definition: DebugPort.h:62
EFI_STATUS(EFIAPI * EFI_DEBUGPORT_READ)(IN EFI_DEBUGPORT_PROTOCOL *This, IN UINT32 Timeout, IN OUT UINTN *BufferSize, OUT VOID *Buffer)
Definition: DebugPort.h:86
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
Definition: Base.h:213