Lines Matching +full:no +full:- +full:sd

2  * Copyright (c) 2000-2001 Adaptec Inc.
12 * substantially similar to the "NO WARRANTY" disclaimer below
16 * 3. Neither the names of the above-listed copyright holders nor the names
24 * NO WARRANTY
28 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
37 * String handling code courtesy of Gerard Roudier's <groudier@club-internet.fr>
61 { 0x08, 625 }, /* FAST-160 */
62 { 0x09, 1250 }, /* FAST-80 */
63 { 0x0a, 2500 }, /* FAST-40 40MHz */
64 { 0x0b, 3030 }, /* FAST-40 33MHz */
65 { 0x0c, 5000 } /* FAST-20 */
102 if (tinfo->offset != 0) { in ahc_format_transinfo()
103 freq = ahc_calc_syncsrate(tinfo->period); in ahc_format_transinfo()
106 speed *= (0x01 << tinfo->width); in ahc_format_transinfo()
116 (tinfo->ppr_options & MSG_EXT_PPR_DT_REQ) != 0 in ahc_format_transinfo()
117 ? " DT" : "", tinfo->offset); in ahc_format_transinfo()
120 if (tinfo->width > 0) { in ahc_format_transinfo()
126 seq_printf(m, "%dbit)", 8 * (0x01 << tinfo->width)); in ahc_format_transinfo()
145 if ((ahc->features & AHC_TWIN) != 0) in ahc_dump_target_state()
149 ahc_format_transinfo(m, &tinfo->user); in ahc_dump_target_state()
150 starget = ahc->platform_data->starget[target_offset]; in ahc_dump_target_state()
155 ahc_format_transinfo(m, &tinfo->goal); in ahc_dump_target_state()
157 ahc_format_transinfo(m, &tinfo->curr); in ahc_dump_target_state()
177 sdev->sdev_target->channel + 'A', in ahc_dump_device_state()
178 sdev->sdev_target->id, (u8)sdev->lun); in ahc_dump_device_state()
180 seq_printf(m, "\t\tCommands Queued %ld\n", dev->commands_issued); in ahc_dump_device_state()
181 seq_printf(m, "\t\tCommands Active %d\n", dev->active); in ahc_dump_device_state()
182 seq_printf(m, "\t\tCommand Openings %d\n", dev->openings); in ahc_dump_device_state()
183 seq_printf(m, "\t\tMax Tagged Openings %d\n", dev->maxtags); in ahc_dump_device_state()
184 seq_printf(m, "\t\tDevice Queue Frozen Count %d\n", dev->qfrozen); in ahc_dump_device_state()
190 struct ahc_softc *ahc = *(struct ahc_softc **)shost->hostdata; in ahc_proc_write_seeprom()
191 struct seeprom_descriptor sd; in ahc_proc_write_seeprom() local
198 written = -EINVAL; in ahc_proc_write_seeprom()
215 sd.sd_ahc = ahc; in ahc_proc_write_seeprom()
217 if ((ahc->chip & AHC_PCI) != 0) { in ahc_proc_write_seeprom()
218 sd.sd_control_offset = SEECTL; in ahc_proc_write_seeprom()
219 sd.sd_status_offset = SEECTL; in ahc_proc_write_seeprom()
220 sd.sd_dataout_offset = SEECTL; in ahc_proc_write_seeprom()
221 if (ahc->flags & AHC_LARGE_SEEPROM) in ahc_proc_write_seeprom()
222 sd.sd_chip = C56_66; in ahc_proc_write_seeprom()
224 sd.sd_chip = C46; in ahc_proc_write_seeprom()
225 sd.sd_MS = SEEMS; in ahc_proc_write_seeprom()
226 sd.sd_RDY = SEERDY; in ahc_proc_write_seeprom()
227 sd.sd_CS = SEECS; in ahc_proc_write_seeprom()
228 sd.sd_CK = SEECK; in ahc_proc_write_seeprom()
229 sd.sd_DO = SEEDO; in ahc_proc_write_seeprom()
230 sd.sd_DI = SEEDI; in ahc_proc_write_seeprom()
231 have_seeprom = ahc_acquire_seeprom(ahc, &sd); in ahc_proc_write_seeprom()
234 if ((ahc->chip & AHC_VL) != 0) { in ahc_proc_write_seeprom()
235 sd.sd_control_offset = SEECTL_2840; in ahc_proc_write_seeprom()
236 sd.sd_status_offset = STATUS_2840; in ahc_proc_write_seeprom()
237 sd.sd_dataout_offset = STATUS_2840; in ahc_proc_write_seeprom()
238 sd.sd_chip = C46; in ahc_proc_write_seeprom()
239 sd.sd_MS = 0; in ahc_proc_write_seeprom()
240 sd.sd_RDY = EEPROM_TF; in ahc_proc_write_seeprom()
241 sd.sd_CS = CS_2840; in ahc_proc_write_seeprom()
242 sd.sd_CK = CK_2840; in ahc_proc_write_seeprom()
243 sd.sd_DO = DO_2840; in ahc_proc_write_seeprom()
244 sd.sd_DI = DI_2840; in ahc_proc_write_seeprom()
252 printk("ahc_proc_write_seeprom: No Serial EEPROM\n"); in ahc_proc_write_seeprom()
257 if (ahc->seep_config == NULL) { in ahc_proc_write_seeprom()
258 ahc->seep_config = kmalloc(sizeof(*ahc->seep_config), in ahc_proc_write_seeprom()
260 if (ahc->seep_config == NULL) { in ahc_proc_write_seeprom()
267 start_addr = 32 * (ahc->channel - 'A'); in ahc_proc_write_seeprom()
268 ahc_write_seeprom(&sd, (u_int16_t *)buffer, start_addr, in ahc_proc_write_seeprom()
270 ahc_read_seeprom(&sd, (uint16_t *)ahc->seep_config, in ahc_proc_write_seeprom()
273 if ((ahc->chip & AHC_VL) == 0) in ahc_proc_write_seeprom()
274 ahc_release_seeprom(&sd); in ahc_proc_write_seeprom()
292 struct ahc_softc *ahc = *(struct ahc_softc **)shost->hostdata; in ahc_linux_show_info()
299 seq_printf(m, "%s\n", ahc->description); in ahc_linux_show_info()
303 ahc->scb_data->numscbs, AHC_NSEG); in ahc_linux_show_info()
306 if (ahc->seep_config == NULL) in ahc_linux_show_info()
307 seq_puts(m, "No Serial EEPROM\n"); in ahc_linux_show_info()
310 for (i = 0; i < sizeof(*ahc->seep_config)/2; i++) { in ahc_linux_show_info()
315 ((uint16_t*)ahc->seep_config)[i]); in ahc_linux_show_info()
322 if ((ahc->features & (AHC_WIDE|AHC_TWIN)) == 0) in ahc_linux_show_info()
331 our_id = ahc->our_id; in ahc_linux_show_info()
333 if (i > 7 && (ahc->features & AHC_TWIN) != 0) { in ahc_linux_show_info()
335 our_id = ahc->our_id_b; in ahc_linux_show_info()