]> git.proxmox.com Git - mirror_edk2.git/blame - EdkCompatibilityPkg/Foundation/Efi/Protocol/DebugPort/DebugPort.h
Update the copyright notice format
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Efi / Protocol / DebugPort / DebugPort.h
CommitLineData
3eb9473e 1/*++\r
2\r
f57387d5
HT
3Copyright (c) 2004, Intel Corporation. All rights reserved.<BR>\r
4This program and the accompanying materials \r
3eb9473e 5are licensed and made available under the terms and conditions of the BSD License \r
6which accompanies this distribution. The full text of the license may be found at \r
7http://opensource.org/licenses/bsd-license.php \r
8 \r
9THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
10WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
11\r
12Module Name:\r
13\r
14 DebugPort.h\r
15\r
16Abstract:\r
17\r
18--*/\r
19\r
20#ifndef _DEBUG_PORT_H_\r
21#define _DEBUG_PORT_H_\r
22\r
23#include "EfiApi.h"\r
24\r
25//\r
26// DebugPortIo protocol {EBA4E8D2-3858-41EC-A281-2647BA9660D0}\r
27//\r
28#define EFI_DEBUGPORT_PROTOCOL_GUID \\r
29 { \\r
7ccf38a3 30 0xEBA4E8D2, 0x3858, 0x41EC, {0xA2, 0x81, 0x26, 0x47, 0xBA, 0x96, 0x60, 0xD0} \\r
3eb9473e 31 }\r
32\r
33extern EFI_GUID gEfiDebugPortProtocolGuid;\r
34\r
35EFI_FORWARD_DECLARATION (EFI_DEBUGPORT_PROTOCOL);\r
36\r
37//\r
38// DebugPort member functions\r
39//\r
40typedef\r
41EFI_STATUS\r
42(EFIAPI *EFI_DEBUGPORT_RESET) (\r
43 IN EFI_DEBUGPORT_PROTOCOL * This\r
44 );\r
45\r
46typedef\r
47EFI_STATUS\r
48(EFIAPI *EFI_DEBUGPORT_WRITE) (\r
49 IN EFI_DEBUGPORT_PROTOCOL * This,\r
50 IN UINT32 Timeout,\r
51 IN OUT UINTN *BufferSize,\r
52 IN VOID *Buffer\r
53 );\r
54\r
55typedef\r
56EFI_STATUS\r
57(EFIAPI *EFI_DEBUGPORT_READ) (\r
58 IN EFI_DEBUGPORT_PROTOCOL * This,\r
59 IN UINT32 Timeout,\r
60 IN OUT UINTN *BufferSize,\r
61 OUT VOID *Buffer\r
62 );\r
63\r
64typedef\r
65EFI_STATUS\r
66(EFIAPI *EFI_DEBUGPORT_POLL) (\r
67 IN EFI_DEBUGPORT_PROTOCOL * This\r
68 );\r
69\r
70//\r
71// DebugPort protocol definition\r
72//\r
e5bce275 73struct _EFI_DEBUGPORT_PROTOCOL {\r
3eb9473e 74 EFI_DEBUGPORT_RESET Reset;\r
75 EFI_DEBUGPORT_WRITE Write;\r
76 EFI_DEBUGPORT_READ Read;\r
77 EFI_DEBUGPORT_POLL Poll;\r
e5bce275 78};\r
3eb9473e 79\r
80//\r
81// DEBUGPORT variable definitions...\r
82//\r
83#define EFI_DEBUGPORT_VARIABLE_NAME L"DEBUGPORT"\r
84#define EFI_DEBUGPORT_VARIABLE_GUID EFI_DEBUGPORT_PROTOCOL_GUID\r
85#define gEfiDebugPortVariableGuid gEfiDebugPortProtocolGuid\r
86\r
87//\r
88// DebugPort device path definitions...\r
89//\r
90#define DEVICE_PATH_MESSAGING_DEBUGPORT EFI_DEBUGPORT_PROTOCOL_GUID\r
91#define gEfiDebugPortDevicePathGuid gEfiDebugPortProtocolGuid\r
92\r
93typedef struct {\r
94 EFI_DEVICE_PATH_PROTOCOL Header;\r
95 EFI_GUID Guid;\r
96} DEBUGPORT_DEVICE_PATH;\r
97\r
98#endif /* _DEBUG_PORT_H_ */\r