]> git.proxmox.com Git - mirror_edk2.git/blame - EmbeddedPkg/Include/Protocol/EmbeddedDevice.h
Updated to support passing PE/COFF and LZMA decompress up via HOBS. Currently turned...
[mirror_edk2.git] / EmbeddedPkg / Include / Protocol / EmbeddedDevice.h
CommitLineData
2ef2b01e
A
1/** @file\r
2 Deal with devices that just exist in memory space.\r
3 \r
4 To follow the EFI driver model you need a root handle to start with. An\r
5 EFI driver will have a driver binding protocol (Supported, Start, Stop) \r
6 that is used to layer on top of a handle via a gBS->ConnectController. \r
7 The first handle has to just be in the system to make that work. For\r
8 PCI it is a PCI Root Bridge IO protocol that provides the root. \r
9 \r
10 On an embedded system with MMIO device we need a handle to just \r
11 show up. That handle will have this protocol and a device path \r
12 protocol on it. \r
13 \r
14 For an ethernet device the device path must contain a MAC address device path\r
15 node.\r
16\r
17 Copyright (c) 2008-2009 Apple Inc. All rights reserved.<BR>\r
18\r
19 All rights reserved. This program and the accompanying materials\r
20 are licensed and made available under the terms and conditions of the BSD License\r
21 which accompanies this distribution. The full text of the license may be found at\r
22 http://opensource.org/licenses/bsd-license.php\r
23\r
24 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
25 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
26\r
27**/\r
28\r
29#ifndef __EMBEDDED_DEVICE_PROTOCOL_H__\r
30#define __EMBEDDED_DEVICE_PROTOCOL_H__\r
31\r
32\r
33//\r
34// Protocol GUID\r
35//\r
36// BF4B9D10-13EC-43dd-8880-E90B718F27DE\r
37\r
38#define EMBEDDED_DEVICE_PROTOCOL_GUID \\r
39 { 0xbf4b9d10, 0x13ec, 0x43dd, { 0x88, 0x80, 0xe9, 0xb, 0x71, 0x8f, 0x27, 0xde } }\r
40\r
41\r
42\r
43typedef struct {\r
44 UINT16 VendorId;\r
45 UINT16 DeviceId;\r
46 UINT16 RevisionId;\r
47 UINT16 SubsystemId;\r
48 UINT16 SubsystemVendorId;\r
49 UINT8 ClassCode[3];\r
50 UINT8 HeaderSize;\r
51 UINTN BaseAddress;\r
52} EMBEDDED_DEVICE_PROTOCOL;\r
53\r
54extern EFI_GUID gEmbeddedDeviceGuid;\r
55\r
56#endif\r
57\r
58\r