ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.6.tar.bz2
[linux-2.6.git] / drivers / scsi / dmx3191d.h
1 /*
2     dmx3191d.h - defines for the Domex DMX3191D SCSI card.
3     Copyright (C) 2000 by Massimo Piccioni <dafastidio@libero.it>
4
5     This program is free software; you can redistribute it and/or modify
6     it under the terms of the GNU General Public License as published by
7     the Free Software Foundation; either version 2 of the License, or
8     (at your option) any later version.
9 */
10
11 #ifndef __DMX3191D_H
12 #define __DMX3191D_H
13
14 #define DMX3191D_DRIVER_NAME    "dmx3191d"
15 #define DMX3191D_REGION         8
16
17 #ifndef PCI_VENDOR_ID_DOMEX
18 #define PCI_VENDOR_ID_DOMEX             0x134a
19 #define PCI_DEVICE_ID_DOMEX_DMX3191D    0x0001
20 #endif
21
22 static int dmx3191d_abort(Scsi_Cmnd *);
23 static int dmx3191d_detect(Scsi_Host_Template *);
24 static const char* dmx3191d_info(struct Scsi_Host *);
25 static int dmx3191d_queue_command(Scsi_Cmnd *, void (*done)(Scsi_Cmnd *));
26 static int dmx3191d_release_resources(struct Scsi_Host *);
27 static int dmx3191d_bus_reset(Scsi_Cmnd *);
28 static int dmx3191d_host_reset(Scsi_Cmnd *);
29 static int dmx3191d_device_reset(Scsi_Cmnd *);
30
31 #define NCR5380_read(reg)                       inb(port + reg)
32 #define NCR5380_write(reg, value)               outb(value, port + reg)
33
34 #define NCR5380_implementation_fields           unsigned int port
35 #define NCR5380_local_declare()                 NCR5380_implementation_fields
36 #define NCR5380_setup(instance)                 port = instance->io_port
37
38 #define NCR5380_abort                           dmx3191d_abort
39 #define do_NCR5380_intr                         dmx3191d_do_intr
40 #define NCR5380_intr                            dmx3191d_intr
41 #define NCR5380_proc_info                       dmx3191d_proc_info
42 #define NCR5380_queue_command                   dmx3191d_queue_command
43 #define NCR5380_host_reset                      dmx3191d_host_reset
44 #define NCR5380_bus_reset                       dmx3191d_bus_reset
45 #define NCR5380_device_reset                    dmx3191d_device_reset
46
47 #endif  /* __DMX3191D_H */
48