iPXE
efi_path.h
Go to the documentation of this file.
1 #ifndef _IPXE_EFI_PATH_H
2 #define _IPXE_EFI_PATH_H
3 
4 /** @file
5  *
6  * EFI device paths
7  *
8  */
9 
10 FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
11 
12 #include <ipxe/interface.h>
13 #include <ipxe/efi/efi.h>
15 
16 struct net_device;
17 struct uri;
18 struct iscsi_session;
19 struct aoe_device;
20 struct fcp_description;
21 struct ib_srp_device;
22 struct usb_function;
23 
26 extern size_t efi_path_len ( EFI_DEVICE_PATH_PROTOCOL *path );
28  ... );
30 extern EFI_DEVICE_PATH_PROTOCOL * efi_uri_path ( struct uri *uri );
32 efi_iscsi_path ( struct iscsi_session *iscsi );
33 extern EFI_DEVICE_PATH_PROTOCOL * efi_aoe_path ( struct aoe_device *aoedev );
36 efi_ib_srp_path ( struct ib_srp_device *ib_srp );
37 extern EFI_DEVICE_PATH_PROTOCOL * efi_usb_path ( struct usb_function *func );
38 
40 #define efi_describe_TYPE( object_type ) \
41  typeof ( EFI_DEVICE_PATH_PROTOCOL * ( object_type ) )
42 
43 #endif /* _IPXE_EFI_PATH_H */
EFI_DEVICE_PATH_PROTOCOL * efi_iscsi_path(struct iscsi_session *iscsi)
Construct EFI device path for iSCSI device.
Definition: efi_path.c:234
The device path protocol as defined in UEFI 2.0.
EFI_DEVICE_PATH_PROTOCOL * efi_path_end(EFI_DEVICE_PATH_PROTOCOL *path)
Find end of device path.
Definition: efi_path.c:49
An iSCSI session.
Definition: iscsi.h:535
This protocol can be used on any device handle to obtain generic path/location information concerning...
Definition: DevicePath.h:51
size_t efi_path_len(EFI_DEVICE_PATH_PROTOCOL *path)
Find length of device path (excluding terminator)
Definition: efi_path.c:67
EFI_DEVICE_PATH_PROTOCOL * efi_ib_srp_path(struct ib_srp_device *ib_srp)
Construct EFI device path for Infiniband SRP device.
Definition: efi_path.c:378
An AoE device.
Definition: aoe.h:115
EFI_DEVICE_PATH_PROTOCOL * efi_uri_path(struct uri *uri)
Construct EFI device path for URI.
Definition: efi_path.c:195
An object interface.
Definition: interface.h:124
Object interfaces.
static struct net_device * netdev
Definition: gdbudp.c:52
EFI_DEVICE_PATH_PROTOCOL * efi_describe(struct interface *interface)
Describe object as an EFI device path.
Definition: efi_path.c:491
EFI_DEVICE_PATH_PROTOCOL * efi_paths(EFI_DEVICE_PATH_PROTOCOL *first,...)
Concatenate EFI device paths.
Definition: efi_path.c:82
A network device.
Definition: netdevice.h:352
EFI_DEVICE_PATH_PROTOCOL * efi_usb_path(struct usb_function *func)
Construct EFI device path for USB function.
Definition: efi_path.c:435
EFI_DEVICE_PATH_PROTOCOL * efi_aoe_path(struct aoe_device *aoedev)
Construct EFI device path for AoE device.
Definition: efi_path.c:302
An Infiniband SRP device.
Definition: ib_srp.h:75
An FCP device description.
Definition: fcp.h:167
EFI API.
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
EFI_DEVICE_PATH_PROTOCOL * efi_fcp_path(struct fcp_description *desc)
Construct EFI device path for Fibre Channel device.
Definition: efi_path.c:348
EFI_DEVICE_PATH_PROTOCOL * efi_netdev_path(struct net_device *netdev)
Construct EFI device path for network device.
Definition: efi_path.c:133
struct usb_function_descriptor desc
Function descriptor.
Definition: usb.h:665
A Uniform Resource Identifier.
Definition: uri.h:50
A USB function.
Definition: usb.h:659
uint32_t first
Length to skip in first segment.
Definition: pccrc.h:23