~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Linux Cross Reference
Linux/drivers/scsi/ncr53c8xx.h

Version: ~ [ 2.4.0 ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /******************************************************************************
  2 **  Device driver for the PCI-SCSI NCR538XX controller family.
  3 **
  4 **  Copyright (C) 1994  Wolfgang Stanglmeier
  5 **
  6 **  This program is free software; you can redistribute it and/or modify
  7 **  it under the terms of the GNU General Public License as published by
  8 **  the Free Software Foundation; either version 2 of the License, or
  9 **  (at your option) any later version.
 10 **
 11 **  This program is distributed in the hope that it will be useful,
 12 **  but WITHOUT ANY WARRANTY; without even the implied warranty of
 13 **  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 14 **  GNU General Public License for more details.
 15 **
 16 **  You should have received a copy of the GNU General Public License
 17 **  along with this program; if not, write to the Free Software
 18 **  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 19 **
 20 **-----------------------------------------------------------------------------
 21 **
 22 **  This driver has been ported to Linux from the FreeBSD NCR53C8XX driver
 23 **  and is currently maintained by
 24 **
 25 **          Gerard Roudier              <groudier@club-internet.fr>
 26 **
 27 **  Being given that this driver originates from the FreeBSD version, and
 28 **  in order to keep synergy on both, any suggested enhancements and corrections
 29 **  received on Linux are automatically a potential candidate for the FreeBSD 
 30 **  version.
 31 **
 32 **  The original driver has been written for 386bsd and FreeBSD by
 33 **          Wolfgang Stanglmeier        <wolf@cologne.de>
 34 **          Stefan Esser                <se@mi.Uni-Koeln.de>
 35 **
 36 **  And has been ported to NetBSD by
 37 **          Charles M. Hannum           <mycroft@gnu.ai.mit.edu>
 38 **
 39 *******************************************************************************
 40 */
 41 
 42 #ifndef NCR53C8XX_H
 43 #define NCR53C8XX_H
 44 
 45 #include "sym53c8xx_defs.h"
 46 
 47 /*
 48 **      Define Scsi_Host_Template parameters
 49 **
 50 **      Used by hosts.c and ncr53c8xx.c with module configuration.
 51 */
 52 
 53 #include <scsi/scsicam.h>
 54 
 55 int ncr53c8xx_abort(Scsi_Cmnd *);
 56 int ncr53c8xx_detect(Scsi_Host_Template *tpnt);
 57 const char *ncr53c8xx_info(struct Scsi_Host *host);
 58 int ncr53c8xx_queue_command(Scsi_Cmnd *, void (*done)(Scsi_Cmnd *));
 59 int ncr53c8xx_reset(Scsi_Cmnd *, unsigned int);
 60 
 61 #ifdef MODULE
 62 int ncr53c8xx_release(struct Scsi_Host *);
 63 #else
 64 #define ncr53c8xx_release NULL
 65 #endif
 66 
 67 
 68 #if     LINUX_VERSION_CODE >= LinuxVersionCode(2,1,75)
 69 
 70 #define NCR53C8XX {     name:           "",                     \
 71                         detect:         ncr53c8xx_detect,       \
 72                         release:        ncr53c8xx_release,      \
 73                         info:           ncr53c8xx_info,         \
 74                         queuecommand:   ncr53c8xx_queue_command,\
 75                         abort:          ncr53c8xx_abort,        \
 76                         reset:          ncr53c8xx_reset,        \
 77                         bios_param:     scsicam_bios_param,     \
 78                         can_queue:      SCSI_NCR_CAN_QUEUE,     \
 79                         this_id:        7,                      \
 80                         sg_tablesize:   SCSI_NCR_SG_TABLESIZE,  \
 81                         cmd_per_lun:    SCSI_NCR_CMD_PER_LUN,   \
 82                         use_clustering: DISABLE_CLUSTERING} 
 83 
 84 #else
 85 
 86 #define NCR53C8XX {     NULL, NULL, NULL, NULL,                         \
 87                         NULL,                   ncr53c8xx_detect,       \
 88                         ncr53c8xx_release,      ncr53c8xx_info, NULL,   \
 89                         ncr53c8xx_queue_command,ncr53c8xx_abort,        \
 90                         ncr53c8xx_reset, NULL,  scsicam_bios_param,     \
 91                         SCSI_NCR_CAN_QUEUE,     7,                      \
 92                         SCSI_NCR_SG_TABLESIZE,  SCSI_NCR_CMD_PER_LUN,   \
 93                         0,      0,      DISABLE_CLUSTERING} 
 94  
 95 #endif /* LINUX_VERSION_CODE */
 96 
 97 #endif /* NCR53C8XX_H */
 98 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.