1 /* @(#)aha274x.h 1.11 94/09/06 jda */ 2 3 /* 4 * Adaptec 274x 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 aha274x_h 23 #define aha274x_h 24 25 #define AHA274X_MAXSCB 4 26 #define AHA274X_H_VERSION "1.11" 27 28 /* 29 * Scsi_Host_Template (see hosts.h) for 274x - some fields 30 * to do with card config are filled in after the card is 31 * detected. 32 */ 33 #define AHA274X { \ 34 NULL, \ 35 NULL, \ 36 NULL, \ 37 aha274x_detect, \ 38 NULL, \ 39 aha274x_info, \ 40 aha274x_command, \ 41 aha274x_queue, \ 42 aha274x_abort, \ 43 aha274x_reset, \ 44 NULL, \ 45 aha274x_biosparam, \ 46 AHA274X_MAXSCB, /* max simultaneous cmds */\ 47 -1, /* scsi id of host adapter */\ 48 SG_ALL, /* max scatter-gather cmds */\ 49 1, /* cmds per lun (linked cmds) */\ 50 0, /* number of 274x's present */\ 51 0, /* no memory DMA restrictions */\ 52 DISABLE_CLUSTERING \ 53 } 54 55 extern int aha274x_queue(Scsi_Cmnd *, void (*)(Scsi_Cmnd *)); 56 extern int aha274x_biosparam(Disk *, int, int[]); 57 extern int aha274x_detect(Scsi_Host_Template *); 58 extern int aha274x_command(Scsi_Cmnd *); 59 extern int aha274x_abort(Scsi_Cmnd *); 60 extern int aha274x_reset(Scsi_Cmnd *); 61 extern const char *aha274x_info(struct Scsi_Host *); 62 63 #endif