1 /** @file 2 Misc class required EFI Device Path definitions (Ports, slots & 3 onboard devices) 4 5 Copyright (c) 2013-2015 Intel Corporation. 6 7 This program and the accompanying materials 8 are licensed and made available under the terms and conditions of the BSD License 9 which accompanies this distribution. The full text of the license may be found at 10 http://opensource.org/licenses/bsd-license.php 11 12 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, 13 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. 14 15 16 **/ 17 18 #ifndef _MISC_DEVICE_PATH_H 19 #define _MISC_DEVICE_PATH_H 20 21 #pragma pack(1) 22 23 //USB 24 /* For reference: 25 #define USB1_1_STR "ACPI(PNP0A03,0)/PCI(1D,0)." 26 #define USB1_2_STR "ACPI(PNP0A03,0)/PCI(1D,1)." 27 #define USB1_3_STR "ACPI(PNP0A03,0)/PCI(1D,2)." 28 #define USB2_1_STR "ACPI(PNP0A03,0)/PCI(1D,7)." 29 */ 30 31 #define DP_ACPI { ACPI_DEVICE_PATH,\ 32 ACPI_DP, (UINT8) (sizeof (ACPI_HID_DEVICE_PATH)),\ 33 (UINT8) ((sizeof (ACPI_HID_DEVICE_PATH)) >> 8), EISA_PNP_ID(0x0A03), 0 } 34 #define DP_PCI( device,function) { HARDWARE_DEVICE_PATH,\ 35 HW_PCI_DP, (UINT8) (sizeof (PCI_DEVICE_PATH)),\ 36 (UINT8) ((sizeof (PCI_DEVICE_PATH)) >> 8), function, device } 37 #define DP_END { END_DEVICE_PATH_TYPE, \ 38 END_ENTIRE_DEVICE_PATH_SUBTYPE, {END_DEVICE_PATH_LENGTH, 0 }} 39 40 #define DP_LPC(eisaid,function ){ ACPI_DEVICE_PATH, \ 41 ACPI_DP,(UINT8) (sizeof (ACPI_HID_DEVICE_PATH)),\ 42 (UINT8) ((sizeof (ACPI_HID_DEVICE_PATH)) >> 8),EISA_PNP_ID(eisaid), function } 43 44 45 #pragma pack() 46 47 48 #endif 49