Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   1) /*======================================================================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   2) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   3)     A driver for Adaptec AHA152X-compatible PCMCIA SCSI cards.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   4) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   5)     This driver supports the Adaptec AHA-1460, the New Media Bus
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   6)     Toaster, and the New Media Toast & Jam.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   7)     
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   8)     aha152x_cs.c 1.54 2000/06/12 21:27:25
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   9) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  10)     The contents of this file are subject to the Mozilla Public
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  11)     License Version 1.1 (the "License"); you may not use this file
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  12)     except in compliance with the License. You may obtain a copy of
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  13)     the License at http://www.mozilla.org/MPL/
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  14) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  15)     Software distributed under the License is distributed on an "AS
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  16)     IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  17)     implied. See the License for the specific language governing
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  18)     rights and limitations under the License.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  19) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  20)     The initial developer of the original code is David A. Hinds
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  21)     <dahinds@users.sourceforge.net>.  Portions created by David A. Hinds
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  22)     are Copyright (C) 1999 David A. Hinds.  All Rights Reserved.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  23) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  24)     Alternatively, the contents of this file may be used under the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  25)     terms of the GNU General Public License version 2 (the "GPL"), in which
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  26)     case the provisions of the GPL are applicable instead of the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  27)     above.  If you wish to allow the use of your version of this file
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  28)     only under the terms of the GPL and not to allow others to use
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  29)     your version of this file under the MPL, indicate your decision
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  30)     by deleting the provisions above and replace them with the notice
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  31)     and other provisions required by the GPL.  If you do not delete
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  32)     the provisions above, a recipient may use your version of this
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  33)     file under either the MPL or the GPL.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  34)     
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  35) ======================================================================*/
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  36) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  37) #include <linux/module.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  38) #include <linux/init.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  39) #include <linux/kernel.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  40) #include <linux/slab.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  41) #include <linux/string.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  42) #include <linux/ioport.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  43) #include <scsi/scsi.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  44) #include <linux/major.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  45) #include <linux/blkdev.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  46) #include <scsi/scsi_ioctl.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  47) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  48) #include "scsi.h"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  49) #include <scsi/scsi_host.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  50) #include "aha152x.h"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  51) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  52) #include <pcmcia/cistpl.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  53) #include <pcmcia/ds.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  54) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  55) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  56) /*====================================================================*/
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  57) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  58) /* Parameters that can be set with 'insmod' */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  59) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  60) /* SCSI bus setup options */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  61) static int host_id = 7;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  62) static int reconnect = 1;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  63) static int parity = 1;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  64) static int synchronous = 1;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  65) static int reset_delay = 100;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  66) static int ext_trans = 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  67) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  68) module_param(host_id, int, 0);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  69) module_param(reconnect, int, 0);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  70) module_param(parity, int, 0);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  71) module_param(synchronous, int, 0);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  72) module_param(reset_delay, int, 0);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  73) module_param(ext_trans, int, 0);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  74) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  75) MODULE_LICENSE("Dual MPL/GPL");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  76) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  77) /*====================================================================*/
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  78) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  79) typedef struct scsi_info_t {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  80) 	struct pcmcia_device	*p_dev;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  81)     struct Scsi_Host	*host;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  82) } scsi_info_t;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  83) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  84) static void aha152x_release_cs(struct pcmcia_device *link);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  85) static void aha152x_detach(struct pcmcia_device *p_dev);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  86) static int aha152x_config_cs(struct pcmcia_device *link);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  87) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  88) static int aha152x_probe(struct pcmcia_device *link)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  89) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  90)     scsi_info_t *info;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  91) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  92)     dev_dbg(&link->dev, "aha152x_attach()\n");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  93) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  94)     /* Create new SCSI device */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  95)     info = kzalloc(sizeof(*info), GFP_KERNEL);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  96)     if (!info) return -ENOMEM;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  97)     info->p_dev = link;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  98)     link->priv = info;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  99) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 100)     link->config_flags |= CONF_ENABLE_IRQ | CONF_AUTO_SET_IO;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 101)     link->config_regs = PRESENT_OPTION;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 102) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 103)     return aha152x_config_cs(link);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 104) } /* aha152x_attach */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 105) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 106) /*====================================================================*/
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 107) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 108) static void aha152x_detach(struct pcmcia_device *link)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 109) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 110)     dev_dbg(&link->dev, "aha152x_detach\n");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 111) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 112)     aha152x_release_cs(link);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 113) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 114)     /* Unlink device structure, free bits */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 115)     kfree(link->priv);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 116) } /* aha152x_detach */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 117) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 118) /*====================================================================*/
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 119) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 120) static int aha152x_config_check(struct pcmcia_device *p_dev, void *priv_data)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 121) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 122) 	p_dev->io_lines = 10;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 123) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 124) 	/* For New Media T&J, look for a SCSI window */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 125) 	if ((p_dev->resource[0]->end < 0x20) &&
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 126) 		(p_dev->resource[1]->end >= 0x20))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 127) 		p_dev->resource[0]->start = p_dev->resource[1]->start;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 128) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 129) 	if (p_dev->resource[0]->start >= 0xffff)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 130) 		return -EINVAL;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 131) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 132) 	p_dev->resource[1]->start = p_dev->resource[1]->end = 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 133) 	p_dev->resource[0]->end = 0x20;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 134) 	p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 135) 	p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_AUTO;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 136) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 137) 	return pcmcia_request_io(p_dev);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 138) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 139) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 140) static int aha152x_config_cs(struct pcmcia_device *link)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 141) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 142)     scsi_info_t *info = link->priv;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 143)     struct aha152x_setup s;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 144)     int ret;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 145)     struct Scsi_Host *host;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 146) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 147)     dev_dbg(&link->dev, "aha152x_config\n");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 148) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 149)     ret = pcmcia_loop_config(link, aha152x_config_check, NULL);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 150)     if (ret)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 151) 	    goto failed;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 152) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 153)     if (!link->irq)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 154) 	    goto failed;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 155) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 156)     ret = pcmcia_enable_device(link);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 157)     if (ret)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 158) 	    goto failed;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 159)     
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 160)     /* Set configuration options for the aha152x driver */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 161)     memset(&s, 0, sizeof(s));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 162)     s.conf        = "PCMCIA setup";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 163)     s.io_port     = link->resource[0]->start;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 164)     s.irq         = link->irq;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 165)     s.scsiid      = host_id;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 166)     s.reconnect   = reconnect;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 167)     s.parity      = parity;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 168)     s.synchronous = synchronous;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 169)     s.delay       = reset_delay;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 170)     if (ext_trans)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 171)         s.ext_trans = ext_trans;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 172) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 173)     host = aha152x_probe_one(&s);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 174)     if (host == NULL) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 175) 	printk(KERN_INFO "aha152x_cs: no SCSI devices found\n");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 176) 	goto failed;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 177)     }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 178) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 179)     info->host = host;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 180) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 181)     return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 182) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 183) failed:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 184)     aha152x_release_cs(link);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 185)     return -ENODEV;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 186) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 187) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 188) static void aha152x_release_cs(struct pcmcia_device *link)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 189) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 190) 	scsi_info_t *info = link->priv;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 191) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 192) 	aha152x_release(info->host);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 193) 	pcmcia_disable_device(link);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 194) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 195) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 196) static int aha152x_resume(struct pcmcia_device *link)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 197) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 198) 	scsi_info_t *info = link->priv;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 199) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 200) 	aha152x_host_reset_host(info->host);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 201) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 202) 	return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 203) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 204) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 205) static const struct pcmcia_device_id aha152x_ids[] = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 206) 	PCMCIA_DEVICE_PROD_ID123("New Media", "SCSI", "Bus Toaster", 0xcdf7e4cc, 0x35f26476, 0xa8851d6e),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 207) 	PCMCIA_DEVICE_PROD_ID123("NOTEWORTHY", "SCSI", "Bus Toaster", 0xad89c6e8, 0x35f26476, 0xa8851d6e),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 208) 	PCMCIA_DEVICE_PROD_ID12("Adaptec, Inc.", "APA-1460 SCSI Host Adapter", 0x24ba9738, 0x3a3c3d20),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 209) 	PCMCIA_DEVICE_PROD_ID12("New Media Corporation", "Multimedia Sound/SCSI", 0x085a850b, 0x80a6535c),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 210) 	PCMCIA_DEVICE_PROD_ID12("NOTEWORTHY", "NWCOMB02 SCSI/AUDIO COMBO CARD", 0xad89c6e8, 0x5f9a615b),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 211) 	PCMCIA_DEVICE_NULL,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 212) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 213) MODULE_DEVICE_TABLE(pcmcia, aha152x_ids);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 214) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 215) static struct pcmcia_driver aha152x_cs_driver = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 216) 	.owner		= THIS_MODULE,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 217) 	.name		= "aha152x_cs",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 218) 	.probe		= aha152x_probe,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 219) 	.remove		= aha152x_detach,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 220) 	.id_table       = aha152x_ids,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 221) 	.resume		= aha152x_resume,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 222) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 223) module_pcmcia_driver(aha152x_cs_driver);