Import 2.3.18pre1
[davej-history.git] / drivers / scsi / atp870u.h
blob64cb56b9e8776f8f1b494ce350946e18a7fd269a
1 #ifndef _ATP870U_H
3 /* $Id: atp870u.h,v 1.0 1997/05/07 15:09:00 root Exp root $
5 * Header file for the ACARD 870U/W driver for Linux
7 * $Log: atp870u.h,v $
8 * Revision 1.0 1997/05/07 15:09:00 root
9 * Initial revision
13 #include <linux/types.h>
14 #include <linux/kdev_t.h>
16 /* I/O Port */
18 #define MAX_CDB 12
19 #define MAX_SENSE 14
21 int atp870u_detect(Scsi_Host_Template *);
22 int atp870u_command(Scsi_Cmnd *);
23 int atp870u_queuecommand(Scsi_Cmnd *, void (*done)(Scsi_Cmnd *));
24 int atp870u_abort(Scsi_Cmnd *);
25 int atp870u_reset(Scsi_Cmnd *, unsigned int);
26 int atp870u_biosparam(Disk *, kdev_t, int*);
27 void send_s870(unsigned char);
29 #define qcnt 32
30 #define ATP870U_SCATTER 127
31 #define ATP870U_CMDLUN 1
33 #ifndef NULL
34 #define NULL 0
35 #endif
37 extern struct proc_dir_entry proc_scsi_atp870u;
39 extern const char *atp870u_info(struct Scsi_Host *);
41 extern int atp870u_proc_info(char *, char **, off_t, int, int, int);
43 #define ATP870U { \
44 next: NULL, \
45 module: NULL, \
46 proc_dir: &proc_scsi_atp870u, \
47 proc_info: atp870u_proc_info, \
48 name: NULL, \
49 detect: atp870u_detect, \
50 release: NULL, \
51 info: atp870u_info, \
52 command: atp870u_command, \
53 queuecommand: atp870u_queuecommand, \
54 eh_strategy_handler: NULL, \
55 eh_abort_handler: NULL, \
56 eh_device_reset_handler: NULL, \
57 eh_bus_reset_handler: NULL, \
58 eh_host_reset_handler: NULL, \
59 abort: atp870u_abort, \
60 reset: atp870u_reset, \
61 slave_attach: NULL, \
62 bios_param: atp870u_biosparam, \
63 can_queue: qcnt, \
64 this_id: 1, \
65 sg_tablesize: ATP870U_SCATTER, \
66 cmd_per_lun: ATP870U_CMDLUN, \
67 present: 0, \
68 unchecked_isa_dma: 0, \
69 use_clustering: ENABLE_CLUSTERING, \
70 use_new_eh_code: 0 \
72 #endif