aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/aic7xxx/aic7xxx_inline.h
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2008-04-24 22:34:49 -0400
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2008-04-27 13:20:00 -0400
commitd1d7b19d433188e94fc87cc7ca66363cd77a0bba (patch)
treeca3474a25f2ca420e0004e47fd1a1b9d0cf5e057 /drivers/scsi/aic7xxx/aic7xxx_inline.h
parentd10c2e4627b0dda286bcd1c77720eb5fe4a04f93 (diff)
[SCSI] aic7xxx: add static
This patch adds static (and sometimes const) keywords where appropriate. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> Acked-by: Hannes Reinecke <hare@suse.de> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/aic7xxx/aic7xxx_inline.h')
-rw-r--r--drivers/scsi/aic7xxx/aic7xxx_inline.h55
1 files changed, 0 insertions, 55 deletions
diff --git a/drivers/scsi/aic7xxx/aic7xxx_inline.h b/drivers/scsi/aic7xxx/aic7xxx_inline.h
index d18cd743618d..09bf2f4d78d5 100644
--- a/drivers/scsi/aic7xxx/aic7xxx_inline.h
+++ b/drivers/scsi/aic7xxx/aic7xxx_inline.h
@@ -46,58 +46,13 @@
46#define _AIC7XXX_INLINE_H_ 46#define _AIC7XXX_INLINE_H_
47 47
48/************************* Sequencer Execution Control ************************/ 48/************************* Sequencer Execution Control ************************/
49void ahc_pause_bug_fix(struct ahc_softc *ahc);
50int ahc_is_paused(struct ahc_softc *ahc); 49int ahc_is_paused(struct ahc_softc *ahc);
51void ahc_pause(struct ahc_softc *ahc); 50void ahc_pause(struct ahc_softc *ahc);
52void ahc_unpause(struct ahc_softc *ahc); 51void ahc_unpause(struct ahc_softc *ahc);
53 52
54/*********************** Untagged Transaction Routines ************************/
55static __inline void ahc_freeze_untagged_queues(struct ahc_softc *ahc);
56static __inline void ahc_release_untagged_queues(struct ahc_softc *ahc);
57
58/*
59 * Block our completion routine from starting the next untagged
60 * transaction for this target or target lun.
61 */
62static __inline void
63ahc_freeze_untagged_queues(struct ahc_softc *ahc)
64{
65 if ((ahc->flags & AHC_SCB_BTT) == 0)
66 ahc->untagged_queue_lock++;
67}
68
69/*
70 * Allow the next untagged transaction for this target or target lun
71 * to be executed. We use a counting semaphore to allow the lock
72 * to be acquired recursively. Once the count drops to zero, the
73 * transaction queues will be run.
74 */
75static __inline void
76ahc_release_untagged_queues(struct ahc_softc *ahc)
77{
78 if ((ahc->flags & AHC_SCB_BTT) == 0) {
79 ahc->untagged_queue_lock--;
80 if (ahc->untagged_queue_lock == 0)
81 ahc_run_untagged_queues(ahc);
82 }
83}
84
85/************************** Memory mapping routines ***************************/ 53/************************** Memory mapping routines ***************************/
86struct ahc_dma_seg *
87 ahc_sg_bus_to_virt(struct scb *scb,
88 uint32_t sg_busaddr);
89uint32_t
90 ahc_sg_virt_to_bus(struct scb *scb,
91 struct ahc_dma_seg *sg);
92uint32_t
93 ahc_hscb_busaddr(struct ahc_softc *ahc, u_int index);
94void ahc_sync_scb(struct ahc_softc *ahc,
95 struct scb *scb, int op);
96void ahc_sync_sglist(struct ahc_softc *ahc, 54void ahc_sync_sglist(struct ahc_softc *ahc,
97 struct scb *scb, int op); 55 struct scb *scb, int op);
98uint32_t
99 ahc_targetcmd_offset(struct ahc_softc *ahc,
100 u_int index);
101 56
102/******************************** Debugging ***********************************/ 57/******************************** Debugging ***********************************/
103static __inline char *ahc_name(struct ahc_softc *ahc); 58static __inline char *ahc_name(struct ahc_softc *ahc);
@@ -110,8 +65,6 @@ ahc_name(struct ahc_softc *ahc)
110 65
111/*********************** Miscellaneous Support Functions ***********************/ 66/*********************** Miscellaneous Support Functions ***********************/
112 67
113void ahc_update_residual(struct ahc_softc *ahc,
114 struct scb *scb);
115struct ahc_initiator_tinfo * 68struct ahc_initiator_tinfo *
116 ahc_fetch_transinfo(struct ahc_softc *ahc, 69 ahc_fetch_transinfo(struct ahc_softc *ahc,
117 char channel, u_int our_id, 70 char channel, u_int our_id,
@@ -134,20 +87,12 @@ struct scb*
134void ahc_free_scb(struct ahc_softc *ahc, struct scb *scb); 87void ahc_free_scb(struct ahc_softc *ahc, struct scb *scb);
135struct scb * 88struct scb *
136 ahc_lookup_scb(struct ahc_softc *ahc, u_int tag); 89 ahc_lookup_scb(struct ahc_softc *ahc, u_int tag);
137void ahc_swap_with_next_hscb(struct ahc_softc *ahc,
138 struct scb *scb);
139void ahc_queue_scb(struct ahc_softc *ahc, struct scb *scb); 90void ahc_queue_scb(struct ahc_softc *ahc, struct scb *scb);
140struct scsi_sense_data * 91struct scsi_sense_data *
141 ahc_get_sense_buf(struct ahc_softc *ahc, 92 ahc_get_sense_buf(struct ahc_softc *ahc,
142 struct scb *scb); 93 struct scb *scb);
143uint32_t
144 ahc_get_sense_bufaddr(struct ahc_softc *ahc,
145 struct scb *scb);
146 94
147/************************** Interrupt Processing ******************************/ 95/************************** Interrupt Processing ******************************/
148void ahc_sync_qoutfifo(struct ahc_softc *ahc, int op);
149void ahc_sync_tqinfifo(struct ahc_softc *ahc, int op);
150u_int ahc_check_cmdcmpltqueues(struct ahc_softc *ahc);
151int ahc_intr(struct ahc_softc *ahc); 96int ahc_intr(struct ahc_softc *ahc);
152 97
153#endif /* _AIC7XXX_INLINE_H_ */ 98#endif /* _AIC7XXX_INLINE_H_ */