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