- */
-
-#include <linux/types.h>
-#include <linux/kdev_t.h>
-
-/* I/O Port */
-
-#define MAX_CDB 12
-#define MAX_SENSE 14
-
-int atp870u_detect(Scsi_Host_Template *);
-int atp870u_command(Scsi_Cmnd *);
-int atp870u_queuecommand(Scsi_Cmnd *, void (*done) (Scsi_Cmnd *));
-int atp870u_abort(Scsi_Cmnd *);
-int atp870u_reset(Scsi_Cmnd *, unsigned int);
-int atp870u_biosparam(Disk *, kdev_t, int *);
-int atp870u_release(struct Scsi_Host *);
-void send_s870(unsigned char);
-
-#define qcnt 32
-#define ATP870U_SCATTER 128
-#define ATP870U_CMDLUN 1
-
-#ifndef NULL
-#define NULL 0
-#endif
-
-extern const char *atp870u_info(struct Scsi_Host *);
-
-extern int atp870u_proc_info(char *, char **, off_t, int, int, int);
-
-#define ATP870U { \
- next: NULL, \
- module: NULL, \
- proc_info: atp870u_proc_info, \
- name: NULL, \
- detect: atp870u_detect, \
- release: atp870u_release, \
- info: atp870u_info, \
- command: atp870u_command, \
- queuecommand: atp870u_queuecommand, \
- eh_strategy_handler: NULL, \
- eh_abort_handler: NULL, \
- eh_device_reset_handler: NULL, \
- eh_bus_reset_handler: NULL, \
- eh_host_reset_handler: NULL, \
- abort: atp870u_abort, \
- reset: atp870u_reset, \
- slave_attach: NULL, \
- bios_param: atp870u_biosparam, \
- can_queue: qcnt, /* max simultaneous cmds */\
- this_id: 7, /* scsi id of host adapter */\
- sg_tablesize: ATP870U_SCATTER, /* max scatter-gather cmds */\
- cmd_per_lun: ATP870U_CMDLUN, /* cmds per lun (linked cmds) */\
- present: 0, /* number of 7xxx's present */\
- unchecked_isa_dma: 0, /* no memory DMA restrictions */\
- use_clustering: ENABLE_CLUSTERING, \
- use_new_eh_code: 0 \
-}
-
-#endif
+ * Revision 1.2 2005/01/25 05:58:34 wilsonc
+ * 1. Check-in Acard ATP865A Driver source code
+ *\r
+ * Revision 0.50 2003/12/26 11:30:00 root\r
+ *\r
+ */\r
+\r
+#include <linux/types.h>\r
+#include <linux/kdev_t.h>\r
+\r
+\r
+#define ATP865_DEVID1 0x0008\r
+#define ATP865_DEVID2 0x0009\r
+#define ATP867_DEVID1 0x000A\r
+\r
+\r
+/* I/O Port */\r
+\r
+#define MAX_CDB 12\r
+#define MAX_SENSE 14\r
+\r
+int atp86x_detect(Scsi_Host_Template *);\r
+int atp86x_command(Scsi_Cmnd *);\r
+int atp86x_queuecommand(Scsi_Cmnd *, void (*done) (Scsi_Cmnd *));\r
+int atp86x_abort(Scsi_Cmnd *);\r
+int atp86x_reset(Scsi_Cmnd *, unsigned int);\r
+int atp86x_biosparam(Disk *, kdev_t, int *);\r
+int atp86x_release(struct Scsi_Host *);\r
+\r
+//#define qcnt 32\r
+//#define qcnt1 8\r
+#define qcnt1 32\r
+#define qcnt (qcnt1*4)\r
+\r
+#define ATP86X_SCATTER 32\r
+#define ATP86X_CMDLUN 2\r
+\r
+#ifndef NULL\r
+#define NULL 0\r
+#endif\r
+\r
+extern const char *atp86x_info(struct Scsi_Host *);\r
+\r
+extern int atp86x_proc_info(char *, char **, off_t, int, int, int);\r
+\r
+#endif\r
+\r