]>
Commit | Line | Data |
---|---|---|
3cbfba02 DW |
1 | /*++\r |
2 | \r | |
3 | Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR>\r | |
4 | \r\r | |
5 | This program and the accompanying materials are licensed and made available under\r\r | |
6 | the terms and conditions of the BSD License that accompanies this distribution. \r\r | |
7 | The full text of the license may be found at \r\r | |
8 | http://opensource.org/licenses/bsd-license.php. \r\r | |
9 | \r\r | |
10 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r\r | |
11 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r\r | |
12 | \r\r | |
13 | \r | |
14 | **/\r | |
15 | \r | |
16 | #ifndef __MMIO_DEVICE_H__\r | |
17 | #define __MMIO_DEVICE_H__\r | |
18 | \r | |
19 | //\r | |
20 | // Protocol to define for the MMIO device\r | |
21 | //\r | |
22 | typedef struct {\r | |
23 | //\r | |
24 | // Address of a GUID\r | |
25 | //\r | |
26 | EFI_GUID *Guid;\r | |
27 | \r | |
28 | //\r | |
29 | // Context for the protocol\r | |
30 | //\r | |
31 | VOID *Context;\r | |
32 | } EFI_MMIO_DEVICE_PROTOCOL_ITEM;\r | |
33 | \r | |
34 | \r | |
35 | typedef struct _EFI_MMIO_DEVICE_PROTOCOL EFI_MMIO_DEVICE_PROTOCOL;\r | |
36 | \r | |
37 | //\r | |
38 | // The MMIO device protocol defines a memory mapped I/O device\r | |
39 | // for use by the system.\r | |
40 | //\r | |
41 | struct _EFI_MMIO_DEVICE_PROTOCOL {\r | |
42 | //\r | |
43 | // Pointer to an ACPI_EXTENDED_HID_DEVICE_PATH structure\r | |
44 | // containing HID/HidStr and CID/CidStr values.\r | |
45 | //\r | |
46 | // See the note below associated with the UnitIdentification\r | |
47 | // field.\r | |
48 | //\r | |
49 | CONST ACPI_EXTENDED_HID_DEVICE_PATH *AcpiPath;\r | |
50 | \r | |
51 | //\r | |
52 | // Allow the use of a shared template for the AcpiPath.\r | |
53 | //\r | |
54 | // If this value is non-zero UID value then the AcpiPath must\r | |
55 | // be a template which contains only the HID/HidStr and CID/CidStr\r | |
56 | // values. The UID/UidStr values in the AcpiPath must be zero!\r | |
57 | //\r | |
58 | // If this value is zero then the AcpiPath is not shared and\r | |
59 | // must contain either a non-zero UID value or a UidStr value.\r | |
60 | //\r | |
61 | UINT32 UnitIdentification;\r | |
62 | \r | |
63 | //\r | |
64 | // Hardware revision - ACPI _HRV value\r | |
65 | //\r | |
66 | UINT32 HardwareRevision;\r | |
67 | \r | |
68 | //\r | |
69 | // Pointer to a data structure containing the controller\r | |
70 | // resources and configuration. At a minimum this points\r | |
71 | // to an EFI_PHYSICAL_ADDRESS for the base address of the\r | |
72 | // MMIO device.\r | |
73 | //\r | |
74 | CONST VOID *DriverResources;\r | |
75 | \r | |
76 | //\r | |
77 | // Number of protocols in the array\r | |
78 | //\r | |
79 | UINTN ProtocolCount;\r | |
80 | \r | |
81 | //\r | |
82 | // List of protocols to define\r | |
83 | //\r | |
84 | CONST EFI_MMIO_DEVICE_PROTOCOL_ITEM *ProtocolArray;\r | |
85 | };\r | |
86 | \r | |
87 | extern EFI_GUID gEfiMmioDeviceProtocolGuid;\r | |
88 | \r | |
89 | #endif // __MMIO_DEVICE_H__\r |