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 #ifndef ASM 24 int dmx3191d_abort(Scsi_Cmnd *); 25 int dmx3191d_detect(Scsi_Host_Template *); 26 const char* dmx3191d_info(struct Scsi_Host *); 27 int dmx3191d_proc_info(char *, char **, off_t, int, int, int); 28 int dmx3191d_queue_command(Scsi_Cmnd *, void (*done)(Scsi_Cmnd *)); 29 int dmx3191d_release_resources(struct Scsi_Host *); 30 int dmx3191d_reset(Scsi_Cmnd *, unsigned int); 31 32 33 #define DMX3191D { \ 34 proc_info: dmx3191d_proc_info, \ 35 name: "Domex DMX3191D", \ 36 detect: dmx3191d_detect, \ 37 release: dmx3191d_release_resources, \ 38 info: dmx3191d_info, \ 39 queuecommand: dmx3191d_queue_command, \ 40 abort: dmx3191d_abort, \ 41 reset: dmx3191d_reset, \ 42 bios_param: NULL, \ 43 can_queue: 32, \ 44 this_id: 7, \ 45 sg_tablesize: SG_ALL, \ 46 cmd_per_lun: 2, \ 47 use_clustering: DISABLE_CLUSTERING \ 48 } 49 50 51 #define NCR5380_read(reg) inb(port + reg) 52 #define NCR5380_write(reg, value) outb(value, port + reg) 53 54 #define NCR5380_implementation_fields unsigned int port 55 #define NCR5380_local_declare() NCR5380_implementation_fields 56 #define NCR5380_setup(instance) port = instance->io_port 57 58 #define NCR5380_abort dmx3191d_abort 59 #define do_NCR5380_intr dmx3191d_do_intr 60 #define NCR5380_intr dmx3191d_intr 61 #define NCR5380_proc_info dmx3191d_proc_info 62 #define NCR5380_queue_command dmx3191d_queue_command 63 #define NCR5380_reset dmx3191d_reset 64 65 #endif /* ASM */ 66 67 #endif /* __DMX3191D_H */ 68 69