dmx3191d.h
上传用户:lgb322
上传日期:2013-02-24
资源大小:30529k
文件大小:2k
- /*
- 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
- #ifndef ASM
- int dmx3191d_abort(Scsi_Cmnd *);
- int dmx3191d_detect(Scsi_Host_Template *);
- const char* dmx3191d_info(struct Scsi_Host *);
- int dmx3191d_proc_info(char *, char **, off_t, int, int, int);
- int dmx3191d_queue_command(Scsi_Cmnd *, void (*done)(Scsi_Cmnd *));
- int dmx3191d_release_resources(struct Scsi_Host *);
- int dmx3191d_reset(Scsi_Cmnd *, unsigned int);
- #define DMX3191D {
- proc_info: dmx3191d_proc_info,
- name: "Domex DMX3191D",
- detect: dmx3191d_detect,
- release: dmx3191d_release_resources,
- info: dmx3191d_info,
- queuecommand: dmx3191d_queue_command,
- abort: dmx3191d_abort,
- reset: dmx3191d_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_reset dmx3191d_reset
- #endif /* ASM */
- #endif /* __DMX3191D_H */