MOXA linux-2.6.x / linux-2.6.9-uc0 from sdlinux-moxaart.tgz
[linux-2.6.9-moxart.git] / drivers / scsi / dmx3191d.h
blob0216703039820c2fa3efeecc02d5528b802dc745
1 /*
2 dmx3191d.h - defines for the Domex DMX3191D SCSI card.
3 Copyright (C) 2000 by Massimo Piccioni <dafastidio@libero.it>
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 */
11 #ifndef __DMX3191D_H
12 #define __DMX3191D_H
14 #define DMX3191D_DRIVER_NAME "dmx3191d"
15 #define DMX3191D_REGION 8
17 #ifndef PCI_VENDOR_ID_DOMEX
18 #define PCI_VENDOR_ID_DOMEX 0x134a
19 #define PCI_DEVICE_ID_DOMEX_DMX3191D 0x0001
20 #endif
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 *);
31 #define NCR5380_read(reg) inb(port + reg)
32 #define NCR5380_write(reg, value) outb(value, port + reg)
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
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
47 #endif /* __DMX3191D_H */