aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/bfa/bfa_fcxp.c
diff options
context:
space:
mode:
authorJing Huang <huangj@brocade.com>2010-07-08 22:45:56 -0400
committerJames Bottomley <James.Bottomley@suse.de>2010-07-27 13:04:04 -0400
commited96932470e4ca3aab29518a748dc1162853b456 (patch)
tree7585615e2cd952edbbd7c1bec1e414c699656ff3 /drivers/scsi/bfa/bfa_fcxp.c
parent293f82d59ed8b6d61d242e40ee7a6a146fae5eaa (diff)
[SCSI] bfa: enable basic PBC support
The patch includes the driver side changes to enable basic PBC (PreBoot Configuration) feature. - Data structure changes and new definitions for PBC. - APIs to access PBC info. - Remove unused code. Signed-off-by: Jing Huang <huangj@brocade.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/bfa/bfa_fcxp.c')
-rw-r--r--drivers/scsi/bfa/bfa_fcxp.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/drivers/scsi/bfa/bfa_fcxp.c b/drivers/scsi/bfa/bfa_fcxp.c
index cf0ad6782686..8258f88bfee6 100644
--- a/drivers/scsi/bfa/bfa_fcxp.c
+++ b/drivers/scsi/bfa/bfa_fcxp.c
@@ -149,11 +149,6 @@ bfa_fcxp_attach(struct bfa_s *bfa, void *bfad, struct bfa_iocfc_cfg_s *cfg,
149} 149}
150 150
151static void 151static void
152bfa_fcxp_initdone(struct bfa_s *bfa)
153{
154}
155
156static void
157bfa_fcxp_detach(struct bfa_s *bfa) 152bfa_fcxp_detach(struct bfa_s *bfa)
158{ 153{
159} 154}
@@ -225,7 +220,7 @@ bfa_fcxp_null_comp(void *bfad_fcxp, struct bfa_fcxp_s *fcxp, void *cbarg,
225 bfa_status_t req_status, u32 rsp_len, 220 bfa_status_t req_status, u32 rsp_len,
226 u32 resid_len, struct fchs_s *rsp_fchs) 221 u32 resid_len, struct fchs_s *rsp_fchs)
227{ 222{
228 /**discarded fcxp completion */ 223 /* discarded fcxp completion */
229} 224}
230 225
231static void 226static void
@@ -527,11 +522,8 @@ bfa_fcxp_alloc(void *caller, struct bfa_s *bfa, int nreq_sgles,
527 if (nreq_sgles > BFI_SGE_INLINE) { 522 if (nreq_sgles > BFI_SGE_INLINE) {
528 nreq_sgpg = BFA_SGPG_NPAGE(nreq_sgles); 523 nreq_sgpg = BFA_SGPG_NPAGE(nreq_sgles);
529 524
530 if (bfa_sgpg_malloc 525 if (bfa_sgpg_malloc(bfa, &fcxp->req_sgpg_q, nreq_sgpg)
531 (bfa, &fcxp->req_sgpg_q, nreq_sgpg)
532 != BFA_STATUS_OK) { 526 != BFA_STATUS_OK) {
533 /* bfa_sgpg_wait(bfa, &fcxp->req_sgpg_wqe,
534 nreq_sgpg); */
535 /* 527 /*
536 * TODO 528 * TODO
537 */ 529 */
@@ -685,7 +677,7 @@ bfa_fcxp_send(struct bfa_fcxp_s *fcxp, struct bfa_rport_s *rport,
685 fcxp->send_cbarg = cbarg; 677 fcxp->send_cbarg = cbarg;
686 678
687 /** 679 /**
688 * If no room in CPE queue, wait for 680 * If no room in CPE queue, wait for space in request queue
689 */ 681 */
690 send_req = bfa_reqq_next(bfa, BFA_REQQ_FCXP); 682 send_req = bfa_reqq_next(bfa, BFA_REQQ_FCXP);
691 if (!send_req) { 683 if (!send_req) {