3 Copyright (c) 2004, Intel Corporation
4 All rights reserved. This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
20 #ifndef _DEBUG_PORT_H_
21 #define _DEBUG_PORT_H_
26 // DebugPortIo protocol {EBA4E8D2-3858-41EC-A281-2647BA9660D0}
28 #define EFI_DEBUGPORT_PROTOCOL_GUID \
30 0xEBA4E8D2, 0x3858, 0x41EC, 0xA2, 0x81, 0x26, 0x47, 0xBA, 0x96, 0x60, 0xD0 \
33 extern EFI_GUID gEfiDebugPortProtocolGuid
;
35 EFI_FORWARD_DECLARATION (EFI_DEBUGPORT_PROTOCOL
);
38 // DebugPort member functions
42 (EFIAPI
*EFI_DEBUGPORT_RESET
) (
43 IN EFI_DEBUGPORT_PROTOCOL
* This
48 (EFIAPI
*EFI_DEBUGPORT_WRITE
) (
49 IN EFI_DEBUGPORT_PROTOCOL
* This
,
51 IN OUT UINTN
*BufferSize
,
57 (EFIAPI
*EFI_DEBUGPORT_READ
) (
58 IN EFI_DEBUGPORT_PROTOCOL
* This
,
60 IN OUT UINTN
*BufferSize
,
66 (EFIAPI
*EFI_DEBUGPORT_POLL
) (
67 IN EFI_DEBUGPORT_PROTOCOL
* This
71 // DebugPort protocol definition
73 typedef struct _EFI_DEBUGPORT_PROTOCOL
{
74 EFI_DEBUGPORT_RESET Reset
;
75 EFI_DEBUGPORT_WRITE Write
;
76 EFI_DEBUGPORT_READ Read
;
77 EFI_DEBUGPORT_POLL Poll
;
78 } EFI_DEBUGPORT_PROTOCOL
;
81 // DEBUGPORT variable definitions...
83 #define EFI_DEBUGPORT_VARIABLE_NAME L"DEBUGPORT"
84 #define EFI_DEBUGPORT_VARIABLE_GUID EFI_DEBUGPORT_PROTOCOL_GUID
85 #define gEfiDebugPortVariableGuid gEfiDebugPortProtocolGuid
88 // DebugPort device path definitions...
90 #define DEVICE_PATH_MESSAGING_DEBUGPORT EFI_DEBUGPORT_PROTOCOL_GUID
91 #define gEfiDebugPortDevicePathGuid gEfiDebugPortProtocolGuid
94 EFI_DEVICE_PATH_PROTOCOL Header
;
96 } DEBUGPORT_DEVICE_PATH
;
98 #endif /* _DEBUG_PORT_H_ */