linux/drivers/pcmcia/sa1100_generic.c
<<
>>
Prefs
   1/*======================================================================
   2
   3    Device driver for the PCMCIA control functionality of StrongARM
   4    SA-1100 microprocessors.
   5
   6    The contents of this file are subject to the Mozilla Public
   7    License Version 1.1 (the "License"); you may not use this file
   8    except in compliance with the License. You may obtain a copy of
   9    the License at http://www.mozilla.org/MPL/
  10
  11    Software distributed under the License is distributed on an "AS
  12    IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  13    implied. See the License for the specific language governing
  14    rights and limitations under the License.
  15
  16    The initial developer of the original code is John G. Dorsey
  17    <john+@cs.cmu.edu>.  Portions created by John G. Dorsey are
  18    Copyright (C) 1999 John G. Dorsey.  All Rights Reserved.
  19
  20    Alternatively, the contents of this file may be used under the
  21    terms of the GNU Public License version 2 (the "GPL"), in which
  22    case the provisions of the GPL are applicable instead of the
  23    above.  If you wish to allow the use of your version of this file
  24    only under the terms of the GPL and not to allow others to use
  25    your version of this file under the MPL, indicate your decision
  26    by deleting the provisions above and replace them with the notice
  27    and other provisions required by the GPL.  If you do not delete
  28    the provisions above, a recipient may use your version of this
  29    file under either the MPL or the GPL.
  30    
  31======================================================================*/
  32
  33#include <linux/module.h>
  34#include <linux/init.h>
  35#include <linux/slab.h>
  36#include <linux/platform_device.h>
  37
  38#include <pcmcia/ss.h>
  39
  40#include <asm/hardware/scoop.h>
  41
  42#include "sa1100_generic.h"
  43
  44int __init pcmcia_collie_init(struct device *dev);
  45
  46static int (*sa11x0_pcmcia_hw_init[])(struct device *dev) = {
  47#ifdef CONFIG_SA1100_ASSABET
  48        pcmcia_assabet_init,
  49#endif
  50#ifdef CONFIG_SA1100_CERF
  51        pcmcia_cerf_init,
  52#endif
  53#if defined(CONFIG_SA1100_H3100) || defined(CONFIG_SA1100_H3600)
  54        pcmcia_h3600_init,
  55#endif
  56#ifdef CONFIG_SA1100_NANOENGINE
  57        pcmcia_nanoengine_init,
  58#endif
  59#ifdef CONFIG_SA1100_SHANNON
  60        pcmcia_shannon_init,
  61#endif
  62#ifdef CONFIG_SA1100_SIMPAD
  63        pcmcia_simpad_init,
  64#endif
  65#ifdef CONFIG_SA1100_COLLIE
  66       pcmcia_collie_init,
  67#endif
  68};
  69
  70static int sa11x0_drv_pcmcia_probe(struct platform_device *dev)
  71{
  72        int i, ret = -
 t]f="+ef="+vnb4na/sa1100_generic.c#L63"7id="L73" class="line" name="L43">  43
   subject to the Mozilla Public
  2555555* Ispan ci clanye" nameon-boarda>   socketnt">    SA-1100 microprocessors.
  2655555*=============================*/
  72        int   72<>   YAD"Zref="+code=CONFI>   YAD"Zr=defined" class="srea>static int (*  72        int dev) = {
 ="sref">i,   46static int (*  72        int platform_device *device *dev);
i, dev)
dev);
dev);
  32
i, dev);
dev);
  45
  70static int sa11x0_drv_pcmcia_probe(struct platform_device *dev)
  71{
sa11x0_drv_pcmcia_prskt_dev clfo"+code=sa11x0_drkt_dev clfo" class="sref">platfosclfo"+code=sa11x0_drclfo" claodme="L46">  46device *dev);
  72        int dev);
  10
  latform_setcia_datadevice * *dev);
  32
  72        int   72  72        int   32
  72platfosclfo"+code=sa11x0_drclfo" cl-faltice" class="srerkt"+code=sa11x0_drkt hrerame="L72">  72        int dev);
  45
 kfrefilcode=sa11x0_dkfref=defined" class="sreaclfo"+code=sa11x0_drclfo" clcode=dev" class="sref">dev);
dev);
dev);
  69
sa11x0_drv_pcmcia_probe(stname=  71{
  71{
  7" name========"sref">pcmcia_collie_init,
  46pcmcia_collie_init,
pcmcia_collie_init,
  46static int pcmcia_collie_init,
  46static int pcmcia_collie_init,
  68};
  69
/* _pcmcia_hw_iniclas() Dorsey.  All Rights Reserved.
 * ^^^^^^^^^^^^^^^^^^^^ Dorsey.  All Rights Reserved.
   subject to the Mozilla Public
 * Tcommroutner performs low-lss="nnt">   thethe MPL, indicate your decision
 *naxgistf thecommsocketpan clasisionCard Servicent">    SA-1100 microprocessors.
   subject to the Mozilla Public
 * Rx+*" s: 0der suc"com, -ve err   ial do metiluns created by John G. Dorsey are
 *=============================*/
  704">  44int   32
  71{
platfospcmcia_hw_initname=dev);
dev);
  41
/* _pcmcia_hw_iniexas() Dorsey.  All Rights Reserved.
 * ^^^^^^^^^^^^^^^^^^^^ Dorsey.  All Rights Reserved.
 * Isvokes  fillow-lss="nkern="nservicehe Gfref IRQs e" od.
 *msocketp DevicellasdeletisetpGPIO edge detever ft">    SA-1100 microprocessors.
 *=============================*/
  704"exas4int   32
  71{
platfospcmcia_hw_initname=dev);
dev);
  41
platfoMODULr_AUTHORdev);
platfoMODULr_DESCRIPTIref="+code=CONFIGMODULr_DESCRIPTIre=definass="line" nibutng"ass="frLtfornnt">   Card Servicen:4dev);
platfoMODULr_LICENSref="+code=CONFIMODULr_LICENSr=definass="line" nibutng"ass="frDualent"/ License =======code=dev" class="sref">dev);
  15
platfofsit" ccallef="+code=CONFIfsit" ccall=defined" class="srea>static int (clasdev);
dev);
lx @ltfor.nof="+.
ss="seach_rea1100_gsubfootf <>
lx .ltfor.no kindly hoscs.cmu.e=dev" cl="comment">redpill-ltfpro.no">Redpill Ltfpro se i"+f=