|
|
1.1 ! root 1: /* ! 2: * eata.h - used by the low-level driver for EATA/DMA SCSI host adapters. ! 3: */ ! 4: #ifndef _EATA_H ! 5: #define _EATA_H ! 6: ! 7: #include <scsi/scsicam.h> ! 8: #include <linux/version.h> ! 9: ! 10: int eata2x_detect(Scsi_Host_Template *); ! 11: int eata2x_release(struct Scsi_Host *); ! 12: int eata2x_queuecommand(Scsi_Cmnd *, void (*done)(Scsi_Cmnd *)); ! 13: int eata2x_abort(Scsi_Cmnd *); ! 14: int eata2x_old_abort(Scsi_Cmnd *); ! 15: int eata2x_reset(Scsi_Cmnd *); ! 16: int eata2x_old_reset(Scsi_Cmnd *, unsigned int); ! 17: int eata2x_biosparam(Disk *, kdev_t, int *); ! 18: ! 19: #define EATA_VERSION "4.33.00" ! 20: ! 21: #define LinuxVersionCode(v, p, s) (((v)<<16)+((p)<<8)+(s)) ! 22: ! 23: #if LINUX_VERSION_CODE >= LinuxVersionCode(2,1,101) ! 24: ! 25: #define EATA { \ ! 26: name: "EATA/DMA 2.0x rev. " EATA_VERSION " ", \ ! 27: detect: eata2x_detect, \ ! 28: release: eata2x_release, \ ! 29: queuecommand: eata2x_queuecommand, \ ! 30: abort: eata2x_old_abort, \ ! 31: reset: eata2x_old_reset, \ ! 32: eh_abort_handler: eata2x_abort, \ ! 33: eh_device_reset_handler: NULL, \ ! 34: eh_bus_reset_handler: NULL, \ ! 35: eh_host_reset_handler: eata2x_reset, \ ! 36: bios_param: eata2x_biosparam, \ ! 37: this_id: 7, \ ! 38: unchecked_isa_dma: 1, \ ! 39: use_clustering: ENABLE_CLUSTERING, \ ! 40: use_new_eh_code: 1 /* Enable new error code */ \ ! 41: } ! 42: ! 43: #else /* Use old scsi code */ ! 44: ! 45: #define EATA { \ ! 46: name: "EATA/DMA 2.0x rev. " EATA_VERSION " ", \ ! 47: detect: eata2x_detect, \ ! 48: release: eata2x_release, \ ! 49: queuecommand: eata2x_queuecommand, \ ! 50: abort: eata2x_old_abort, \ ! 51: reset: eata2x_old_reset, \ ! 52: bios_param: eata2x_biosparam, \ ! 53: this_id: 7, \ ! 54: unchecked_isa_dma: 1, \ ! 55: use_clustering: ENABLE_CLUSTERING \ ! 56: } ! 57: ! 58: #endif ! 59: ! 60: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.