/*====================================================================== A driver for Adaptec AHA152X-compatible PCMCIA SCSI cards. This driver supports the Adaptec AHA-1460, the New Media Bus Toaster, and the New Media Toast & Jam. aha152x_cs.c 1.54 2000/06/12 21:27:25 The contents of this file are subject to the Mozilla Public License Version 1.1 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.mozilla.org/MPL/ Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. The initial developer of the original code is David A. Hinds <[email protected]>. Portions created by David A. Hinds are Copyright (C) 1999 David A. Hinds. All Rights Reserved. Alternatively, the contents of this file may be used under the terms of the GNU General Public License version 2 (the "GPL"), in which case the provisions of the GPL are applicable instead of the above. If you wish to allow the use of your version of this file only under the terms of the GPL and not to allow others to use your version of this file under the MPL, indicate your decision by deleting the provisions above and replace them with the notice and other provisions required by the GPL. If you do not delete the provisions above, a recipient may use your version of this file under either the MPL or the GPL. ======================================================================*/ #include <linux/module.h> #include <linux/init.h> #include <linux/kernel.h> #include <linux/slab.h> #include <linux/string.h> #include <linux/ioport.h> #include <linux/major.h> #include <linux/blkdev.h> #include <scsi/scsi.h> #include <scsi/scsi_cmnd.h> #include <scsi/scsi_device.h> #include <scsi/scsi_eh.h> #include <scsi/scsi_host.h> #include <scsi/scsi_ioctl.h> #include <scsi/scsi_tcq.h> #include "aha152x.h" #include <pcmcia/cistpl.h> #include <pcmcia/ds.h> /*====================================================================*/ /* Parameters that can be set with 'insmod' */ /* SCSI bus setup options */ static int host_id = …; static int reconnect = …; static int parity = …; static int synchronous = …; static int reset_delay = …; static int ext_trans = …; module_param(host_id, int, 0); module_param(reconnect, int, 0); module_param(parity, int, 0); module_param(synchronous, int, 0); module_param(reset_delay, int, 0); module_param(ext_trans, int, 0); MODULE_DESCRIPTION(…) …; MODULE_LICENSE(…) …; /*====================================================================*/ scsi_info_t; static void aha152x_release_cs(struct pcmcia_device *link); static void aha152x_detach(struct pcmcia_device *p_dev); static int aha152x_config_cs(struct pcmcia_device *link); static int aha152x_probe(struct pcmcia_device *link) { … } /* aha152x_attach */ /*====================================================================*/ static void aha152x_detach(struct pcmcia_device *link) { … } /* aha152x_detach */ /*====================================================================*/ static int aha152x_config_check(struct pcmcia_device *p_dev, void *priv_data) { … } static int aha152x_config_cs(struct pcmcia_device *link) { … } static void aha152x_release_cs(struct pcmcia_device *link) { … } static int aha152x_resume(struct pcmcia_device *link) { … } static const struct pcmcia_device_id aha152x_ids[] = …; MODULE_DEVICE_TABLE(…); static struct pcmcia_driver aha152x_cs_driver = …; module_pcmcia_driver(…);