diff options
Diffstat (limited to 'drivers/scsi/bfa/bfa_core.c')
-rw-r--r-- | drivers/scsi/bfa/bfa_core.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/scsi/bfa/bfa_core.c b/drivers/scsi/bfa/bfa_core.c index ec9872484711..3ba73faf3713 100644 --- a/drivers/scsi/bfa/bfa_core.c +++ b/drivers/scsi/bfa/bfa_core.c | |||
@@ -122,6 +122,16 @@ bfa_com_cee_attach(struct bfa_s *bfa) | |||
122 | bfa_cee_mem_claim(cee, cee_dma->kva_curp, cee_dma->dma_curp); | 122 | bfa_cee_mem_claim(cee, cee_dma->kva_curp, cee_dma->dma_curp); |
123 | } | 123 | } |
124 | 124 | ||
125 | static void | ||
126 | bfa_com_sfp_attach(struct bfa_s *bfa) | ||
127 | { | ||
128 | struct bfa_sfp_s *sfp = BFA_SFP_MOD(bfa); | ||
129 | struct bfa_mem_dma_s *sfp_dma = BFA_MEM_SFP_DMA(bfa); | ||
130 | |||
131 | bfa_sfp_attach(sfp, &bfa->ioc, bfa, bfa->trcmod); | ||
132 | bfa_sfp_memclaim(sfp, sfp_dma->kva_curp, sfp_dma->dma_curp); | ||
133 | } | ||
134 | |||
125 | /* | 135 | /* |
126 | * BFA IOC FC related definitions | 136 | * BFA IOC FC related definitions |
127 | */ | 137 | */ |
@@ -1360,6 +1370,7 @@ bfa_cfg_get_meminfo(struct bfa_iocfc_cfg_s *cfg, struct bfa_meminfo_s *meminfo, | |||
1360 | struct bfa_mem_dma_s *port_dma = BFA_MEM_PORT_DMA(bfa); | 1370 | struct bfa_mem_dma_s *port_dma = BFA_MEM_PORT_DMA(bfa); |
1361 | struct bfa_mem_dma_s *ablk_dma = BFA_MEM_ABLK_DMA(bfa); | 1371 | struct bfa_mem_dma_s *ablk_dma = BFA_MEM_ABLK_DMA(bfa); |
1362 | struct bfa_mem_dma_s *cee_dma = BFA_MEM_CEE_DMA(bfa); | 1372 | struct bfa_mem_dma_s *cee_dma = BFA_MEM_CEE_DMA(bfa); |
1373 | struct bfa_mem_dma_s *sfp_dma = BFA_MEM_SFP_DMA(bfa); | ||
1363 | 1374 | ||
1364 | WARN_ON((cfg == NULL) || (meminfo == NULL)); | 1375 | WARN_ON((cfg == NULL) || (meminfo == NULL)); |
1365 | 1376 | ||
@@ -1378,6 +1389,7 @@ bfa_cfg_get_meminfo(struct bfa_iocfc_cfg_s *cfg, struct bfa_meminfo_s *meminfo, | |||
1378 | bfa_mem_dma_setup(meminfo, port_dma, bfa_port_meminfo()); | 1389 | bfa_mem_dma_setup(meminfo, port_dma, bfa_port_meminfo()); |
1379 | bfa_mem_dma_setup(meminfo, ablk_dma, bfa_ablk_meminfo()); | 1390 | bfa_mem_dma_setup(meminfo, ablk_dma, bfa_ablk_meminfo()); |
1380 | bfa_mem_dma_setup(meminfo, cee_dma, bfa_cee_meminfo()); | 1391 | bfa_mem_dma_setup(meminfo, cee_dma, bfa_cee_meminfo()); |
1392 | bfa_mem_dma_setup(meminfo, sfp_dma, bfa_sfp_meminfo()); | ||
1381 | } | 1393 | } |
1382 | 1394 | ||
1383 | /* | 1395 | /* |
@@ -1446,6 +1458,7 @@ bfa_attach(struct bfa_s *bfa, void *bfad, struct bfa_iocfc_cfg_s *cfg, | |||
1446 | bfa_com_port_attach(bfa); | 1458 | bfa_com_port_attach(bfa); |
1447 | bfa_com_ablk_attach(bfa); | 1459 | bfa_com_ablk_attach(bfa); |
1448 | bfa_com_cee_attach(bfa); | 1460 | bfa_com_cee_attach(bfa); |
1461 | bfa_com_sfp_attach(bfa); | ||
1449 | } | 1462 | } |
1450 | 1463 | ||
1451 | /* | 1464 | /* |