|
|
1.1 root 1: /*
2: * u14-34f.h - used by the low-level driver for UltraStor 14F/34F
3: */
4: #ifndef _U14_34F_H
5: #define _U14_34F_H
6:
7: #include <scsi/scsicam.h>
8: #include <linux/version.h>
9:
10: int u14_34f_detect(Scsi_Host_Template *);
11: int u14_34f_release(struct Scsi_Host *);
12: int u14_34f_queuecommand(Scsi_Cmnd *, void (*done)(Scsi_Cmnd *));
13: int u14_34f_abort(Scsi_Cmnd *);
14: int u14_34f_old_abort(Scsi_Cmnd *);
15: int u14_34f_reset(Scsi_Cmnd *);
16: int u14_34f_old_reset(Scsi_Cmnd *, unsigned int);
17: int u14_34f_biosparam(Disk *, kdev_t, int *);
18:
19: #define U14_34F_VERSION "4.33.00"
20:
21: #define LinuxVersionCode(v, p, s) (((v)<<16)+((p)<<8)+(s))
22:
23: #if LINUX_VERSION_CODE >= LinuxVersionCode(2,1,101)
24:
25: #define ULTRASTOR_14_34F { \
26: name: "UltraStor 14F/34F rev. " U14_34F_VERSION " ", \
27: detect: u14_34f_detect, \
28: release: u14_34f_release, \
29: queuecommand: u14_34f_queuecommand, \
30: abort: u14_34f_old_abort, \
31: reset: u14_34f_old_reset, \
32: eh_abort_handler: u14_34f_abort, \
33: eh_device_reset_handler: NULL, \
34: eh_bus_reset_handler: NULL, \
35: eh_host_reset_handler: u14_34f_reset, \
36: bios_param: u14_34f_biosparam, \
37: this_id: 7, \
38: unchecked_isa_dma: 1, \
39: use_clustering: ENABLE_CLUSTERING, \
40: use_new_eh_code: 1 /* Enable new error code */ \
41: }
42:
43: #else /* Use old scsi code */
44:
45: #define ULTRASTOR_14_34F { \
46: name: "UltraStor 14F/34F rev. " U14_34F_VERSION " ", \
47: detect: u14_34f_detect, \
48: release: u14_34f_release, \
49: queuecommand: u14_34f_queuecommand, \
50: abort: u14_34f_old_abort, \
51: reset: u14_34f_old_reset, \
52: bios_param: u14_34f_biosparam, \
53: this_id: 7, \
54: unchecked_isa_dma: 1, \
55: use_clustering: ENABLE_CLUSTERING \
56: }
57:
58: #endif
59:
60: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.