diff options
author | Neerav Parikh <neerav.parikh@intel.com> | 2012-01-22 20:29:50 -0500 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2012-02-19 09:08:57 -0500 |
commit | bb8ef587a715c6a084f80b9c311136aa765ebfad (patch) | |
tree | d698fe51340daabf798e94550e7b20b90decf1fc /include/scsi/scsi_transport_fc.h | |
parent | 263d9401a332ccec8945841dbc57707dcba1ec7d (diff) |
[SCSI] scsi_transport_fc: Add FDMI host attributes
This adds FC-GS Fabric Device Management Interface
(FDMI) related attributes to fc_host_attr structure.
This is in preparation for allowing FDMI attributes
to be registered via libfc.
Signed-off-by: Neerav Parikh <neerav.parikh@intel.com>
Tested-by: Ross Brattain <ross.b.brattain@intel.com>
Acked-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'include/scsi/scsi_transport_fc.h')
-rw-r--r-- | include/scsi/scsi_transport_fc.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/include/scsi/scsi_transport_fc.h b/include/scsi/scsi_transport_fc.h index 2a65167a8f10..0135cbc08089 100644 --- a/include/scsi/scsi_transport_fc.h +++ b/include/scsi/scsi_transport_fc.h | |||
@@ -486,6 +486,13 @@ struct fc_host_attrs { | |||
486 | u32 maxframe_size; | 486 | u32 maxframe_size; |
487 | u16 max_npiv_vports; | 487 | u16 max_npiv_vports; |
488 | char serial_number[FC_SERIAL_NUMBER_SIZE]; | 488 | char serial_number[FC_SERIAL_NUMBER_SIZE]; |
489 | char manufacturer[FC_SERIAL_NUMBER_SIZE]; | ||
490 | char model[FC_SYMBOLIC_NAME_SIZE]; | ||
491 | char model_description[FC_SYMBOLIC_NAME_SIZE]; | ||
492 | char hardware_version[FC_VERSION_STRING_SIZE]; | ||
493 | char driver_version[FC_VERSION_STRING_SIZE]; | ||
494 | char firmware_version[FC_VERSION_STRING_SIZE]; | ||
495 | char optionrom_version[FC_VERSION_STRING_SIZE]; | ||
489 | 496 | ||
490 | /* Dynamic Attributes */ | 497 | /* Dynamic Attributes */ |
491 | u32 port_id; | 498 | u32 port_id; |
@@ -541,6 +548,20 @@ struct fc_host_attrs { | |||
541 | (((struct fc_host_attrs *)(x)->shost_data)->max_npiv_vports) | 548 | (((struct fc_host_attrs *)(x)->shost_data)->max_npiv_vports) |
542 | #define fc_host_serial_number(x) \ | 549 | #define fc_host_serial_number(x) \ |
543 | (((struct fc_host_attrs *)(x)->shost_data)->serial_number) | 550 | (((struct fc_host_attrs *)(x)->shost_data)->serial_number) |
551 | #define fc_host_manufacturer(x) \ | ||
552 | (((struct fc_host_attrs *)(x)->shost_data)->manufacturer) | ||
553 | #define fc_host_model(x) \ | ||
554 | (((struct fc_host_attrs *)(x)->shost_data)->model) | ||
555 | #define fc_host_model_description(x) \ | ||
556 | (((struct fc_host_attrs *)(x)->shost_data)->model_description) | ||
557 | #define fc_host_hardware_version(x) \ | ||
558 | (((struct fc_host_attrs *)(x)->shost_data)->hardware_version) | ||
559 | #define fc_host_driver_version(x) \ | ||
560 | (((struct fc_host_attrs *)(x)->shost_data)->driver_version) | ||
561 | #define fc_host_firmware_version(x) \ | ||
562 | (((struct fc_host_attrs *)(x)->shost_data)->firmware_version) | ||
563 | #define fc_host_optionrom_version(x) \ | ||
564 | (((struct fc_host_attrs *)(x)->shost_data)->optionrom_version) | ||
544 | #define fc_host_port_id(x) \ | 565 | #define fc_host_port_id(x) \ |
545 | (((struct fc_host_attrs *)(x)->shost_data)->port_id) | 566 | (((struct fc_host_attrs *)(x)->shost_data)->port_id) |
546 | #define fc_host_port_type(x) \ | 567 | #define fc_host_port_type(x) \ |
@@ -700,6 +721,13 @@ struct fc_function_template { | |||
700 | unsigned long show_host_supported_speeds:1; | 721 | unsigned long show_host_supported_speeds:1; |
701 | unsigned long show_host_maxframe_size:1; | 722 | unsigned long show_host_maxframe_size:1; |
702 | unsigned long show_host_serial_number:1; | 723 | unsigned long show_host_serial_number:1; |
724 | unsigned long show_host_manufacturer:1; | ||
725 | unsigned long show_host_model:1; | ||
726 | unsigned long show_host_model_description:1; | ||
727 | unsigned long show_host_hardware_version:1; | ||
728 | unsigned long show_host_driver_version:1; | ||
729 | unsigned long show_host_firmware_version:1; | ||
730 | unsigned long show_host_optionrom_version:1; | ||
703 | /* host dynamic attributes */ | 731 | /* host dynamic attributes */ |
704 | unsigned long show_host_port_id:1; | 732 | unsigned long show_host_port_id:1; |
705 | unsigned long show_host_port_type:1; | 733 | unsigned long show_host_port_type:1; |