3 Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR>
5 This program and the accompanying materials are licensed and made available under
6 the terms and conditions of the BSD License that accompanies this distribution.
7 The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php.
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
16 #ifndef __MMIO_DEVICE_H__
17 #define __MMIO_DEVICE_H__
20 // Protocol to define for the MMIO device
29 // Context for the protocol
32 } EFI_MMIO_DEVICE_PROTOCOL_ITEM
;
35 typedef struct _EFI_MMIO_DEVICE_PROTOCOL EFI_MMIO_DEVICE_PROTOCOL
;
38 // The MMIO device protocol defines a memory mapped I/O device
39 // for use by the system.
41 struct _EFI_MMIO_DEVICE_PROTOCOL
{
43 // Pointer to an ACPI_EXTENDED_HID_DEVICE_PATH structure
44 // containing HID/HidStr and CID/CidStr values.
46 // See the note below associated with the UnitIdentification
49 CONST ACPI_EXTENDED_HID_DEVICE_PATH
*AcpiPath
;
52 // Allow the use of a shared template for the AcpiPath.
54 // If this value is non-zero UID value then the AcpiPath must
55 // be a template which contains only the HID/HidStr and CID/CidStr
56 // values. The UID/UidStr values in the AcpiPath must be zero!
58 // If this value is zero then the AcpiPath is not shared and
59 // must contain either a non-zero UID value or a UidStr value.
61 UINT32 UnitIdentification
;
64 // Hardware revision - ACPI _HRV value
66 UINT32 HardwareRevision
;
69 // Pointer to a data structure containing the controller
70 // resources and configuration. At a minimum this points
71 // to an EFI_PHYSICAL_ADDRESS for the base address of the
74 CONST VOID
*DriverResources
;
77 // Number of protocols in the array
82 // List of protocols to define
84 CONST EFI_MMIO_DEVICE_PROTOCOL_ITEM
*ProtocolArray
;
87 extern EFI_GUID gEfiMmioDeviceProtocolGuid
;
89 #endif // __MMIO_DEVICE_H__