blob: 7c1cb66510522e97436640ea2005c1975a56b017 [file] [log] [blame]
/*
dmx3191d.h - defines for the Domex DMX3191D SCSI card.
Copyright (C) 2000 by Massimo Piccioni <dafastidio@libero.it>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
*/
#ifndef __DMX3191D_H
#define __DMX3191D_H
#define DMX3191D_DRIVER_NAME "dmx3191d"
#define DMX3191D_REGION 8
#ifndef PCI_VENDOR_ID_DOMEX
#define PCI_VENDOR_ID_DOMEX 0x134a
#define PCI_DEVICE_ID_DOMEX_DMX3191D 0x0001
#endif
static int dmx3191d_abort(Scsi_Cmnd *);
static int dmx3191d_detect(Scsi_Host_Template *);
static const char* dmx3191d_info(struct Scsi_Host *);
static int dmx3191d_proc_info(char *, char **, off_t, int, int, int);
static int dmx3191d_queue_command(Scsi_Cmnd *, void (*done)(Scsi_Cmnd *));
static int dmx3191d_release_resources(struct Scsi_Host *);
static int dmx3191d_bus_reset(Scsi_Cmnd *);
static int dmx3191d_host_reset(Scsi_Cmnd *);
static int dmx3191d_device_reset(Scsi_Cmnd *);
#define DMX3191D { \
.proc_info = dmx3191d_proc_info, \
.name = "Domex DMX3191D", \
.detect = dmx3191d_detect, \
.release = dmx3191d_release_resources, \
.info = dmx3191d_info, \
.queuecommand = dmx3191d_queue_command, \
.eh_abort_handler = dmx3191d_abort, \
.eh_bus_reset_handler = dmx3191d_bus_reset, \
.eh_device_reset_handler = dmx3191d_device_reset, \
.eh_host_reset_handler = dmx3191d_host_reset, \
.bios_param = NULL, \
.can_queue = 32, \
.this_id = 7, \
.sg_tablesize = SG_ALL, \
.cmd_per_lun = 2, \
.use_clustering = DISABLE_CLUSTERING \
}
#define NCR5380_read(reg) inb(port + reg)
#define NCR5380_write(reg, value) outb(value, port + reg)
#define NCR5380_implementation_fields unsigned int port
#define NCR5380_local_declare() NCR5380_implementation_fields
#define NCR5380_setup(instance) port = instance->io_port
#define NCR5380_abort dmx3191d_abort
#define do_NCR5380_intr dmx3191d_do_intr
#define NCR5380_intr dmx3191d_intr
#define NCR5380_proc_info dmx3191d_proc_info
#define NCR5380_queue_command dmx3191d_queue_command
#define NCR5380_host_reset dmx3191d_host_reset
#define NCR5380_bus_reset dmx3191d_bus_reset
#define NCR5380_device_reset dmx3191d_device_reset
#endif /* __DMX3191D_H */