3 Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
11 #ifndef __MMIO_DEVICE_H__
12 #define __MMIO_DEVICE_H__
15 // Protocol to define for the MMIO device
24 // Context for the protocol
27 } EFI_MMIO_DEVICE_PROTOCOL_ITEM
;
30 typedef struct _EFI_MMIO_DEVICE_PROTOCOL EFI_MMIO_DEVICE_PROTOCOL
;
33 // The MMIO device protocol defines a memory mapped I/O device
34 // for use by the system.
36 struct _EFI_MMIO_DEVICE_PROTOCOL
{
38 // Pointer to an ACPI_EXTENDED_HID_DEVICE_PATH structure
39 // containing HID/HidStr and CID/CidStr values.
41 // See the note below associated with the UnitIdentification
44 CONST ACPI_EXTENDED_HID_DEVICE_PATH
*AcpiPath
;
47 // Allow the use of a shared template for the AcpiPath.
49 // If this value is non-zero UID value then the AcpiPath must
50 // be a template which contains only the HID/HidStr and CID/CidStr
51 // values. The UID/UidStr values in the AcpiPath must be zero!
53 // If this value is zero then the AcpiPath is not shared and
54 // must contain either a non-zero UID value or a UidStr value.
56 UINT32 UnitIdentification
;
59 // Hardware revision - ACPI _HRV value
61 UINT32 HardwareRevision
;
64 // Pointer to a data structure containing the controller
65 // resources and configuration. At a minimum this points
66 // to an EFI_PHYSICAL_ADDRESS for the base address of the
69 CONST VOID
*DriverResources
;
72 // Number of protocols in the array
77 // List of protocols to define
79 CONST EFI_MMIO_DEVICE_PROTOCOL_ITEM
*ProtocolArray
;
82 extern EFI_GUID gEfiMmioDeviceProtocolGuid
;
84 #endif // __MMIO_DEVICE_H__