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/aic7xxx_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/aic7xxx_inline.h')
-rw-r--r-- | drivers/scsi/aic7xxx/aic7xxx_inline.h | 55 |
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 ************************/ |
49 | void ahc_pause_bug_fix(struct ahc_softc *ahc); | ||
50 | int ahc_is_paused(struct ahc_softc *ahc); | 49 | int ahc_is_paused(struct ahc_softc *ahc); |
51 | void ahc_pause(struct ahc_softc *ahc); | 50 | void ahc_pause(struct ahc_softc *ahc); |
52 | void ahc_unpause(struct ahc_softc *ahc); | 51 | void ahc_unpause(struct ahc_softc *ahc); |
53 | 52 | ||
54 | /*********************** Untagged Transaction Routines ************************/ | ||
55 | static __inline void ahc_freeze_untagged_queues(struct ahc_softc *ahc); | ||
56 | static __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 | */ | ||
62 | static __inline void | ||
63 | ahc_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 | */ | ||
75 | static __inline void | ||
76 | ahc_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 ***************************/ |
86 | struct ahc_dma_seg * | ||
87 | ahc_sg_bus_to_virt(struct scb *scb, | ||
88 | uint32_t sg_busaddr); | ||
89 | uint32_t | ||
90 | ahc_sg_virt_to_bus(struct scb *scb, | ||
91 | struct ahc_dma_seg *sg); | ||
92 | uint32_t | ||
93 | ahc_hscb_busaddr(struct ahc_softc *ahc, u_int index); | ||
94 | void ahc_sync_scb(struct ahc_softc *ahc, | ||
95 | struct scb *scb, int op); | ||
96 | void ahc_sync_sglist(struct ahc_softc *ahc, | 54 | void ahc_sync_sglist(struct ahc_softc *ahc, |
97 | struct scb *scb, int op); | 55 | struct scb *scb, int op); |
98 | uint32_t | ||
99 | ahc_targetcmd_offset(struct ahc_softc *ahc, | ||
100 | u_int index); | ||
101 | 56 | ||
102 | /******************************** Debugging ***********************************/ | 57 | /******************************** Debugging ***********************************/ |
103 | static __inline char *ahc_name(struct ahc_softc *ahc); | 58 | static __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 | ||
113 | void ahc_update_residual(struct ahc_softc *ahc, | ||
114 | struct scb *scb); | ||
115 | struct ahc_initiator_tinfo * | 68 | struct 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* | |||
134 | void ahc_free_scb(struct ahc_softc *ahc, struct scb *scb); | 87 | void ahc_free_scb(struct ahc_softc *ahc, struct scb *scb); |
135 | struct scb * | 88 | struct scb * |
136 | ahc_lookup_scb(struct ahc_softc *ahc, u_int tag); | 89 | ahc_lookup_scb(struct ahc_softc *ahc, u_int tag); |
137 | void ahc_swap_with_next_hscb(struct ahc_softc *ahc, | ||
138 | struct scb *scb); | ||
139 | void ahc_queue_scb(struct ahc_softc *ahc, struct scb *scb); | 90 | void ahc_queue_scb(struct ahc_softc *ahc, struct scb *scb); |
140 | struct scsi_sense_data * | 91 | struct 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); |
143 | uint32_t | ||
144 | ahc_get_sense_bufaddr(struct ahc_softc *ahc, | ||
145 | struct scb *scb); | ||
146 | 94 | ||
147 | /************************** Interrupt Processing ******************************/ | 95 | /************************** Interrupt Processing ******************************/ |
148 | void ahc_sync_qoutfifo(struct ahc_softc *ahc, int op); | ||
149 | void ahc_sync_tqinfifo(struct ahc_softc *ahc, int op); | ||
150 | u_int ahc_check_cmdcmpltqueues(struct ahc_softc *ahc); | ||
151 | int ahc_intr(struct ahc_softc *ahc); | 96 | int ahc_intr(struct ahc_softc *ahc); |
152 | 97 | ||
153 | #endif /* _AIC7XXX_INLINE_H_ */ | 98 | #endif /* _AIC7XXX_INLINE_H_ */ |