diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2008-04-24 22:34:49 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-04-27 13:20:00 -0400 |
commit | d1d7b19d433188e94fc87cc7ca66363cd77a0bba (patch) | |
tree | ca3474a25f2ca420e0004e47fd1a1b9d0cf5e057 /drivers/scsi/aic7xxx/aic79xx_inline.h | |
parent | d10c2e4627b0dda286bcd1c77720eb5fe4a04f93 (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/aic79xx_inline.h')
-rw-r--r-- | drivers/scsi/aic7xxx/aic79xx_inline.h | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/drivers/scsi/aic7xxx/aic79xx_inline.h b/drivers/scsi/aic7xxx/aic79xx_inline.h index 875137262156..5f12cf9d99d0 100644 --- a/drivers/scsi/aic7xxx/aic79xx_inline.h +++ b/drivers/scsi/aic7xxx/aic79xx_inline.h | |||
@@ -66,10 +66,6 @@ static __inline void ahd_extract_mode_state(struct ahd_softc *ahd, | |||
66 | 66 | ||
67 | void ahd_set_modes(struct ahd_softc *ahd, ahd_mode src, | 67 | void ahd_set_modes(struct ahd_softc *ahd, ahd_mode src, |
68 | ahd_mode dst); | 68 | ahd_mode dst); |
69 | void ahd_update_modes(struct ahd_softc *ahd); | ||
70 | void ahd_assert_modes(struct ahd_softc *ahd, ahd_mode srcmode, | ||
71 | ahd_mode dstmode, const char *file, | ||
72 | int line); | ||
73 | ahd_mode_state ahd_save_modes(struct ahd_softc *ahd); | 69 | ahd_mode_state ahd_save_modes(struct ahd_softc *ahd); |
74 | void ahd_restore_modes(struct ahd_softc *ahd, | 70 | void ahd_restore_modes(struct ahd_softc *ahd, |
75 | ahd_mode_state state); | 71 | ahd_mode_state state); |
@@ -104,33 +100,12 @@ ahd_extract_mode_state(struct ahd_softc *ahd, ahd_mode_state state, | |||
104 | void *ahd_sg_setup(struct ahd_softc *ahd, struct scb *scb, | 100 | void *ahd_sg_setup(struct ahd_softc *ahd, struct scb *scb, |
105 | void *sgptr, dma_addr_t addr, | 101 | void *sgptr, dma_addr_t addr, |
106 | bus_size_t len, int last); | 102 | bus_size_t len, int last); |
107 | void ahd_setup_scb_common(struct ahd_softc *ahd, | ||
108 | struct scb *scb); | ||
109 | void ahd_setup_data_scb(struct ahd_softc *ahd, | ||
110 | struct scb *scb); | ||
111 | void ahd_setup_noxfer_scb(struct ahd_softc *ahd, | ||
112 | struct scb *scb); | ||
113 | 103 | ||
114 | /************************** Memory mapping routines ***************************/ | 104 | /************************** Memory mapping routines ***************************/ |
115 | static __inline size_t ahd_sg_size(struct ahd_softc *ahd); | 105 | static __inline size_t ahd_sg_size(struct ahd_softc *ahd); |
116 | 106 | ||
117 | void * | ||
118 | ahd_sg_bus_to_virt(struct ahd_softc *ahd, | ||
119 | struct scb *scb, | ||
120 | uint32_t sg_busaddr); | ||
121 | uint32_t | ||
122 | ahd_sg_virt_to_bus(struct ahd_softc *ahd, | ||
123 | struct scb *scb, | ||
124 | void *sg); | ||
125 | void ahd_sync_scb(struct ahd_softc *ahd, | ||
126 | struct scb *scb, int op); | ||
127 | void ahd_sync_sglist(struct ahd_softc *ahd, | 107 | void ahd_sync_sglist(struct ahd_softc *ahd, |
128 | struct scb *scb, int op); | 108 | struct scb *scb, int op); |
129 | void ahd_sync_sense(struct ahd_softc *ahd, | ||
130 | struct scb *scb, int op); | ||
131 | uint32_t | ||
132 | ahd_targetcmd_offset(struct ahd_softc *ahd, | ||
133 | u_int index); | ||
134 | 109 | ||
135 | static __inline size_t | 110 | static __inline size_t |
136 | ahd_sg_size(struct ahd_softc *ahd) | 111 | ahd_sg_size(struct ahd_softc *ahd) |
@@ -160,26 +135,10 @@ void ahd_outq(struct ahd_softc *ahd, u_int port, | |||
160 | uint64_t value); | 135 | uint64_t value); |
161 | u_int ahd_get_scbptr(struct ahd_softc *ahd); | 136 | u_int ahd_get_scbptr(struct ahd_softc *ahd); |
162 | void ahd_set_scbptr(struct ahd_softc *ahd, u_int scbptr); | 137 | void ahd_set_scbptr(struct ahd_softc *ahd, u_int scbptr); |
163 | u_int ahd_get_hnscb_qoff(struct ahd_softc *ahd); | ||
164 | void ahd_set_hnscb_qoff(struct ahd_softc *ahd, u_int value); | ||
165 | u_int ahd_get_hescb_qoff(struct ahd_softc *ahd); | ||
166 | void ahd_set_hescb_qoff(struct ahd_softc *ahd, u_int value); | ||
167 | u_int ahd_get_snscb_qoff(struct ahd_softc *ahd); | ||
168 | void ahd_set_snscb_qoff(struct ahd_softc *ahd, u_int value); | ||
169 | u_int ahd_get_sescb_qoff(struct ahd_softc *ahd); | ||
170 | void ahd_set_sescb_qoff(struct ahd_softc *ahd, u_int value); | ||
171 | u_int ahd_get_sdscb_qoff(struct ahd_softc *ahd); | ||
172 | void ahd_set_sdscb_qoff(struct ahd_softc *ahd, u_int value); | ||
173 | u_int ahd_inb_scbram(struct ahd_softc *ahd, u_int offset); | 138 | u_int ahd_inb_scbram(struct ahd_softc *ahd, u_int offset); |
174 | u_int ahd_inw_scbram(struct ahd_softc *ahd, u_int offset); | 139 | u_int ahd_inw_scbram(struct ahd_softc *ahd, u_int offset); |
175 | uint32_t | ||
176 | ahd_inl_scbram(struct ahd_softc *ahd, u_int offset); | ||
177 | uint64_t | ||
178 | ahd_inq_scbram(struct ahd_softc *ahd, u_int offset); | ||
179 | struct scb * | 140 | struct scb * |
180 | ahd_lookup_scb(struct ahd_softc *ahd, u_int tag); | 141 | ahd_lookup_scb(struct ahd_softc *ahd, u_int tag); |
181 | void ahd_swap_with_next_hscb(struct ahd_softc *ahd, | ||
182 | struct scb *scb); | ||
183 | void ahd_queue_scb(struct ahd_softc *ahd, struct scb *scb); | 142 | void ahd_queue_scb(struct ahd_softc *ahd, struct scb *scb); |
184 | 143 | ||
185 | static __inline uint8_t * | 144 | static __inline uint8_t * |
@@ -212,9 +171,6 @@ ahd_get_sense_bufaddr(struct ahd_softc *ahd, struct scb *scb) | |||
212 | } | 171 | } |
213 | 172 | ||
214 | /************************** Interrupt Processing ******************************/ | 173 | /************************** Interrupt Processing ******************************/ |
215 | void ahd_sync_qoutfifo(struct ahd_softc *ahd, int op); | ||
216 | void ahd_sync_tqinfifo(struct ahd_softc *ahd, int op); | ||
217 | u_int ahd_check_cmdcmpltqueues(struct ahd_softc *ahd); | ||
218 | int ahd_intr(struct ahd_softc *ahd); | 174 | int ahd_intr(struct ahd_softc *ahd); |
219 | 175 | ||
220 | #endif /* _AIC79XX_INLINE_H_ */ | 176 | #endif /* _AIC79XX_INLINE_H_ */ |