diff options
author | Jiri Kosina <jkosina@suse.cz> | 2010-12-22 12:57:02 -0500 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2010-12-22 12:57:02 -0500 |
commit | 4b7bd364700d9ac8372eff48832062b936d0793b (patch) | |
tree | 0dbf78c95456a0b02d07fcd473281f04a87e266d /drivers/scsi/bfa/bfa_fcs.h | |
parent | c0d8768af260e2cbb4bf659ae6094a262c86b085 (diff) | |
parent | 90a8a73c06cc32b609a880d48449d7083327e11a (diff) |
Merge branch 'master' into for-next
Conflicts:
MAINTAINERS
arch/arm/mach-omap2/pm24xx.c
drivers/scsi/bfa/bfa_fcpim.c
Needed to update to apply fixes for which the old branch was too
outdated.
Diffstat (limited to 'drivers/scsi/bfa/bfa_fcs.h')
-rw-r--r-- | drivers/scsi/bfa/bfa_fcs.h | 43 |
1 files changed, 15 insertions, 28 deletions
diff --git a/drivers/scsi/bfa/bfa_fcs.h b/drivers/scsi/bfa/bfa_fcs.h index d75045df1e7e..9cb6a55977c3 100644 --- a/drivers/scsi/bfa/bfa_fcs.h +++ b/drivers/scsi/bfa/bfa_fcs.h | |||
@@ -196,7 +196,7 @@ struct bfa_fcs_fabric_s { | |||
196 | #define bfa_fcs_fabric_is_switched(__f) \ | 196 | #define bfa_fcs_fabric_is_switched(__f) \ |
197 | ((__f)->fab_type == BFA_FCS_FABRIC_SWITCHED) | 197 | ((__f)->fab_type == BFA_FCS_FABRIC_SWITCHED) |
198 | 198 | ||
199 | /** | 199 | /* |
200 | * The design calls for a single implementation of base fabric and vf. | 200 | * The design calls for a single implementation of base fabric and vf. |
201 | */ | 201 | */ |
202 | #define bfa_fcs_vf_t struct bfa_fcs_fabric_s | 202 | #define bfa_fcs_vf_t struct bfa_fcs_fabric_s |
@@ -216,7 +216,7 @@ struct bfa_fcs_fabric_s; | |||
216 | 216 | ||
217 | #define bfa_fcs_lport_t struct bfa_fcs_lport_s | 217 | #define bfa_fcs_lport_t struct bfa_fcs_lport_s |
218 | 218 | ||
219 | /** | 219 | /* |
220 | * Symbolic Name related defines | 220 | * Symbolic Name related defines |
221 | * Total bytes 255. | 221 | * Total bytes 255. |
222 | * Physical Port's symbolic name 128 bytes. | 222 | * Physical Port's symbolic name 128 bytes. |
@@ -239,7 +239,7 @@ struct bfa_fcs_fabric_s; | |||
239 | #define BFA_FCS_PORT_SYMBNAME_OSINFO_SZ 48 | 239 | #define BFA_FCS_PORT_SYMBNAME_OSINFO_SZ 48 |
240 | #define BFA_FCS_PORT_SYMBNAME_OSPATCH_SZ 16 | 240 | #define BFA_FCS_PORT_SYMBNAME_OSPATCH_SZ 16 |
241 | 241 | ||
242 | /** | 242 | /* |
243 | * Get FC port ID for a logical port. | 243 | * Get FC port ID for a logical port. |
244 | */ | 244 | */ |
245 | #define bfa_fcs_lport_get_fcid(_lport) ((_lport)->pid) | 245 | #define bfa_fcs_lport_get_fcid(_lport) ((_lport)->pid) |
@@ -262,7 +262,7 @@ bfa_fcs_lport_get_drvport(struct bfa_fcs_lport_s *port) | |||
262 | #define bfa_fcs_lport_get_fabric_ipaddr(_lport) \ | 262 | #define bfa_fcs_lport_get_fabric_ipaddr(_lport) \ |
263 | ((_lport)->fabric->fabric_ip_addr) | 263 | ((_lport)->fabric->fabric_ip_addr) |
264 | 264 | ||
265 | /** | 265 | /* |
266 | * bfa fcs port public functions | 266 | * bfa fcs port public functions |
267 | */ | 267 | */ |
268 | 268 | ||
@@ -342,7 +342,7 @@ struct bfa_fcs_vport_s { | |||
342 | #define bfa_fcs_vport_get_port(vport) \ | 342 | #define bfa_fcs_vport_get_port(vport) \ |
343 | ((struct bfa_fcs_lport_s *)(&vport->port)) | 343 | ((struct bfa_fcs_lport_s *)(&vport->port)) |
344 | 344 | ||
345 | /** | 345 | /* |
346 | * bfa fcs vport public functions | 346 | * bfa fcs vport public functions |
347 | */ | 347 | */ |
348 | bfa_status_t bfa_fcs_vport_create(struct bfa_fcs_vport_s *vport, | 348 | bfa_status_t bfa_fcs_vport_create(struct bfa_fcs_vport_s *vport, |
@@ -393,7 +393,7 @@ struct bfa_fcs_rpf_s { | |||
393 | enum bfa_port_speed rpsc_speed; | 393 | enum bfa_port_speed rpsc_speed; |
394 | /* Current Speed from RPSC. O if RPSC fails */ | 394 | /* Current Speed from RPSC. O if RPSC fails */ |
395 | enum bfa_port_speed assigned_speed; | 395 | enum bfa_port_speed assigned_speed; |
396 | /** | 396 | /* |
397 | * Speed assigned by the user. will be used if RPSC is | 397 | * Speed assigned by the user. will be used if RPSC is |
398 | * not supported by the rport. | 398 | * not supported by the rport. |
399 | */ | 399 | */ |
@@ -434,7 +434,7 @@ bfa_fcs_rport_get_halrport(struct bfa_fcs_rport_s *rport) | |||
434 | return rport->bfa_rport; | 434 | return rport->bfa_rport; |
435 | } | 435 | } |
436 | 436 | ||
437 | /** | 437 | /* |
438 | * bfa fcs rport API functions | 438 | * bfa fcs rport API functions |
439 | */ | 439 | */ |
440 | bfa_status_t bfa_fcs_rport_add(struct bfa_fcs_lport_s *port, wwn_t *pwwn, | 440 | bfa_status_t bfa_fcs_rport_add(struct bfa_fcs_lport_s *port, wwn_t *pwwn, |
@@ -573,7 +573,7 @@ bfa_fcs_itnim_get_halitn(struct bfa_fcs_itnim_s *itnim) | |||
573 | return itnim->bfa_itnim; | 573 | return itnim->bfa_itnim; |
574 | } | 574 | } |
575 | 575 | ||
576 | /** | 576 | /* |
577 | * bfa fcs FCP Initiator mode API functions | 577 | * bfa fcs FCP Initiator mode API functions |
578 | */ | 578 | */ |
579 | void bfa_fcs_itnim_get_attr(struct bfa_fcs_itnim_s *itnim, | 579 | void bfa_fcs_itnim_get_attr(struct bfa_fcs_itnim_s *itnim, |
@@ -677,22 +677,9 @@ void bfa_fcs_exit(struct bfa_fcs_s *fcs); | |||
677 | void bfa_fcs_trc_init(struct bfa_fcs_s *fcs, struct bfa_trc_mod_s *trcmod); | 677 | void bfa_fcs_trc_init(struct bfa_fcs_s *fcs, struct bfa_trc_mod_s *trcmod); |
678 | void bfa_fcs_start(struct bfa_fcs_s *fcs); | 678 | void bfa_fcs_start(struct bfa_fcs_s *fcs); |
679 | 679 | ||
680 | /** | 680 | /* |
681 | * bfa fcs vf public functions | 681 | * bfa fcs vf public functions |
682 | */ | 682 | */ |
683 | bfa_status_t bfa_fcs_vf_mode_enable(struct bfa_fcs_s *fcs, u16 vf_id); | ||
684 | bfa_status_t bfa_fcs_vf_mode_disable(struct bfa_fcs_s *fcs); | ||
685 | bfa_status_t bfa_fcs_vf_create(bfa_fcs_vf_t *vf, struct bfa_fcs_s *fcs, | ||
686 | u16 vf_id, struct bfa_lport_cfg_s *port_cfg, | ||
687 | struct bfad_vf_s *vf_drv); | ||
688 | bfa_status_t bfa_fcs_vf_delete(bfa_fcs_vf_t *vf); | ||
689 | void bfa_fcs_vf_list(struct bfa_fcs_s *fcs, u16 *vf_ids, int *nvfs); | ||
690 | void bfa_fcs_vf_list_all(struct bfa_fcs_s *fcs, u16 *vf_ids, int *nvfs); | ||
691 | void bfa_fcs_vf_get_attr(bfa_fcs_vf_t *vf, struct bfa_vf_attr_s *vf_attr); | ||
692 | void bfa_fcs_vf_get_stats(bfa_fcs_vf_t *vf, | ||
693 | struct bfa_vf_stats_s *vf_stats); | ||
694 | void bfa_fcs_vf_clear_stats(bfa_fcs_vf_t *vf); | ||
695 | void bfa_fcs_vf_get_ports(bfa_fcs_vf_t *vf, wwn_t vpwwn[], int *nports); | ||
696 | bfa_fcs_vf_t *bfa_fcs_vf_lookup(struct bfa_fcs_s *fcs, u16 vf_id); | 683 | bfa_fcs_vf_t *bfa_fcs_vf_lookup(struct bfa_fcs_s *fcs, u16 vf_id); |
697 | u16 bfa_fcs_fabric_vport_count(struct bfa_fcs_fabric_s *fabric); | 684 | u16 bfa_fcs_fabric_vport_count(struct bfa_fcs_fabric_s *fabric); |
698 | 685 | ||
@@ -729,11 +716,11 @@ u16 bfa_fcs_fabric_get_switch_oui(struct bfa_fcs_fabric_s *fabric); | |||
729 | void bfa_fcs_uf_attach(struct bfa_fcs_s *fcs); | 716 | void bfa_fcs_uf_attach(struct bfa_fcs_s *fcs); |
730 | void bfa_fcs_port_attach(struct bfa_fcs_s *fcs); | 717 | void bfa_fcs_port_attach(struct bfa_fcs_s *fcs); |
731 | 718 | ||
732 | /** | 719 | /* |
733 | * BFA FCS callback interfaces | 720 | * BFA FCS callback interfaces |
734 | */ | 721 | */ |
735 | 722 | ||
736 | /** | 723 | /* |
737 | * fcb Main fcs callbacks | 724 | * fcb Main fcs callbacks |
738 | */ | 725 | */ |
739 | 726 | ||
@@ -742,7 +729,7 @@ struct bfad_vf_s; | |||
742 | struct bfad_vport_s; | 729 | struct bfad_vport_s; |
743 | struct bfad_rport_s; | 730 | struct bfad_rport_s; |
744 | 731 | ||
745 | /** | 732 | /* |
746 | * lport callbacks | 733 | * lport callbacks |
747 | */ | 734 | */ |
748 | struct bfad_port_s *bfa_fcb_lport_new(struct bfad_s *bfad, | 735 | struct bfad_port_s *bfa_fcb_lport_new(struct bfad_s *bfad, |
@@ -754,19 +741,19 @@ void bfa_fcb_lport_delete(struct bfad_s *bfad, enum bfa_lport_role roles, | |||
754 | struct bfad_vf_s *vf_drv, | 741 | struct bfad_vf_s *vf_drv, |
755 | struct bfad_vport_s *vp_drv); | 742 | struct bfad_vport_s *vp_drv); |
756 | 743 | ||
757 | /** | 744 | /* |
758 | * vport callbacks | 745 | * vport callbacks |
759 | */ | 746 | */ |
760 | void bfa_fcb_pbc_vport_create(struct bfad_s *bfad, struct bfi_pbc_vport_s); | 747 | void bfa_fcb_pbc_vport_create(struct bfad_s *bfad, struct bfi_pbc_vport_s); |
761 | 748 | ||
762 | /** | 749 | /* |
763 | * rport callbacks | 750 | * rport callbacks |
764 | */ | 751 | */ |
765 | bfa_status_t bfa_fcb_rport_alloc(struct bfad_s *bfad, | 752 | bfa_status_t bfa_fcb_rport_alloc(struct bfad_s *bfad, |
766 | struct bfa_fcs_rport_s **rport, | 753 | struct bfa_fcs_rport_s **rport, |
767 | struct bfad_rport_s **rport_drv); | 754 | struct bfad_rport_s **rport_drv); |
768 | 755 | ||
769 | /** | 756 | /* |
770 | * itnim callbacks | 757 | * itnim callbacks |
771 | */ | 758 | */ |
772 | void bfa_fcb_itnim_alloc(struct bfad_s *bfad, struct bfa_fcs_itnim_s **itnim, | 759 | void bfa_fcb_itnim_alloc(struct bfad_s *bfad, struct bfa_fcs_itnim_s **itnim, |