/* SPDX-License-Identifier: GPL-2.0 */ /* Driver for the Iomega MatchMaker parallel port SCSI HBA embedded in * the Iomega ZIP Plus drive * * (c) 1998 David Campbell * * Please note that I live in Perth, Western Australia. GMT+0800 */ #ifndef _IMM_H #define _IMM_H #define IMM_VERSION … /* * 10 Apr 1998 (Good Friday) - Received EN144302 by email from Iomega. * Scarry thing is the level of support from one of their managers. * The onus is now on us (the developers) to shut up and start coding. * 11Apr98 [ 0.10 ] * * --- SNIP --- * * It manages to find the drive which is a good start. Writing data during * data phase is known to be broken (due to requirements of two byte writes). * Removing "Phase" debug messages. * * PS: Took four hours of coding after I bought a drive. * ANZAC Day (Aus "War Veterans Holiday") 25Apr98 [ 0.14 ] * * Ten minutes later after a few fixes.... (LITERALLY!!!) * Have mounted disk, copied file, dismounted disk, remount disk, diff file * ----- It actually works!!! ----- * 25Apr98 [ 0.15 ] * * Twenty minutes of mucking around, rearanged the IEEE negotiate mechanism. * Now have byte mode working (only EPP and ECP to go now... :=) * 26Apr98 [ 0.16 ] * * Thirty minutes of further coding results in EPP working on my machine. * 27Apr98 [ 0.17 ] * * Due to work commitments and inability to get a "true" ECP mode functioning * I have decided to code the parport support into imm. * 09Jun98 [ 0.18 ] * * Driver is now out of beta testing. * Support for parport has been added. * Now distributed with the ppa driver. * 12Jun98 [ 2.00 ] * * Err.. It appears that imm-2.00 was broken.... * 18Jun98 [ 2.01 ] * * Patch applied to sync this against the Linux 2.1.x kernel code * Included qboot_zip.sh * 21Jun98 [ 2.02 ] * * Other clean ups include the follow changes: * CONFIG_SCSI_PPA_HAVE_PEDANTIC => CONFIG_SCSI_IZIP_EPP16 * added CONFIG_SCSI_IZIP_SLOW_CTR option * [2.03] * Fix kernel panic on scsi timeout. 20Aug00 [2.04] * * Avoid io_request_lock problems. * John Cavan <[email protected]> 16Nov00 [2.05] */ /* ------ END OF USER CONFIGURABLE PARAMETERS ----- */ #include <linux/stddef.h> #include <linux/module.h> #include <linux/kernel.h> #include <linux/ioport.h> #include <linux/delay.h> #include <linux/proc_fs.h> #include <linux/stat.h> #include <linux/blkdev.h> #include <linux/sched.h> #include <linux/interrupt.h> #include <asm/io.h> #include <scsi/scsi_host.h> /* batteries not included :-) */ /* * modes in which the driver can operate */ #define IMM_AUTODETECT … #define IMM_NIBBLE … #define IMM_PS2 … #define IMM_EPP_8 … #define IMM_EPP_16 … #define IMM_EPP_32 … #define IMM_UNKNOWN … static char *IMM_MODE_STRING[] = …; /* other options */ #define IMM_BURST_SIZE … #define IMM_SELECT_TMO … #define IMM_SPIN_TMO … #define IMM_DEBUG … #define IN_EPP_MODE(x) … /* args to imm_connect */ #define CONNECT_EPP_MAYBE … #define CONNECT_NORMAL … #define r_dtr(x) … #define r_str(x) … #define r_ctr(x) … #define r_epp(x) … #define r_fifo(x) … /* On PCI is: base+0x400 != base_hi */ #define r_ecr(x) … #define w_dtr(x,y) … #define w_str(x,y) … #define w_epp(x,y) … #define w_fifo(x,y) … #define w_ecr(x,y) … #ifdef CONFIG_SCSI_IZIP_SLOW_CTR #define w_ctr(x,y) … #else #define w_ctr … #endif static inline struct scsi_pointer *imm_scsi_pointer(struct scsi_cmnd *cmd) { … } static int imm_engine(imm_struct *, struct scsi_cmnd *); #endif /* _IMM_H */