aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/message/fusion/mptbase.h
diff options
context:
space:
mode:
authorPrakash, Sathya <sathya.prakash@lsi.com>2007-08-14 06:42:53 -0400
committerJames Bottomley <jejb@mulgrave.localdomain>2007-10-12 14:40:43 -0400
commitf606f5718fa5a36e400000f91c44a5725b0f005d (patch)
tree0d51211948c5499ec44f645f7f816bd8f99fec31 /drivers/message/fusion/mptbase.h
parent7a195f464e0692607aca8150c8489a838fab684b (diff)
[SCSI] mpt fusion: Change call back indices to u8 from int
The call back index requires only u8 but in lot of places it is referred as int, now everywhere the call back index variables are declared as u8 with uniform name cb_idx signed-off-by: Sathya Prakash <sathya.prakash@lsi.com> Acked-by: Eric Moore <Eric.Moore@lsi.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/message/fusion/mptbase.h')
-rw-r--r--drivers/message/fusion/mptbase.h33
1 files changed, 15 insertions, 18 deletions
diff --git a/drivers/message/fusion/mptbase.h b/drivers/message/fusion/mptbase.h
index 012be5ea906e..04ef0a37a764 100644
--- a/drivers/message/fusion/mptbase.h
+++ b/drivers/message/fusion/mptbase.h
@@ -679,9 +679,9 @@ typedef struct _MPT_ADAPTER
679 u8 reload_fw; /* Force a FW Reload on next reset */ 679 u8 reload_fw; /* Force a FW Reload on next reset */
680 u8 NBShiftFactor; /* NB Shift Factor based on Block Size (Facts) */ 680 u8 NBShiftFactor; /* NB Shift Factor based on Block Size (Facts) */
681 u8 pad1[4]; 681 u8 pad1[4];
682 int DoneCtx; 682 u8 DoneCtx;
683 int TaskCtx; 683 u8 TaskCtx;
684 int InternalCtx; 684 u8 InternalCtx;
685 spinlock_t initializing_hba_lock; 685 spinlock_t initializing_hba_lock;
686 int initializing_hba_lock_flag; 686 int initializing_hba_lock_flag;
687 struct list_head list; 687 struct list_head list;
@@ -883,21 +883,21 @@ extern void mpt_detach(struct pci_dev *pdev);
883extern int mpt_suspend(struct pci_dev *pdev, pm_message_t state); 883extern int mpt_suspend(struct pci_dev *pdev, pm_message_t state);
884extern int mpt_resume(struct pci_dev *pdev); 884extern int mpt_resume(struct pci_dev *pdev);
885#endif 885#endif
886extern int mpt_register(MPT_CALLBACK cbfunc, MPT_DRIVER_CLASS dclass); 886extern u8 mpt_register(MPT_CALLBACK cbfunc, MPT_DRIVER_CLASS dclass);
887extern void mpt_deregister(int cb_idx); 887extern void mpt_deregister(u8 cb_idx);
888extern int mpt_event_register(int cb_idx, MPT_EVHANDLER ev_cbfunc); 888extern int mpt_event_register(u8 cb_idx, MPT_EVHANDLER ev_cbfunc);
889extern void mpt_event_deregister(int cb_idx); 889extern void mpt_event_deregister(u8 cb_idx);
890extern int mpt_reset_register(int cb_idx, MPT_RESETHANDLER reset_func); 890extern int mpt_reset_register(u8 cb_idx, MPT_RESETHANDLER reset_func);
891extern void mpt_reset_deregister(int cb_idx); 891extern void mpt_reset_deregister(u8 cb_idx);
892extern int mpt_device_driver_register(struct mpt_pci_driver * dd_cbfunc, int cb_idx); 892extern int mpt_device_driver_register(struct mpt_pci_driver * dd_cbfunc, u8 cb_idx);
893extern void mpt_device_driver_deregister(int cb_idx); 893extern void mpt_device_driver_deregister(u8 cb_idx);
894extern MPT_FRAME_HDR *mpt_get_msg_frame(int handle, MPT_ADAPTER *ioc); 894extern MPT_FRAME_HDR *mpt_get_msg_frame(u8 cb_idx, MPT_ADAPTER *ioc);
895extern void mpt_free_msg_frame(MPT_ADAPTER *ioc, MPT_FRAME_HDR *mf); 895extern void mpt_free_msg_frame(MPT_ADAPTER *ioc, MPT_FRAME_HDR *mf);
896extern void mpt_put_msg_frame(int handle, MPT_ADAPTER *ioc, MPT_FRAME_HDR *mf); 896extern void mpt_put_msg_frame(u8 cb_idx, MPT_ADAPTER *ioc, MPT_FRAME_HDR *mf);
897extern void mpt_put_msg_frame_hi_pri(int handle, MPT_ADAPTER *ioc, MPT_FRAME_HDR *mf); 897extern void mpt_put_msg_frame_hi_pri(u8 cb_idx, MPT_ADAPTER *ioc, MPT_FRAME_HDR *mf);
898extern void mpt_add_sge(char *pAddr, u32 flagslength, dma_addr_t dma_addr); 898extern void mpt_add_sge(char *pAddr, u32 flagslength, dma_addr_t dma_addr);
899 899
900extern int mpt_send_handshake_request(int handle, MPT_ADAPTER *ioc, int reqBytes, u32 *req, int sleepFlag); 900extern int mpt_send_handshake_request(u8 cb_idx, MPT_ADAPTER *ioc, int reqBytes, u32 *req, int sleepFlag);
901extern int mpt_verify_adapter(int iocid, MPT_ADAPTER **iocpp); 901extern int mpt_verify_adapter(int iocid, MPT_ADAPTER **iocpp);
902extern u32 mpt_GetIocState(MPT_ADAPTER *ioc, int cooked); 902extern u32 mpt_GetIocState(MPT_ADAPTER *ioc, int cooked);
903extern void mpt_print_ioc_summary(MPT_ADAPTER *ioc, char *buf, int *size, int len, int showlan); 903extern void mpt_print_ioc_summary(MPT_ADAPTER *ioc, char *buf, int *size, int len, int showlan);
@@ -915,9 +915,6 @@ extern int mpt_raid_phys_disk_pg0(MPT_ADAPTER *ioc, u8 phys_disk_num, pRaidPhys
915extern struct list_head ioc_list; 915extern struct list_head ioc_list;
916extern struct proc_dir_entry *mpt_proc_root_dir; 916extern struct proc_dir_entry *mpt_proc_root_dir;
917 917
918extern int mpt_lan_index; /* needed by mptlan.c */
919extern int mpt_stm_index; /* needed by mptstm.c */
920
921/*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 918/*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/
922#endif /* } __KERNEL__ */ 919#endif /* } __KERNEL__ */
923 920