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.
18 CPU IO Protocol as defined in Tiano
20 This code abstracts the CPU IO Protocol
27 #define EFI_CPU_IO_PROTOCOL_GUID \
29 0xB0732526, 0x38C8, 0x4b40, 0x88, 0x77, 0x61, 0xC7, 0xB0, 0x6A, 0xAC, 0x45 \
32 EFI_FORWARD_DECLARATION (EFI_CPU_IO_PROTOCOL
);
35 // *******************************************************
36 // EFI_CPU_IO_PROTOCOL_WIDTH
37 // *******************************************************
44 EfiCpuIoWidthFifoUint8
,
45 EfiCpuIoWidthFifoUint16
,
46 EfiCpuIoWidthFifoUint32
,
47 EfiCpuIoWidthFifoUint64
,
48 EfiCpuIoWidthFillUint8
,
49 EfiCpuIoWidthFillUint16
,
50 EfiCpuIoWidthFillUint32
,
51 EfiCpuIoWidthFillUint64
,
53 } EFI_CPU_IO_PROTOCOL_WIDTH
;
56 // *******************************************************
57 // EFI_CPU_IO_PROTOCOL_IO_MEM
58 // *******************************************************
63 (EFIAPI
*EFI_CPU_IO_PROTOCOL_IO_MEM
) (
64 IN EFI_CPU_IO_PROTOCOL
* This
,
65 IN EFI_CPU_IO_PROTOCOL_WIDTH Width
,
72 // *******************************************************
73 // EFI_CPU_IO_PROTOCOL_ACCESS
74 // *******************************************************
77 EFI_CPU_IO_PROTOCOL_IO_MEM Read
;
78 EFI_CPU_IO_PROTOCOL_IO_MEM Write
;
79 } EFI_CPU_IO_PROTOCOL_ACCESS
;
82 // *******************************************************
83 // EFI_CPU_IO_PROTOCOL
84 // *******************************************************
86 typedef struct _EFI_CPU_IO_PROTOCOL
{
87 EFI_CPU_IO_PROTOCOL_ACCESS Mem
;
88 EFI_CPU_IO_PROTOCOL_ACCESS Io
;
89 } EFI_CPU_IO_PROTOCOL
;
91 extern EFI_GUID gEfiCpuIoProtocolGuid
;