/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
*/
#ifndef _LIBUEFI_RT_PATH_IMPL_H_
#define _LIBUEFI_RT_PATH_IMPL_H_
#ifdef __cplusplus
extern "C" {
#endif
/*
* Private definitions for UEFI run time path library interfaces.
*/
/*
* uefi_device_path_t type definitions
*/
/*
* subtypes
*/
/*
* signature type in hard drive media path
*/
/*
* partition type in hard drive media path
*/
/*
* Generic structure header for device path that gives the length
* of the specific structure. Specific structures contain the
* same first 3 fields.
*/
typedef struct uefi_device_path {
typedef char *uefirt_bootopt_buff_t;
typedef struct uefi_file_path {
typedef struct uefi_pci_device_path {
typedef struct uefi_ctrl_device_path {
#pragma pack(1)
typedef struct uefi_hard_drive_path {
typedef struct uefi_scsi_device_path {
typedef struct uefi_atapi_device_path {
typedef struct uefi_fibre_device_path {
typedef struct uefi_usb_device_path {
typedef struct uefi_sata_device_path {
typedef struct uefi_acpi_device_path {
typedef struct uefi_bios_device_path {
char desc_str[];
typedef struct uefi_macaddr_device_path {
typedef struct uefi_acpie_device_path {
/*
* Combined _HIDSTR, _UIDSTR, _CIDStr. Each string is NULL-terminated
* even if not present.
*/
char id_str[];
#pragma pack()
/*
* Corresponds to the data elements needed to construct
* a firmware Boot#### property according to section 3.1.3
* of the UEFI spec. The actual in firmware property format cannot be
* represented by a C structure. But this is used to represent
* that data in the library.
*/
typedef struct uefi_load_option {
void *optdata;
typedef struct uefi_lib_impl {
void **memlist_addr;
int uefirt_fd;
if (uefirt_path_eprint == -1) { \
if (getenv("UEFIRT_PATH_EPRINT")) { \
uefirt_path_eprint = 1; \
} else { \
uefirt_path_eprint = 0; \
} \
} \
if (uefirt_path_eprint) { \
}
if (uefirt_path_debug == -1) { \
if (getenv("UEFIRT_PATH_DEBUG")) { \
uefirt_path_debug = 1; \
} else { \
uefirt_path_debug = 0; \
} \
} \
if (uefirt_path_debug) { \
}
#ifdef __cplusplus
}
#endif
#endif /* _LIBUEFI_RT_PATH_IMPL_H_ */