]> git.proxmox.com Git - mirror_edk2.git/blame - EmbeddedPkg/Include/Protocol/EmbeddedExternalDevice.h
EmbeddedPkg: Apply uncrustify changes
[mirror_edk2.git] / EmbeddedPkg / Include / Protocol / EmbeddedExternalDevice.h
CommitLineData
1e57a462 1/** @file\r
2\r
3 Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>\r
4\r
878b807a 5 SPDX-License-Identifier: BSD-2-Clause-Patent\r
1e57a462 6\r
7**/\r
8\r
9#ifndef __EMBEDDED_EXTERNAL_DEVICE_H__\r
10#define __EMBEDDED_EXTERNAL_DEVICE_H__\r
11\r
12//\r
13// Protocol GUID\r
14//\r
e7108d0e 15#define EMBEDDED_EXTERNAL_DEVICE_PROTOCOL_GUID { 0x735F8C64, 0xD696, 0x44D0, { 0xBD, 0xF2, 0x44, 0x7F, 0xD0, 0x5A, 0x54, 0x06 }}\r
1e57a462 16\r
17//\r
18// Protocol interface structure\r
19//\r
20typedef struct _EMBEDDED_EXTERNAL_DEVICE EMBEDDED_EXTERNAL_DEVICE;\r
21\r
22//\r
23// Function Prototypes\r
24//\r
25typedef\r
26EFI_STATUS\r
e7108d0e
MK
27(EFIAPI *EMBEDDED_EXTERNAL_DEVICE_READ)(\r
28 IN EMBEDDED_EXTERNAL_DEVICE *This,\r
29 IN UINTN Register,\r
30 IN UINTN Length,\r
31 OUT VOID *Buffer\r
32 )\r
33\r
1e57a462 34/*++\r
35\r
36Routine Description:\r
37\r
38 Read a set of contiguous external device registers.\r
39\r
40Arguments:\r
41\r
42 This - pointer to protocol\r
43 Offset - starting register number\r
44 Length - number of bytes to read\r
45 Buffer - destination buffer\r
3402aac7 46\r
1e57a462 47Returns:\r
48\r
49 EFI_SUCCESS - registers read successfully\r
50\r
51--*/\r
52;\r
53\r
54typedef\r
55EFI_STATUS\r
e7108d0e
MK
56(EFIAPI *EMBEDDED_EXTERNAL_DEVICE_WRITE)(\r
57 IN EMBEDDED_EXTERNAL_DEVICE *This,\r
58 IN UINTN Register,\r
59 IN UINTN Length,\r
60 IN VOID *Buffer\r
61 )\r
62\r
1e57a462 63/*++\r
64\r
65Routine Description:\r
66\r
67 Write to a set of contiguous external device registers.\r
68\r
69Arguments:\r
70\r
71 This - pointer to protocol\r
72 Offset - starting register number\r
73 Length - number of bytes to write\r
74 Buffer - source buffer\r
3402aac7 75\r
1e57a462 76Returns:\r
77\r
78 EFI_SUCCESS - registers written successfully\r
79\r
80--*/\r
81;\r
82\r
83struct _EMBEDDED_EXTERNAL_DEVICE {\r
e7108d0e
MK
84 EMBEDDED_EXTERNAL_DEVICE_READ Read;\r
85 EMBEDDED_EXTERNAL_DEVICE_WRITE Write;\r
1e57a462 86};\r
87\r
e7108d0e 88extern EFI_GUID gEmbeddedExternalDeviceProtocolGuid;\r
1e57a462 89\r
e7108d0e 90#endif // __EMBEDDED_EXTERNAL_DEVICE_H__\r