Skip to content
Snippets Groups Projects
Select Git revision
  • 550f985c968d21b9f4f9820b13391ea04b2aed3c
  • master default protected
  • android-msm-bullhead-3.10-nougat_kgdb_less_changes
  • android-msm-bullhead-3.10-nougat_kgdb
  • android-msm-bullhead-3.10-nougat_klist
  • android-4.4
  • android-msm-vega-4.4-oreo-daydream
  • android-msm-wahoo-4.4-p-preview-5
  • android-msm-wahoo-4.4-pie
  • android-msm-marlin-3.18-p-preview-5
  • android-msm-marlin-3.18-pie
  • android-msm-wahoo-2018.07-oreo-m2
  • android-msm-wahoo-2018.07-oreo-m4
  • android-msm-wahoo-4.4-p-preview-4
  • android-msm-bullhead-3.10-oreo-m6
  • android-msm-angler-3.10-oreo-m6
  • android-msm-marlin-3.18-p-preview-4
  • android-msm-stargazer-3.18-oreo-wear-dr
  • android-msm-catshark-3.18-oreo-wear-dr
  • android-msm-wahoo-4.4-oreo-m2
  • android-msm-wahoo-4.4-oreo-m4
  • android-daydreamos-8.0.0_r0.5
  • android-8.1.0_r0.92
  • android-8.1.0_r0.91
  • android-daydreamos-8.0.0_r0.4
  • android-p-preview-5_r0.2
  • android-p-preview-5_r0.1
  • android-9.0.0_r0.5
  • android-9.0.0_r0.4
  • android-9.0.0_r0.2
  • android-9.0.0_r0.1
  • android-8.1.0_r0.81
  • android-8.1.0_r0.80
  • android-8.1.0_r0.78
  • android-8.1.0_r0.76
  • android-8.1.0_r0.75
  • android-8.1.0_r0.72
  • android-8.1.0_r0.70
  • android-p-preview-4_r0.2
  • android-p-preview-4_r0.1
  • android-wear-8.0.0_r0.30
41 results

atmel_cs.c

Blame
  • atmel_cs.c 9.73 KiB
    /*** -*- linux-c -*- **********************************************************
    
         Driver for Atmel at76c502 at76c504 and at76c506 wireless cards.
    
            Copyright 2000-2001 ATMEL Corporation.
            Copyright 2003 Simon Kelley.
    
        This code was developed from version 2.1.1 of the Atmel drivers,
        released by Atmel corp. under the GPL in December 2002. It also
        includes code from the Linux aironet drivers (C) Benjamin Reed,
        and the Linux PCMCIA package, (C) David Hinds.
    
        For all queries about this code, please contact the current author,
        Simon Kelley <simon@thekelleys.org.uk> and not Atmel Corporation.
    
        This program is free software; you can redistribute it and/or modify
        it under the terms of the GNU General Public License as published by
        the Free Software Foundation; either version 2 of the License, or
        (at your option) any later version.
    
        This software is distributed in the hope that it will be useful,
        but WITHOUT ANY WARRANTY; without even the implied warranty of
        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
        GNU General Public License for more details.
    
        You should have received a copy of the GNU General Public License
        along with Atmel wireless lan drivers; if not, write to the Free Software
        Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    
    ******************************************************************************/
    
    #ifdef __IN_PCMCIA_PACKAGE__
    #include <pcmcia/k_compat.h>
    #endif
    #include <linux/init.h>
    #include <linux/kernel.h>
    #include <linux/module.h>
    #include <linux/ptrace.h>
    #include <linux/slab.h>
    #include <linux/string.h>
    #include <linux/netdevice.h>
    #include <linux/moduleparam.h>
    #include <linux/device.h>
    
    #include <pcmcia/cistpl.h>
    #include <pcmcia/cisreg.h>
    #include <pcmcia/ds.h>
    #include <pcmcia/ciscode.h>
    
    #include <asm/io.h>
    #include <linux/wireless.h>
    
    #include "atmel.h"
    
    
    /*====================================================================*/
    
    MODULE_AUTHOR("Simon Kelley");
    MODULE_DESCRIPTION("Support for Atmel at76c50x 802.11 wireless ethernet cards.");
    MODULE_LICENSE("GPL");
    MODULE_SUPPORTED_DEVICE("Atmel at76c50x PCMCIA cards");
    
    /*====================================================================*/
    
    static int atmel_config(struct pcmcia_device *link);
    static void atmel_release(struct pcmcia_device *link);
    
    static void atmel_detach(struct pcmcia_device *p_dev);
    
    typedef struct local_info_t {