linux/drivers/pcmcia/pxa2xx_e740.c
<<
>>
Prefs
   1/*
   2 * Toshiba e740 PCMCIA specific routines.
   3 *
   4 * (c) 2004 Ian Molton <spyro@f2s.com>
   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 version 2 as
   8 * published by the Free Software Foundation.
   9 */
  10
  11#include <linux/init.h>
  12#include <linux/module.h>
  13#include <linux/kernel.h>
  14#include <linux/errno.h>
  15#include <linux/gpio.h>
  16#include <linux/interrupt.h>
  17#include <linux/platform_device.h>
  18
  19#include <mach/eseries-gpio.h>
  20
  21#include <asm/irq.h>
  212#include <
  
  
 incq.h| ej,6E
	  >
 2" i/asm-blackfin/irq2 
 inc66E
	 j>
  
  &2t;
#include <soc_id=""co
	  
e < nam_" clas_hw_t;
e <soc_" clas_sockeaxx_e *> e <skaxx_e)740.c#L20" id="L20" class="line" name="L2t.h&2t; e <skaxx_e-s="co e <nrxx_e == 0) {740.c#L20" id="L20" class="line" name="L28"> 18<2a> e <skaxx_e-s="co e <s/drxx_e[o e <SOC_STAT_CDxx_e].o e <ludexx_e = > _CD0"> e <GPIO_Enam_="L2">_CD0xx_ed740.c#L20" id="L20" class="line" name="L3o.h&3t; e <skaxx_e-s="co e <s/drxx_e[o e <SOC_STAT_CDxx_e].o e <nrs/xx_e = >_e740.c#L9" mentng"|iquoidCF card detect"quoid=="lined740.c#L20" id="L20" class="line" name="L30"> 20<3a> e <skaxx_e-s="co e <s/drxx_e[o e <SOC_STAT_RDYxx_e].o e <ludexx_e = > _RDY0"> e <GPIO_Enam_="L2">_RDY0xx_ed740.c#L20" id="L20" class="line" name="L3q.h&3t; e <skaxx_e-s="co e <s/drxx_e[o e <SOC_STAT_RDYxx_e].o e <nrs/xx_e = >_e740.c#L9" mentng"|iquoidCF ready"quoid=="lined740.c#L20" id="L20" class="line" name="L3ines. e <skaxx_e-s="co e <s/drxx_e[o e <SOC_STAT_CDxx_e].o e <ludexx_e = > _CD1"> e <GPIO_Enam_="L2">_CD1xx_ed740.c#L20" id="L20" class="line" name="L3o.h&3t; e <skaxx_e-s="co e <s/drxx_e[o e <SOC_STAT_CDxx_e].o e <nrs/xx_e = >_e740.c#L9" mentng"|iquoidWifi switch"quoid=="lined740.c#L20" id="L20" class="line" name="L3o.h&3t; e <skaxx_e-s="co e <s/drxx_e[o e <SOC_STAT_RDYxx_e].o e <ludexx_e = > _RDY1"> e <GPIO_Enam_="L2">_RDY1xx_ed740.c#L20" id="L20" class="line" name="L3t.h&3t; e <skaxx_e-s="co e <s/drxx_e[o e <SOC_STAT_RDYxx_e].o e <nrs/xx_e = >_e740.c#L9" mentng"|iquoidWifi ready"quoid=="lined740.c#L20" id="L20" class="line" name="L3e.h&3t; 18<3a> 20<4a> e < nam_" clas_sockea_9/dr/xx_e(strucen> e <soc_" clas_sockeaxx_e *> e <skaxx_e,740.c#L20" id="L20" class="line" name="L4t"> * e <" clas_s/dr/xx_e *> e <s/dr/xx_e)740.c#L20" id="L20" class="line" name="L4o.h&4t; e <s/dr/xx_e-s="co e <vs_3vxx_e = 1d740.c#L20" id="L20" class="line" name="L4t.h&4t; e <s/dr/xx_e-s="co e <vs_Xvxx_e = 0d740.c#L20" id="L20" class="line" name="L4e.h&4t; 18<4a> e < nam_" clas_configure_sockeaxx_e(strucen> e <soc_" clas_sockeaxx_e *> e <skaxx_e,740.c#L20" id="L20" class="line" name="L50"> 20<5a> e <sockea_9/dr/_axx_e *> e <s/dr/xx_e)740.c#L20" id="L20" class="line" name="L5q.h&5t; e <s/dr/xx_e-s="co e <flagsxx_e &n> e <SS_RESETxx_e) {740.c#L20" id="L20" class="line" name="L5t"> * e <skaxx_e-s="co e <nrxx_e == 0)740.c#L20" id="L20" class="line" name="L5m> e <lude_sea_t typxx_e(> _RST0"> e <GPIO_Enam_="L2">_RST0xx_e, 1)d740.c#L20" id="L20" class="line" name="L5o.h&5t; e <lude_sea_t typxx_e(> _RST1"> e <GPIO_Enam_="L2">_RST1xx_e, 1)d740.c#L20" id="L20" class="line" name="L5e.h&5t; 18<5a> e <skaxx_e-s="co e <nrxx_e == 0)740.c#L20" id="L20" class="line" name="L6o.h&6t; e <lude_sea_t typxx_e(> _RST0"> e <GPIO_Enam_="L2">_RST0xx_e, 0)d740.c#L20" id="L20" class="line" name="L60"> 20<6a> e <lude_sea_t typxx_e(> _RST1"> e <GPIO_Enam_="L2">_RST1xx_e, 0)d740.c#L20" id="L20" class="line" name="L6ines. * e <s/dr/xx_e-s="co e <Vccxx_e) {740.c#L20" id="L20" class="line" name="L6t"> * 9 e <skaxx_e-s="co e <nrxx_e == 0)740.c#L20" id="L20" class="line" name="L6e.h&6t; e <lude_sea_t typxx_e(> _PWR0"> e <GPIO_Enam_="L2">_PWR0xx_e, 0)d740.c#L20" id="L20" class="line" name="L68"> 18<6a> e <lude_sea_t typxx_e(> _PWR1"> e <GPIO_Enam_="L2">_PWR1xx_e, 1)d740.c#L20" id="L20" class="line" name="L70"> 20<7a> 9 * e <skaxx_e-s="co e <nrxx_e == 0)740.c#L20" id="L20" class="line" name="L7m> e <lude_sea_t typxx_e(> _PWR0"> e <GPIO_Enam_="L2">_PWR0xx_e, 1)d740.c#L20" id="L20" class="line" name="L7t"> * e <x47inux/platform_device.h> opcm6ia/px61xx_e e270"> e <GPIO_En7m_="L7">_PWR0xx_e, defaultc#L20" id="L20" class="line" name="L7q.h<8a> _CD0xx_ed740.c#L20" id="L20" printk"drivers/pcia/pxrintk/pc"v2.6t; ef="dcs: Unsupported : %d\nSTAT_RDYxx_e],= 1d740.c#L20" id="L20" class="line" name="L4t.h&4t; opcm6ia/px61xx_e 8"L2">_PW81"> e <GPIO_En8m_="L8">_PWR1xx_e, 0)d740.c#L20" id="L20" class="line" name=8 8=""co_PW80"> e <GPIO_En8m_="L8/pcm2ia/px25ne" name="L4t"> * e <s8pan> _CD0xx_ed7forcode=SOC_STAT_THIS_MODULE/p7ia/px74xx_e THIS_MODULEcode=soc_" clas_sockea"> e <soc_" cl87"> 7 e <soc_" cl8 e280"> e <GPIO_En8m_="L89 e/forcode=9/dr"> e <soc_" cl9a> e <soc_" cl9"L2">_PW91"> e <GPIO_En9m_="L91 e/forcode=9/dr"> e <soc_" cl9 * 9=""co_PW90"> e <GPIO_En9m_="L9/pcm2ia/px25xx_e740.c#L20" id="_ne" name="L2o.h&_rivers/pc_ ef="drivers/e" name="L2o.h&2t; e <9pan> 7<9/a> 8&5t; e <10s="commen0t"> */ _PWR1xx_e, 1)d740.cx_e740.-740.c#L20" id="ENODEVh&5t; e <ludexx_e = > 11#in02e L9pcm4ia/px41xx_e}740.c#L20" id="L20" class="li10"line" na0me="L12"> 12#includ03e L9 case ef="drivers/mcia/p"drivers/pcia/pef="drivers/mcia/p "L20" -riversSTAT_RDYxx_e],=-ude_sea_t typxx_e(> 13#includ04e L94cm5ia/px52xx_e{7!740.c#L20" id="ef="drivers/mcia/p"drivers/pcia/pef="drivers/mcia/p e <105line" na0"co 15#in06c L96cm4ia/px41xx_e}740.c#L20" id="L20" class="li10 name="L106"> 16#include <07c L9tvs_3vxx_e = 1d740.c#L20" iro.h&5t; e <soc_" cl10 17#0include < e <1ss="commentt"> */ &5t; 11#innclud11pcm4ia/px41xx_e}740.c#L20" id="L20" class="li1="line" naame="L12"> 12#includde &l11pcm5ia/px52xx_e{740.c#L20" id="Lro.h&5t; e <1s"line" naame="L13"> 13#includde &l11 } else {740.c#L20" id="L20" xivers/pcmcia/p_pu.h&5t; 14#incllude 11=""co 15#innclud11">_PWR0xx_e, x_e740.740.c#L20" id="ro.h&5t; e <ludexx_e = > 16#include <;linux/plaatform_devvice.h> &_rex ns/pc_ ef="drivers/ex name="L2o.h&ef="drivers/ex ns/pcmxx_e if (> e <1me="L19">1 19#include < 11#incclud1x86_64vxx_e = 0d740.c#L20" id="L20" class="lin1sm-x8"v2.16m-cris/.h|include/asm-x186_"v1.6m-cris/q.h|include/asm-xtensa/irq.h" class="1falt">asm1/ire.h&2t; #include &l1tsoc_1d=""co740.c#L20" id="= href/ex name="L2o.h&= href/ex n/pc"v2.6t; &2t; e 2.6t; GPL v2STAT_RDYxx_e]de_sea_t typxx_e(> #L2t.h&2t; > *STAT_RDYxx_e]de_sea_t typxx_e(> e1<nrx2.6t; "ivers/p:"L20" -riversSTAT_RDYxx_e]de_sea_t typxx_e(> _CD0"> e <GP1IO_En1m_="L22.6t; IO_Epan clas"ivers/p supportSTAT_RDYxx_e]de_sea_t typxx_e(> The original LXRs="commenblic Licsea_t typhttp://sourcers/ge.net/projects/lxs/>LXRs clauverylxs@lef=".no lxs.lef=".no kindly hostPublicsea_t typhttp://www.redpill-lefpro.no">Redpill Lefpro AS/pc", 5s seria/ps since 1995. kup" valu/bodyvau/html o