1#ifndef _ATP870U_H
2
3/* $Id: atp870u.h,v 1.1.1.1 2008/10/15 03:26:49 james26_jang Exp $
4
5 * Header file for the ACARD 870U/W driver for Linux
6 *
7 * $Log: atp870u.h,v $
8 * Revision 1.1.1.1  2008/10/15 03:26:49  james26_jang
9 * Initial.
10 *
11 * Revision 1.1.1.1  2008/07/21 09:15:21  james26_jang
12 * New UI, New QoS, New wireless driver(4.151.10.29), ipmonitor.
13 *
14 * Revision 1.1.1.1  2008/07/02 14:39:37  james26_jang
15 * 4.100.10.29, New QoS and New UI.
16 *
17 * Revision 1.1.1.1  2003/02/03 22:37:52  mhuang
18 * LINUX_2_4 branch snapshot from linux-mips.org CVS
19 *
20 * Revision 1.0  1997/05/07  15:09:00  root
21 * Initial revision
22 *
23 */
24
25#include <linux/types.h>
26#include <linux/kdev_t.h>
27
28/* I/O Port */
29
30#define MAX_CDB 12
31#define MAX_SENSE 14
32
33int atp870u_detect(Scsi_Host_Template *);
34int atp870u_command(Scsi_Cmnd *);
35int atp870u_queuecommand(Scsi_Cmnd *, void (*done) (Scsi_Cmnd *));
36int atp870u_abort(Scsi_Cmnd *);
37int atp870u_reset(Scsi_Cmnd *, unsigned int);
38int atp870u_biosparam(Disk *, kdev_t, int *);
39int atp870u_release(struct Scsi_Host *);
40void send_s870(unsigned char);
41
42#define qcnt		32
43#define ATP870U_SCATTER 128
44#define ATP870U_CMDLUN 1
45
46#ifndef NULL
47#define NULL 0
48#endif
49
50extern const char *atp870u_info(struct Scsi_Host *);
51
52extern int atp870u_proc_info(char *, char **, off_t, int, int, int);
53
54#define ATP870U {						\
55	next: NULL,						\
56	module: NULL,						\
57	proc_info: atp870u_proc_info,				\
58	name: NULL,						\
59	detect: atp870u_detect, 				\
60	release: atp870u_release,				\
61	info: atp870u_info,					\
62	command: atp870u_command,				\
63	queuecommand: atp870u_queuecommand,			\
64	eh_strategy_handler: NULL,				\
65	eh_abort_handler: NULL, 				\
66	eh_device_reset_handler: NULL,				\
67	eh_bus_reset_handler: NULL,				\
68	eh_host_reset_handler: NULL,				\
69	abort: atp870u_abort,					\
70	reset: atp870u_reset,					\
71	slave_attach: NULL,					\
72	bios_param: atp870u_biosparam,				\
73	can_queue: qcnt,	 /* max simultaneous cmds      */\
74	this_id: 7,	       /* scsi id of host adapter    */\
75	sg_tablesize: ATP870U_SCATTER,	/* max scatter-gather cmds    */\
76	cmd_per_lun: ATP870U_CMDLUN,	/* cmds per lun (linked cmds) */\
77	present: 0,		/* number of 7xxx's present   */\
78	unchecked_isa_dma: 0,	/* no memory DMA restrictions */\
79	use_clustering: ENABLE_CLUSTERING,			\
80	use_new_eh_code: 0					\
81}
82
83#endif
84