Unix version of EFI emulator
[mirror_edk2.git] / EdkUnixPkg / Dxe / UnixPlatform / MiscSubclass / MiscDevicePath.h
CommitLineData
c9093a06 1/*++\r
2 \r
3Copyright (c) 2006, Intel Corporation \r
4All rights reserved. This program and the accompanying materials \r
5are licensed and made available under the terms and conditions of the BSD License \r
6which accompanies this distribution. The full text of the license may be found at \r
7http://opensource.org/licenses/bsd-license.php \r
8 \r
9THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
10WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
11\r
12Module Name:\r
13\r
14 MiscDevicePath.h\r
15\r
16Abstract:\r
17\r
18 Misc class required EFI Device Path definitions (Ports, slots & \r
19 onboard devices)\r
20\r
21--*/\r
22\r
23#ifndef _MISC_DEVICE_PATH_H\r
24#define _MISC_DEVICE_PATH_H\r
25\r
26\r
27#pragma pack(1)\r
28//\r
29// USB\r
30//\r
31\r
32/* For reference:\r
33#define USB1_1_STR "ACPI(PNP0A03,0)/PCI(1D,0)."\r
34#define USB1_2_STR "ACPI(PNP0A03,0)/PCI(1D,1)."\r
35#define USB1_3_STR "ACPI(PNP0A03,0)/PCI(1D,2)."\r
36#define USB2_1_STR "ACPI(PNP0A03,0)/PCI(1D,7)." \r
37*/\r
38\r
39//\r
40// #define acpi { 0x02, 0x01, 0x00, 0x0C, 0x0a0341d0, 0x00000000 }\r
41// #define pci( device,function) { 0x01, 0x01, 0x00, 0x06, device, function }\r
42// #define end { 0xFF, 0xFF, 0x00, 0x04 }\r
43//\r
44#define DP_ACPI \\r
45 { \\r
46 ACPI_DEVICE_PATH, ACPI_DP, (UINT8) (sizeof (ACPI_HID_DEVICE_PATH)), (UINT8) \\r
47 ((sizeof (ACPI_HID_DEVICE_PATH)) >> 8), EISA_PNP_ID (0x0A03), 0 \\r
48 }\r
49#define DP_PCI(device, function) \\r
50 { \\r
51 HARDWARE_DEVICE_PATH, HW_PCI_DP, (UINT8) (sizeof (PCI_DEVICE_PATH)), (UINT8) \\r
52 ((sizeof (PCI_DEVICE_PATH)) >> 8), function, device \\r
53 }\r
54#define DP_END \\r
55 { \\r
56 END_DEVICE_PATH_TYPE, END_ENTIRE_DEVICE_PATH_SUBTYPE, END_DEVICE_PATH_LENGTH, 0 \\r
57 }\r
58\r
59#define DP_LPC(eisaid, function) \\r
60 { \\r
61 ACPI_DEVICE_PATH, ACPI_DP, (UINT8) (sizeof (ACPI_HID_DEVICE_PATH)), (UINT8) \\r
62 ((sizeof (ACPI_HID_DEVICE_PATH)) >> 8), EISA_PNP_ID (eisaid), function \\r
63 }\r
64\r
65//\r
66// Shanmu >> moved to TianoDevicePath.h\r
67//\r
68\r
69/*\r
70typedef struct _USB_PORT_DEVICE_PATH\r
71{\r
72 ACPI_HID_DEVICE_PATH PciRootBridgeDevicePath;\r
73 PCI_DEVICE_PATH PciBusDevicePath;\r
74 EFI_DEVICE_PATH_PROTOCOL EndDevicePath;\r
75} USB_PORT_DEVICE_PATH;\r
76\r
77\r
78//IDE ??I am not sure. Should this be ATAPI_DEVICE_PATH\r
79typedef struct _IDE_DEVICE_PATH\r
80{\r
81 ACPI_HID_DEVICE_PATH PciRootBridgeDevicePath;\r
82 PCI_DEVICE_PATH PciBusDevicePath;\r
83 EFI_DEVICE_PATH_PROTOCOL EndDevicePath;\r
84} IDE_DEVICE_PATH;\r
85\r
86//RMC Connector\r
87typedef struct _RMC_CONN_DEVICE_PATH\r
88{\r
89 ACPI_HID_DEVICE_PATH PciRootBridgeDevicePath;\r
90 PCI_DEVICE_PATH PciBridgeDevicePath;\r
91 PCI_DEVICE_PATH PciBusDevicePath;\r
92 EFI_DEVICE_PATH_PROTOCOL EndDevicePath;\r
93} RMC_CONN_DEVICE_PATH;\r
94\r
95//static RMC_CONN_DEVICE_PATH mRmcConnDevicePath = { acpi, pci( 0x1E,0x00 ),pci( 0x0A,0x00 ), end };\r
96\r
97//RIDE\r
98typedef struct _RIDE_DEVICE_PATH\r
99{\r
100 ACPI_HID_DEVICE_PATH PciRootBridgeDevicePath;\r
101 PCI_DEVICE_PATH PciBridgeDevicePath;\r
102 PCI_DEVICE_PATH PciBusDevicePath;\r
103 EFI_DEVICE_PATH_PROTOCOL EndDevicePath;\r
104} RIDE_DEVICE_PATH;\r
105\r
106//static RIDE_DEVICE_PATH mRideDevicePath = { acpi, pci( 0x1E,0x00 ),pci( 0x02,0x00 ), end };\r
107\r
108//Gigabit NIC\r
109//typedef struct _GB_NIC_DEVICE_PATH\r
110//{\r
111// ACPI_HID_DEVICE_PATH PciRootBridgeDevicePath;\r
112// PCI_DEVICE_PATH PciBridgeDevicePath;\r
113// PCI_DEVICE_PATH PciXBridgeDevicePath;\r
114// PCI_DEVICE_PATH PciXBusDevicePath;\r
115// EFI_DEVICE_PATH_PROTOCOL EndDevicePath;\r
116//} GB_NIC_DEVICE_PATH;\r
117\r
118//static GB_NIC_DEVICE_PATH mGbNicDevicePath = { acpi, pci( 0x03,0x00 ),pci( 0x1F,0x00 ),pci( 0x07,0x00 ), end };\r
119\r
120\r
121//P/S2 Connector\r
122typedef struct _PS2_CONN_DEVICE_PATH\r
123{\r
124 ACPI_HID_DEVICE_PATH PciRootBridgeDevicePath;\r
125 PCI_DEVICE_PATH LpcBridgeDevicePath;\r
126 ACPI_HID_DEVICE_PATH LpcBusDevicePath;\r
127 EFI_DEVICE_PATH_PROTOCOL EndDevicePath;\r
128} PS2_CONN_DEVICE_PATH;\r
129\r
130//static PS2_CONN_DEVICE_PATH mPs2KeyboardDevicePath = { acpi, pci( 0x1F,0x00 ),lpc( 0x0303,0 ), end };\r
131//static PS2_CONN_DEVICE_PATH mPs2MouseDevicePath = { acpi, pci( 0x1F,0x00 ),lpc( 0x0303,1 ), end };\r
132\r
133//Serial Port Connector\r
134typedef struct _SERIAL_CONN_DEVICE_PATH\r
135{\r
136 ACPI_HID_DEVICE_PATH PciRootBridgeDevicePath;\r
137 PCI_DEVICE_PATH LpcBridgeDevicePath;\r
138 ACPI_HID_DEVICE_PATH LpcBusDevicePath;\r
139 EFI_DEVICE_PATH_PROTOCOL EndDevicePath;\r
140} SERIAL_CONN_DEVICE_PATH;\r
141\r
142//static SERIAL_CONN_DEVICE_PATH mCom1DevicePath = { acpi, pci( 0x1F,0x00 ),lpc( 0x0501,0 ), end };\r
143//static SERIAL_CONN_DEVICE_PATH mCom2DevicePath = { acpi, pci( 0x1F,0x00 ),lpc( 0x0501,1 ), end };\r
144\r
145//Parallel Port Connector\r
146typedef struct _PARALLEL_CONN_DEVICE_PATH\r
147{\r
148 ACPI_HID_DEVICE_PATH PciRootBridgeDevicePath;\r
149 PCI_DEVICE_PATH LpcBridgeDevicePath;\r
150 ACPI_HID_DEVICE_PATH LpcBusDevicePath;\r
151 EFI_DEVICE_PATH_PROTOCOL EndDevicePath;\r
152} PARALLEL_CONN_DEVICE_PATH;\r
153\r
154//static PARALLEL_CONN_DEVICE_PATH mLpt1DevicePath = { acpi, pci( 0x1F,0x00 ),lpc( 0x0401,0 ), end };\r
155\r
156//Floopy Connector\r
157typedef struct _FLOOPY_CONN_DEVICE_PATH\r
158{\r
159 ACPI_HID_DEVICE_PATH PciRootBridgeDevicePath;\r
160 PCI_DEVICE_PATH LpcBridgeDevicePath;\r
161 ACPI_HID_DEVICE_PATH LpcBusDevicePath;\r
162 EFI_DEVICE_PATH_PROTOCOL EndDevicePath;\r
163} FLOOPY_CONN_DEVICE_PATH;\r
164\r
165//static FLOOPY_CONN_DEVICE_PATH mFloopyADevicePath = { acpi, pci( 0x1F,0x00 ),lpc( 0x0604,0 ), end };\r
166//static FLOOPY_CONN_DEVICE_PATH mFloopyBDevicePath = { acpi, pci( 0x1F,0x00 ),lpc( 0x0604,1 ), end };\r
167\r
168*/\r
169\r
170//\r
171// End Shanmu\r
172//\r
173#pragma pack()\r
174\r
175#endif\r