#include <linux/blkdev.h>
#include <linux/interrupt.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/string.h>
#include <linux/ioport.h>
#include <linux/proc_fs.h>
#include <linux/stat.h>
#include <linux/init.h>
#include <linux/device.h>
#include <linux/eisa.h>
#include <linux/dma-mapping.h>
#include <linux/gfp.h>
#include <asm/dma.h>
#include <asm/io.h>
#include <scsi/scsi.h>
#include <scsi/scsi_cmnd.h>
#include <scsi/scsi_device.h>
#include <scsi/scsi_eh.h>
#include <scsi/scsi_host.h>
#include <scsi/scsi_tcq.h>
#include "aha1740.h"
#ifdef DEBUG
#define DEB …
#else
#define DEB(x) …
#endif
struct aha1740_hostdata { … };
struct aha1740_sg { … };
#define HOSTDATA(host) …
static inline struct ecb *ecb_dma_to_cpu (struct Scsi_Host *host,
dma_addr_t dma)
{ … }
static inline dma_addr_t ecb_cpu_to_dma (struct Scsi_Host *host, void *cpu)
{ … }
static int aha1740_show_info(struct seq_file *m, struct Scsi_Host *shpnt)
{ … }
static int aha1740_makecode(unchar *sense, unchar *status)
{ … }
static int aha1740_test_port(unsigned int base)
{ … }
static irqreturn_t aha1740_intr_handle(int irq, void *dev_id)
{ … }
static int aha1740_queuecommand_lck(struct scsi_cmnd *SCpnt)
{ … }
static DEF_SCSI_QCMD(aha1740_queuecommand)
static void aha1740_getconfig(unsigned int base, unsigned int *irq_level,
unsigned int *irq_type,
unsigned int *translation)
{ … }
static int aha1740_biosparam(struct scsi_device *sdev,
struct block_device *dev,
sector_t capacity, int* ip)
{ … }
static int aha1740_eh_abort_handler (struct scsi_cmnd *dummy)
{ … }
static const struct scsi_host_template aha1740_template = …;
static int aha1740_probe (struct device *dev)
{ … }
static int aha1740_remove (struct device *dev)
{ … }
static struct eisa_device_id aha1740_ids[] = …;
MODULE_DEVICE_TABLE(eisa, aha1740_ids);
static struct eisa_driver aha1740_driver = …;
static __init int aha1740_init (void)
{ … }
static __exit void aha1740_exit (void)
{ … }
module_init(…) …;
module_exit (aha1740_exit);
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;