3 Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
9 #ifndef __EMBEDDED_EXTERNAL_DEVICE_H__
10 #define __EMBEDDED_EXTERNAL_DEVICE_H__
15 #define EMBEDDED_EXTERNAL_DEVICE_PROTOCOL_GUID { 0x735F8C64, 0xD696, 0x44D0, { 0xBD, 0xF2, 0x44, 0x7F, 0xD0, 0x5A, 0x54, 0x06 }}
18 // Protocol interface structure
20 typedef struct _EMBEDDED_EXTERNAL_DEVICE EMBEDDED_EXTERNAL_DEVICE
;
23 // Function Prototypes
27 (EFIAPI
*EMBEDDED_EXTERNAL_DEVICE_READ
) (
28 IN EMBEDDED_EXTERNAL_DEVICE
*This
,
37 Read a set of contiguous external device registers.
41 This - pointer to protocol
42 Offset - starting register number
43 Length - number of bytes to read
44 Buffer - destination buffer
48 EFI_SUCCESS - registers read successfully
55 (EFIAPI
*EMBEDDED_EXTERNAL_DEVICE_WRITE
) (
56 IN EMBEDDED_EXTERNAL_DEVICE
*This
,
65 Write to a set of contiguous external device registers.
69 This - pointer to protocol
70 Offset - starting register number
71 Length - number of bytes to write
72 Buffer - source buffer
76 EFI_SUCCESS - registers written successfully
81 struct _EMBEDDED_EXTERNAL_DEVICE
{
82 EMBEDDED_EXTERNAL_DEVICE_READ Read
;
83 EMBEDDED_EXTERNAL_DEVICE_WRITE Write
;
86 extern EFI_GUID gEmbeddedExternalDeviceProtocolGuid
;
88 #endif // __EMBEDDED_EXTERNAL_DEVICE_H__