[fcp] Allow Fibre Channel device to be described using an EFI device path

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2020-10-22 14:01:27 +01:00
parent e6f9054d13
commit bf051a76ee
4 changed files with 61 additions and 8 deletions
+2
View File
@@ -17,6 +17,7 @@ struct net_device;
struct uri;
struct iscsi_session;
struct aoe_device;
struct fcp_description;
struct usb_function;
extern EFI_DEVICE_PATH_PROTOCOL *
@@ -29,6 +30,7 @@ extern EFI_DEVICE_PATH_PROTOCOL * efi_uri_path ( struct uri *uri );
extern EFI_DEVICE_PATH_PROTOCOL *
efi_iscsi_path ( struct iscsi_session *iscsi );
extern EFI_DEVICE_PATH_PROTOCOL * efi_aoe_path ( struct aoe_device *aoedev );
extern EFI_DEVICE_PATH_PROTOCOL * efi_fcp_path ( struct fcp_description *desc );
extern EFI_DEVICE_PATH_PROTOCOL * efi_usb_path ( struct usb_function *func );
extern EFI_DEVICE_PATH_PROTOCOL * efi_describe ( struct interface *interface );
+8
View File
@@ -163,4 +163,12 @@ struct fcp_prli_service_parameters {
/** Enhanced discovery supported */
#define FCP_PRLI_ENH_DISC 0x0800
/** An FCP device description */
struct fcp_description {
/** Fibre Channel WWN */
struct fc_name wwn;
/** SCSI LUN */
struct scsi_lun lun;
};
#endif /* _IPXE_FCP_H */