1
2 /*
3 dmx3191d.h - defines for the Domex DMX3191D SCSI card.
4 Copyright (C) 2000 by Massimo Piccioni <dafastidio@libero.it>
5
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
10 */
11
12 #ifndef __DMX3191D_H
13 #define __DMX3191D_H
14
15 #define DMX3191D_DRIVER_NAME "dmx3191d"
16 #define DMX3191D_REGION 8
17
18 #ifndef PCI_VENDOR_ID_DOMEX
19 #define PCI_VENDOR_ID_DOMEX 0x134a
20 #define PCI_DEVICE_ID_DOMEX_DMX3191D 0x0001
21 #endif
22
23 #define dmx3191d_printk( args... ) printk(__FILE__": " ##args)
24
25 #ifndef ASM
26 int dmx3191d_abort(Scsi_Cmnd *);
27 int dmx3191d_detect(Scsi_Host_Template *);
28 const char* dmx3191d_info(struct Scsi_Host *);
29 int dmx3191d_proc_info(char *, char **, off_t, int, int, int);
30 int dmx3191d_queue_command(Scsi_Cmnd *, void (*done)(Scsi_Cmnd *));
31 int dmx3191d_release_resources(struct Scsi_Host *);
32 int dmx3191d_reset(Scsi_Cmnd *, unsigned int);
33
34
35 #define DMX3191D { \
36 proc_info: dmx3191d_proc_info, \
37 name: "Domex DMX3191D", \
38 detect: dmx3191d_detect, \
39 release: dmx3191d_release_resources, \
40 info: dmx3191d_info, \
41 queuecommand: dmx3191d_queue_command, \
42 abort: dmx3191d_abort, \
43 reset: dmx3191d_reset, \
44 bios_param: NULL, \
45 can_queue: 32, \
46 this_id: 7, \
47 sg_tablesize: SG_ALL, \
48 cmd_per_lun: 2, \
49 use_clustering: DISABLE_CLUSTERING \
50 }
51
52
53 #define NCR5380_read(reg) inb(port + reg)
54 #define NCR5380_write(reg, value) outb(value, port + reg)
55
56 #define NCR5380_implementation_fields unsigned int port
57 #define NCR5380_local_declare() NCR5380_implementation_fields
58 #define NCR5380_setup(instance) port = instance->io_port
59
60 #define NCR5380_abort dmx3191d_abort
61 #define do_NCR5380_intr dmx3191d_do_intr
62 #define NCR5380_intr dmx3191d_intr
63 #define NCR5380_proc_info dmx3191d_proc_info
64 #define NCR5380_queue_command dmx3191d_queue_command
65 #define NCR5380_reset dmx3191d_reset
66
67 #endif /* ASM */
68
69 #endif /* __DMX3191D_H */
70
71
This page was automatically generated by the
LXR engine.
Visit the LXR main site for more
information.