1 /* @(#)aic7xxx.h 1.14 94/11/30 jda */ 2 3 /* 4 * Adaptec 274x/284x/294x device driver for Linux. 5 * Copyright (c) 1994 The University of Calgary Department of Computer Science. 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by 9 * the Free Software Foundation; either version 2 of the License, or 10 * (at your option) any later version. 11 * 12 * This program is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with this program; if not, write to the Free Software 19 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 20 */ 21 22 #ifndef aic7xxx_h 23 #define aic7xxx_h 24 25 #define AIC7XXX_H_VERSION "1.14" 26 27 /* 28 * Scsi_Host_Template (see hosts.h) for 274x - some fields 29 * to do with card config are filled in after the card is 30 * detected. 31 */ 32 #define AIC7XXX { \ 33 NULL, \ 34 NULL, \ 35 NULL, \ 36 aic7xxx_detect, \ 37 NULL, \ 38 aic7xxx_info, \ 39 NULL, \ 40 aic7xxx_queue, \ 41 aic7xxx_abort, \ 42 aic7xxx_reset, \ 43 NULL, \ 44 aic7xxx_biosparam, \ 45 -1, /* max simultaneous cmds */\ 46 -1, /* scsi id of host adapter */\ 47 SG_ALL, /* max scatter-gather cmds */\ 48 1, /* cmds per lun (linked cmds) */\ 49 0, /* number of 274x's present */\ 50 0, /* no memory DMA restrictions */\ 51 DISABLE_CLUSTERING \ 52 } 53 54 extern int aic7xxx_queue(Scsi_Cmnd *, void (*)(Scsi_Cmnd *)); 55 extern int aic7xxx_biosparam(Disk *, int, int[]); 56 extern int aic7xxx_detect(Scsi_Host_Template *); 57 extern int aic7xxx_command(Scsi_Cmnd *); 58 extern int aic7xxx_abort(Scsi_Cmnd *); 59 extern int aic7xxx_reset(Scsi_Cmnd *); 60 61 extern const char *aic7xxx_info(struct Scsi_Host *); 62 63 #endif