aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/bfa/bfa_ioc_ct.c
diff options
context:
space:
mode:
authorKrishna Gudipati <kgudipat@brocade.com>2010-03-05 22:38:44 -0500
committerJames Bottomley <James.Bottomley@suse.de>2010-03-07 02:57:51 -0500
commitd1c61f8ef582055569de76a86fa1984f9b6698cf (patch)
tree8fdde39bb65007096eebf834470a6d787a69b394 /drivers/scsi/bfa/bfa_ioc_ct.c
parent95aa060decd2472d319c3f12b0b1b699a5f35058 (diff)
[SCSI] bfa: Remove unused header files and did some cleanup.
Signed-off-by: Krishna Gudipati <kgudipat@brocade.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/bfa/bfa_ioc_ct.c')
-rw-r--r--drivers/scsi/bfa/bfa_ioc_ct.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/drivers/scsi/bfa/bfa_ioc_ct.c b/drivers/scsi/bfa/bfa_ioc_ct.c
index 2431922c34a..20b58ad5f95 100644
--- a/drivers/scsi/bfa/bfa_ioc_ct.c
+++ b/drivers/scsi/bfa/bfa_ioc_ct.c
@@ -33,9 +33,9 @@ BFA_TRC_FILE(CNA, IOC_CT);
33static bfa_status_t bfa_ioc_ct_pll_init(struct bfa_ioc_s *ioc); 33static bfa_status_t bfa_ioc_ct_pll_init(struct bfa_ioc_s *ioc);
34static bfa_boolean_t bfa_ioc_ct_firmware_lock(struct bfa_ioc_s *ioc); 34static bfa_boolean_t bfa_ioc_ct_firmware_lock(struct bfa_ioc_s *ioc);
35static void bfa_ioc_ct_firmware_unlock(struct bfa_ioc_s *ioc); 35static void bfa_ioc_ct_firmware_unlock(struct bfa_ioc_s *ioc);
36static uint32_t* bfa_ioc_ct_fwimg_get_chunk(struct bfa_ioc_s *ioc, 36static u32* bfa_ioc_ct_fwimg_get_chunk(struct bfa_ioc_s *ioc,
37 uint32_t off); 37 u32 off);
38static uint32_t bfa_ioc_ct_fwimg_get_size(struct bfa_ioc_s *ioc); 38static u32 bfa_ioc_ct_fwimg_get_size(struct bfa_ioc_s *ioc);
39static void bfa_ioc_ct_reg_init(struct bfa_ioc_s *ioc); 39static void bfa_ioc_ct_reg_init(struct bfa_ioc_s *ioc);
40static void bfa_ioc_ct_map_port(struct bfa_ioc_s *ioc); 40static void bfa_ioc_ct_map_port(struct bfa_ioc_s *ioc);
41static void bfa_ioc_ct_isr_mode_set(struct bfa_ioc_s *ioc, bfa_boolean_t msix); 41static void bfa_ioc_ct_isr_mode_set(struct bfa_ioc_s *ioc, bfa_boolean_t msix);
@@ -64,13 +64,13 @@ bfa_ioc_set_ct_hwif(struct bfa_ioc_s *ioc)
64 ioc->ioc_hwif = &hwif_ct; 64 ioc->ioc_hwif = &hwif_ct;
65} 65}
66 66
67static uint32_t* 67static u32*
68bfa_ioc_ct_fwimg_get_chunk(struct bfa_ioc_s *ioc, uint32_t off) 68bfa_ioc_ct_fwimg_get_chunk(struct bfa_ioc_s *ioc, u32 off)
69{ 69{
70 return bfi_image_ct_get_chunk(off); 70 return bfi_image_ct_get_chunk(off);
71} 71}
72 72
73static uint32_t 73static u32
74bfa_ioc_ct_fwimg_get_size(struct bfa_ioc_s *ioc) 74bfa_ioc_ct_fwimg_get_size(struct bfa_ioc_s *ioc)
75{ 75{
76 return bfi_image_ct_size; 76 return bfi_image_ct_size;
@@ -83,7 +83,7 @@ static bfa_boolean_t
83bfa_ioc_ct_firmware_lock(struct bfa_ioc_s *ioc) 83bfa_ioc_ct_firmware_lock(struct bfa_ioc_s *ioc)
84{ 84{
85 enum bfi_ioc_state ioc_fwstate; 85 enum bfi_ioc_state ioc_fwstate;
86 uint32_t usecnt; 86 u32 usecnt;
87 struct bfi_ioc_image_hdr_s fwhdr; 87 struct bfi_ioc_image_hdr_s fwhdr;
88 88
89 /** 89 /**
@@ -142,7 +142,7 @@ bfa_ioc_ct_firmware_lock(struct bfa_ioc_s *ioc)
142static void 142static void
143bfa_ioc_ct_firmware_unlock(struct bfa_ioc_s *ioc) 143bfa_ioc_ct_firmware_unlock(struct bfa_ioc_s *ioc)
144{ 144{
145 uint32_t usecnt; 145 u32 usecnt;
146 146
147 /** 147 /**
148 * Firmware lock is relevant only for CNA. 148 * Firmware lock is relevant only for CNA.
@@ -184,7 +184,7 @@ bfa_ioc_ct_notify_hbfail(struct bfa_ioc_s *ioc)
184/** 184/**
185 * Host to LPU mailbox message addresses 185 * Host to LPU mailbox message addresses
186 */ 186 */
187static struct { uint32_t hfn_mbox, lpu_mbox, hfn_pgn; } iocreg_fnreg[] = { 187static struct { u32 hfn_mbox, lpu_mbox, hfn_pgn; } iocreg_fnreg[] = {
188 { HOSTFN0_LPU_MBOX0_0, LPU_HOSTFN0_MBOX0_0, HOST_PAGE_NUM_FN0 }, 188 { HOSTFN0_LPU_MBOX0_0, LPU_HOSTFN0_MBOX0_0, HOST_PAGE_NUM_FN0 },
189 { HOSTFN1_LPU_MBOX0_8, LPU_HOSTFN1_MBOX0_8, HOST_PAGE_NUM_FN1 }, 189 { HOSTFN1_LPU_MBOX0_8, LPU_HOSTFN1_MBOX0_8, HOST_PAGE_NUM_FN1 },
190 { HOSTFN2_LPU_MBOX0_0, LPU_HOSTFN2_MBOX0_0, HOST_PAGE_NUM_FN2 }, 190 { HOSTFN2_LPU_MBOX0_0, LPU_HOSTFN2_MBOX0_0, HOST_PAGE_NUM_FN2 },
@@ -194,7 +194,7 @@ static struct { uint32_t hfn_mbox, lpu_mbox, hfn_pgn; } iocreg_fnreg[] = {
194/** 194/**
195 * Host <-> LPU mailbox command/status registers - port 0 195 * Host <-> LPU mailbox command/status registers - port 0
196 */ 196 */
197static struct { uint32_t hfn, lpu; } iocreg_mbcmd_p0[] = { 197static struct { u32 hfn, lpu; } iocreg_mbcmd_p0[] = {
198 { HOSTFN0_LPU0_MBOX0_CMD_STAT, LPU0_HOSTFN0_MBOX0_CMD_STAT }, 198 { HOSTFN0_LPU0_MBOX0_CMD_STAT, LPU0_HOSTFN0_MBOX0_CMD_STAT },
199 { HOSTFN1_LPU0_MBOX0_CMD_STAT, LPU0_HOSTFN1_MBOX0_CMD_STAT }, 199 { HOSTFN1_LPU0_MBOX0_CMD_STAT, LPU0_HOSTFN1_MBOX0_CMD_STAT },
200 { HOSTFN2_LPU0_MBOX0_CMD_STAT, LPU0_HOSTFN2_MBOX0_CMD_STAT }, 200 { HOSTFN2_LPU0_MBOX0_CMD_STAT, LPU0_HOSTFN2_MBOX0_CMD_STAT },
@@ -204,7 +204,7 @@ static struct { uint32_t hfn, lpu; } iocreg_mbcmd_p0[] = {
204/** 204/**
205 * Host <-> LPU mailbox command/status registers - port 1 205 * Host <-> LPU mailbox command/status registers - port 1
206 */ 206 */
207static struct { uint32_t hfn, lpu; } iocreg_mbcmd_p1[] = { 207static struct { u32 hfn, lpu; } iocreg_mbcmd_p1[] = {
208 { HOSTFN0_LPU1_MBOX0_CMD_STAT, LPU1_HOSTFN0_MBOX0_CMD_STAT }, 208 { HOSTFN0_LPU1_MBOX0_CMD_STAT, LPU1_HOSTFN0_MBOX0_CMD_STAT },
209 { HOSTFN1_LPU1_MBOX0_CMD_STAT, LPU1_HOSTFN1_MBOX0_CMD_STAT }, 209 { HOSTFN1_LPU1_MBOX0_CMD_STAT, LPU1_HOSTFN1_MBOX0_CMD_STAT },
210 { HOSTFN2_LPU1_MBOX0_CMD_STAT, LPU1_HOSTFN2_MBOX0_CMD_STAT }, 210 { HOSTFN2_LPU1_MBOX0_CMD_STAT, LPU1_HOSTFN2_MBOX0_CMD_STAT },
@@ -274,7 +274,7 @@ static void
274bfa_ioc_ct_map_port(struct bfa_ioc_s *ioc) 274bfa_ioc_ct_map_port(struct bfa_ioc_s *ioc)
275{ 275{
276 bfa_os_addr_t rb = ioc->pcidev.pci_bar_kva; 276 bfa_os_addr_t rb = ioc->pcidev.pci_bar_kva;
277 uint32_t r32; 277 u32 r32;
278 278
279 /** 279 /**
280 * For catapult, base port id on personality register and IOC type 280 * For catapult, base port id on personality register and IOC type
@@ -294,7 +294,7 @@ static void
294bfa_ioc_ct_isr_mode_set(struct bfa_ioc_s *ioc, bfa_boolean_t msix) 294bfa_ioc_ct_isr_mode_set(struct bfa_ioc_s *ioc, bfa_boolean_t msix)
295{ 295{
296 bfa_os_addr_t rb = ioc->pcidev.pci_bar_kva; 296 bfa_os_addr_t rb = ioc->pcidev.pci_bar_kva;
297 uint32_t r32, mode; 297 u32 r32, mode;
298 298
299 r32 = bfa_reg_read(rb + FNC_PERS_REG); 299 r32 = bfa_reg_read(rb + FNC_PERS_REG);
300 bfa_trc(ioc, r32); 300 bfa_trc(ioc, r32);
@@ -324,7 +324,7 @@ static bfa_status_t
324bfa_ioc_ct_pll_init(struct bfa_ioc_s *ioc) 324bfa_ioc_ct_pll_init(struct bfa_ioc_s *ioc)
325{ 325{
326 bfa_os_addr_t rb = ioc->pcidev.pci_bar_kva; 326 bfa_os_addr_t rb = ioc->pcidev.pci_bar_kva;
327 uint32_t pll_sclk, pll_fclk, r32; 327 u32 pll_sclk, pll_fclk, r32;
328 328
329 /* 329 /*
330 * Hold semaphore so that nobody can access the chip during init. 330 * Hold semaphore so that nobody can access the chip during init.