1 /****************************************************************************
2  * Perceptive Solutions, Inc. PCI-2220I device driver for Linux.
3  *
4  * pci2220i.h - Linux Host Driver for PCI-2220i EIDE Adapters
5  *
6  * Copyright (c) 1997-1999 Perceptive Solutions, Inc.
7  * All Rights Reserved.
8  *
9  * Redistribution and use in source and binary forms, with or without
10  * modification, are permitted provided that redistributions of source
11  * code retain the above copyright notice and this comment without
12  * modification.
13  *
14  * Technical updates and product information at:
15  *  http://www.psidisk.com
16  *
17  * Please send questions, comments, bug reports to:
18  *  tech@psidisk.com Technical Support
19  *
20  ****************************************************************************/
21 #ifndef _PCI2220I_H
22 #define _PCI2220I_H
23 
24 #ifndef LINUX_VERSION_CODE
25 #include <linux/version.h>
26 #endif
27 #define	LINUXVERSION(v,p,s)    (((v)<<16) + ((p)<<8) + (s))
28 
29 // function prototypes
30 int Pci2220i_Detect			(Scsi_Host_Template *tpnt);
31 int Pci2220i_Command		(Scsi_Cmnd *SCpnt);
32 int Pci2220i_QueueCommand	(Scsi_Cmnd *SCpnt, void (*done)(Scsi_Cmnd *));
33 int Pci2220i_Abort			(Scsi_Cmnd *SCpnt);
34 int Pci2220i_Reset			(Scsi_Cmnd *SCpnt, unsigned int flags);
35 int Pci2220i_Release		(struct Scsi_Host *pshost);
36 int Pci2220i_BiosParam		(Disk *disk, kdev_t dev, int geom[]);
37 
38 #ifndef NULL
39 	#define NULL 0
40 #endif
41 
42 #define PCI2220I {					\
43 	proc_name:		"pci2220i",		\
44 	name:			"PCI-2220I/PCI-2240I",	\
45 	detect:			Pci2220i_Detect,	\
46 	release:		Pci2220i_Release,	\
47 	command:		Pci2220i_Command,	\
48 	queuecommand:		Pci2220i_QueueCommand,	\
49 	abort:			Pci2220i_Abort,		\
50 	reset:			Pci2220i_Reset,		\
51 	bios_param:		Pci2220i_BiosParam,	\
52 	can_queue:		1,			\
53 	this_id:		-1,			\
54 	sg_tablesize:		SG_ALL,			\
55 	cmd_per_lun:		1,			\
56 	present:		0,			\
57 	unchecked_isa_dma:	0,			\
58 	use_clustering:		DISABLE_CLUSTERING,	\
59 	use_new_eh_code:	0			\
60 }
61 #endif
62