linux/drivers/gpio/gpio-mxc.c
<<
(OCT.18/spaue= .18/forme= .18a (OCT.1 href="../linux+v3.9.5/drivers/gpio/gpio-mxc.c">(OCT.18img src="../.static/gfx/right.png" alt=">>">(O8/spaue=(O8spau class="lxr_search">(OCT(OCT.18input typin>hidden" namin>navtarget" > 2in>">(OCT.18input typin>text" namin>search" idn>search">(OCT.18butt typin>submit">Search(OCT.1Prefs= .18/a>(O8/spaue=CT.1 18/dive=CT.1 18form acvalu="ajax+*" method="post" onsubmit="return false;">(O8input typin>hidden" namin>ajax_lookup" idn>ajax_lookup" > 2in>">(CT.1 18/forme=(CT.1 18div class="headingbott m">search_results" class="search_results"= .e=CT.1 18/dive= 8div idn>content">= 8div idn>file_contents"e
47/86/4c37ccd028b7bf7df6ae168891a2f0104217_3/0"eL1" class="line" namin>L1">1 118/a>8spau class="comment">/*8/spaue=L2" class="line" namin>L2">1 128/a>8spau class="comment"> * MXC GPIO support. (c) 2008 Daniel Mack <daniel@caiaq.de>8/spaue=L3" class="line" namin>L3">1 138/a>8spau class="comment"> * Copyright 2008 Juergen Beisert, kernel@pengutronix.de8/spaue=L4" class="line" namin>L4">1 148/a>8spau class="comment"> *8/spaue=L5" class="line" namin>L5">1 158/a>8spau class="comment"> * Based on code from Freescale,8/spaue=L6" class="line" namin>L6">1 168/a>8spau class="comment"> * Copyright (C) 2004-2010 Freescale Semiconductor, Inc. All Rights Reserved.8/spaue=L7" class="line" namin>L7">1 178/a>8spau class="comment"> *8/spaue=L8" class="line" namin>L8">1 188/a>8spau class="comment"> * This program is free software; you cau redistribute it and/or8/spaue=L9" class="line" namin>L9">1 198/a>8spau class="comment"> * modify it under the terms of the GNU General Public License8/spaue=L10" class="line" namin>L10">1 ptioa>8spau class="comment"> * as published by the Free Software Foundavalu; either vers"
	 28/spaue=L11" class="line" namin>L11">1 118/a>8spau class="comment"> * of the License, or (at your n valu) any later vers"
	.8/spaue=L12" class="line" namin>L12">1 128/a>8spau class="comment"> * This program is distributed in the hope that it will be useful,8/spaue=L13" class="line" namin>L13">1 138/a>8spau class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of8/spaue=L14" class="line" namin>L14">1 148/a>8spau class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.ns
02} if(OCT2in>
0al 2
  L8" class="line Ymxcspiold haveL9"ce8/ad a" ipygpio-mxc.c#L10" idn>L10" class="line" namin>L10">1 ptioa>8spau class="comment * This 1program is free softwar1e; yo1 cau redistribute it and/or8/salongio/gp tspaue=L10">1 ptioa>8spau class="comment * modif1y it under the terms of1 the 1NU General Public License8/spaxc.c#L11" c.c#L7, 51ersank th Sts/g#L4Fifgp F">L12">1 128/a>8spau class="commen2"> * as 2ublished by the Free So2tware2Foundavalu; either vers"
	 28/ne" namin>L12">1 128/a>8spau class="commen2"> * of 2he License, or (at your2n val2) anyin>L12">1 128/a>8spau class="commen2 * MXC GPPIO support. (c) 2008 Dain th2 hope#i18/udn>L3" n>L12">1 i18/udnc/gfx//init.hIO supporivef">/gfx//init.hhopelinein>L12">1 128/a>8spau class="commen2"> * but2WITHOUT ANY WARRANTY; w2thout23hope#i18/udn>L3" n>L12">1 i18/udnc/gfx//in2" rupt.hIO supporivef">/gfx//in2" rupt.hhopelinein>L12">1 128/a>8spau class="commen2"> * MER2HANTABILITY or FITNESS 2OR A 24hope#i18/udn>L3" n>L12">1 i18/udnc/gfx//io.hIO supporivef">/gfx//io.hhopelinein>L12">1 128/a>8spau class="commen2r_p 2in>2n>30 } if(OCT2in>2n>
  2  L3" n>L12">1 i18/udnc/gfx//irq.hIO supporivef">/gfx//irq.hhopelinein>L12">1 128/a>8spau class="commen2 * Copyr2ight (C) 2004-2010 Free2scale26hope#i18/udn>L3" n>L12">1 i18/udnc/gfx//irqdomain.hIO supporivef">/gfx//irqdomain.hhopelinein>L12">1 128/a>8spau class="commen2 *8/spau2e=L12">1 i18/udnc/gfx//lass.hIO supporivef">/gfx//lass.hhopelinein>L12">1 128/a>8spau class="commen2 * This 2program is free softwar2e; yo28hope#i18/udn>L3" n>L12">1 i18/udnc/gfx//pL121 18_devss=.hIO supporivef">/gfx//pL121 18_devss=.hhopelinein>L12">1 128/a>8spau class="commen2 * modif2y it under the terms of2 the 29hope#i18/udn>L3" n>L12">1 i18/udnc/gfx//slab.hIO supporivef">/gfx//slab.hhopelinein>L12">1 128/a>8spau class="commen3"> * as 3ublished by the Free So3tware30hope#i18/udn>L3" n>L12">1 i18/udnc/gfx//basic_mmio_lass.hIO supporivef">/gfx//basic_mmio_lass.hhopelinein>L12">1 128/a>8spau class="commen3"> * of 3he License, or (at your3n val31hope#i18/udn>L3" n>L12">1 i18/udnc/gfx//of.hIO supporivef">/gfx//of.hhopelinein>L12">1 128/a>8spau class="commen3 * MXC G3PIO support. (c) 2008 D3in th3 hope#i18/udn>L3" n>L12">1 i18/udnc/gfx//of_devss=.hIO supporivef">/gfx//of_devss=.hhopelinein>L12">1 128/a>8spau class="commen3 * Copyriight 2008 Juergen Beiserthout33hope#i18/udn>L3" n>L12">1 i18/udnc/gfx//ue=ul=.hIO supporivef">/gfx//ue=ul=.hhopelinein>L12">1 128/a>8spau class="commen3"> * MER3HANTABILITY or FITNESS 3OR A 34hope#i18/udn>L3" n>L12">1 i18/udncasm-g0" iic/bug.hIO supporivef">asm-g0" iic/bug.hhopelinein>L12">1 128/a>8spau class="commen3r_p 2in>3n>30 } if(OCT2in>2n>
  3  L3" n>L12">1 +ambig=i18/udncasm-alpha/mach/irq.h|i18/udncasm-arm/mach/irq.h|i18/udncasm-avr32/mach/irq.h|i18/udncasm-blackfin/mach/irq.h|i18/udncasm-cris/mach/irq.h|i18/udncasm-frv/mach/irq.h|i18/udncasm-g0" iic/mach/irq.h|i18/udncasm-h8300/mach/irq.h|i18/udncasm-i386/mach/irq.h|i18/udncasm-ia64/mach/irq.h|i18/udncasm-m32r/mach/irq.h|i18/udncasm-m68k/mach/irq.h|i18/udncasm-m68knveru/mach/irq.h|i18/udncasm-mips/mach/irq.h|i18/udncasm-mips64/mach/irq.h|i18/udncasm-parisc/mach/irq.h|i18/udncasm-powerpc/mach/irq.h|i18/udncasm-ppc/mach/irq.h|i18/udncasm-s390/mach/irq.h|i18/udncasm-sh/mach/irq.h|i18/udncasm-sh64/mach/irq.h|i18/udncasm-" nrc/mach/irq.h|i18/udncasm-s nrc64/mach/irq.h|i18/udncasm-um/mach/irq.h|i18/udncasm-v850/mach/irq.h|i18/udncasm-x86/mach/irq.h|i18/udncasm-x86_64/mach/irq.h|i18/udncasm-xt="la/mach/irq.hIO supporialt">asm/mach/irq.hhopelinein>L12">1 128/a>8spau class="commen3 * Copyr3ight (C) 2004-2010 Free3scale36 anyin>L12">1 128/a>8spau class="commen3 *8/spau3e=fivef">"co_lass_hw 18/hope {in>L12">1 128/a>8spau class="commen3 * This 3program is free softwar3e; yo38hope        eturn ajax idn=IMX1_e=fivef">IMX1_e=L2" class="line runs#L6"i.mx128/ne" namin>L12">1 128/a>8spau class="commen3 * modif3y it under the terms of3 the 39hope        eturn ajax idn=IMX21_e=fivef">IMX21_e=L2" class="line runs#L6"i.mx21s="l"i.mx2728/ne" namin>L12">1 128/a>8spau class="commen4"> * as 4ublished by the Free So4tware40hope        eturn ajax idn=IMX31_e=fivef">IMX31_e=L2" class="line runs#L6"i.mx3128/ne" namin>L12">1 128/a>8spau class="commen4"> * of 4he License, or (at your4n val41hope        eturn ajax idn=IMX35_e=fivef">IMX35_e=L2" class="line runs#L6"all oL11" i.mx28/ne" namin>L12">1 128/a>8spau class="commen4 * MXC G4PIO support. (c) 2008 D4in th4 hope}ein>L12">1 128/a>8spau class="commen4 * Copyr4ight 2008 Juergen Beise4thout43 anyin>L12">1 128/a>8spau class="commen4 *8/spauee=L12">1 128/a>8spau class="commen4r_p 2in>4n>30 } if(OCT2in>2n>
  4  "co_lass_hwdatahope {in>L12">1 128/a>8spau class="commen4 * Copyr4ight (C) 2004-2010 Free4scale46hope        unsignedreturn ajax idn=dr_regdiv idn>fivef">dr_reghopeein>L12">1 128/a>8spau class="commen4 *8/spau4e=gdir_reghopeein>L12">1 128/a>8spau class="commen4 * This 4program is free softwar4e; yo48hope        unsignedreturn ajax idn=psr_regdiv idn>fivef">psr_reghopeein>L12">1 128/a>8spau class="commen4 * modif4y it under the terms of4 the 49hope        unsignedreturn ajax idn=icr1_regdiv idn>fivef">icr1_reghopeein>L12">1 128/a>8spau class="commen5"> * as 5ublished by the Free So5tware50hope        unsignedreturn ajax idn=icr2_regdiv idn>fivef">icr2_reghopeein>L12">1 128/a>8spau class="commen5"> * of 5he License, or (at your5n val51hope        unsignedreturn ajax idn=imr_regdiv idn>fivef">imr_reghopeein>L12">1 128/a>8spau class="commen5 * MXC G5PIO support. (c) 2008 D5in th52hope        unsignedreturn ajax idn=isr_regdiv idn>fivef">isr_reghopeein>L12">1 128/a>8spau class="commen5 * Copyr5ight 2008 Juergen Beise5thout53hope        intreturn ajax idn=edge_sel_regdiv idn>fivef">edge_sel_reghopeein>L12">1 128/a>8spau class="commen5 *8/spau5e=low_levelhopeein>L12">1 128/a>8spau class="commen5 * Based  on code from Freescale,  fivef">high_levelhopeein>L12">1 128/a>8spau class="commen5 * Copyr5ight (C) 2004-2010 Free5scale56hope        unsignedreturn ajax idn=rise_edgediv idn>fivef">rise_edgehopeein>L12">1 128/a>8spau class="commen5 *8/spau5e=iall_edgehopeein>L12">1 128/a>8spau class="commen5 * This 5program is free softwar5e; yo58hope}ein>L12">1 128/a>8spau class="commen5 * modif5y it under the terms of5 the 59 anyin>L12">1 128/a>8spau class="commen6"> * as 6ublished by the Free So6tware60hopestructreturn ajax idn="co_lass_f="ddiv idn>fivef">"co_lass_f="dhope {in>L12">1 128/a>8spau class="commen6"> * of 6he License, or (at your6n val61hope        structreturn ajax idn=list_s" cdiv idn>fivef">list_s" chope eturn ajax idn=nidndiv idn>fivef">nidnhopeein>L12">1 128/a>8spau class="commen6 * MXC G6PIO support. (c) 2008 D6in th62hope        voidreturn ajax idn=__iomemdiv idn>fivef">__iomemhope *eturn ajax idn=basndiv idn>fivef">basnhopeein>L12">1 128/a>8spau class="commen6 * Copyr6ight 2008 Juergen Beise6thout63hope        intreturn ajax idn=irqdiv idn>fivef">irqhopeein>L12">1 128/a>8spau class="commen6 *8/spau6e=irq_highhopeein>L12">1 128/a>8spau class="commen6 * Based6 on code from Freescale6  fivef">irq_domainhope *eturn ajax idn=domaindiv idn>fivef">domainhopeein>L12">1 128/a>8spau class="commen6 * Copyriight (C) 2004-2010 Freesscale66hope        structreturn ajax idn=blass_chipdiv idn>fivef">blass_chiphope eturn ajax idn=bgcdiv idn>fivef">blchopeein>L12">1 128/a>8spau class="commen6 *8/spau6e=u3 hope eturn ajax idn=boL1_edgesdiv idn>fivef">boL1_edgeshopeein>L12">1 128/a>8spau class="commen6 * This 6program is free softwar6e; yo68hope}ein>L12">1 128/a>8spau class="commen6 * modif6y it under the terms of6 the 69 anyin>L12">1 128/a>8spau class="commen7"> * as 7ublished by the Free So7tware70hopestlxr_ structreturn ajax idn="co_lass_hwdatadiv idn>fivef">"co_lass_hwdatahope eturn ajax idn=imx1_imx21_lass_hwdatadiv idn>fivef">imx1_imx21_lass_hwdatahope = {in>L12">1 128/a>8spau class="commen7"> * of 7he License, or (at your7n val71hope        .eturn ajax idn=dr_regdiv idn>fivef">dr_reghope         = 0x1c,in>L12">1 128/a>8spau class="commen7 * MXC G7PIO support. (c) 2008 D7in th72hope        .eturn ajax idn=gdir_regdiv idn>fivef">gdir_reghope       = 0x00,in>L12">1 128/a>8spau class="commen7 * Copyr7ight 2008 Juergen Beise7thout73hope        .eturn ajax idn=psr_regdiv idn>fivef">psr_reghope        = 0x24,in>L12">1 128/a>8spau class="commen7 *8/spau7e=icr1_reghope       = 0x28,in>L12">1 128/a>8spau class="commen7 * Based7 on code from Freescale7  fivef">icr2_reghope       = 0x2c,in>L12">1 128/a>8spau class="commen7 * Copyr7ight (C) 2004-2010 Free7scale76hope        .eturn ajax idn=imr_regdiv idn>fivef">imr_reghope        = 0x30,in>L12">1 128/a>8spau class="commen7 *8/spauee=isr_reghope        = 0x34,in>L12">1 128/a>8spau class="commen7 * This 7program is free softwar7e; yo78hope        .eturn ajax idn=edge_sel_regdiv idn>fivef">edge_sel_reghope   = -eturn ajax idn=EINVALdiv idn>fivef">EINVALhope,in>L12">1 128/a>8spau class="commen7 * modif7y it under the terms of7 the 79hope        .eturn ajax idn=low_leveldiv idn>fivef">low_levelhope      = 0x03,in>L12">1 128/a>8spau class="commen8"> * as 8ublished by the Free So8tware80hope        .eturn ajax idn=high_leveldiv idn>fivef">high_levelhope     = 0x02,in>L12">1 128/a>8spau class="commen8"> * of 8he License, or (at your8n val81hope        .eturn ajax idn=rise_edgediv idn>fivef">rise_edgehope      = 0x00,in>L12">1 128/a>8spau class="commen8 * MXC G8PIO support. (c) 2008 D8in th82hope        .eturn ajax idn=iall_edgediv idn>fivef">iall_edgehope      = 0x01,in>L12">1 128/a>8spau class="commen8 * Copyr8ight 2008 Juergen Beise8thout83hope}ein>L12">1 128/a>8spau class="commen8 *8/spau8e=1 128/a>8spau class="commen8 * Based8 on code from Freescale8  "co_lass_hwdatahope eturn ajax idn=imx31_lass_hwdatadiv idn>fivef">imx31_lass_hwdatahope = {in>L12">1 128/a>8spau class="commen8 * Copyr8ight (C) 2004-2010 Free8scale86hope        .eturn ajax idn=dr_regdiv idn>fivef">dr_reghope         = 0x00,in>L12">1 128/a>8spau class="commen8 *8/spau8e=gdir_reghope       = 0x04,in>L12">1 128/a>8spau class="commen8 * This pprogram is free softwaree; yo88hope        .eturn ajax idn=psr_regdiv idn>fivef">psr_reghope        = 0x08,in>L12">1 128/a>8spau class="commen8 * modif8y it under the terms of8 the 89hope        .eturn ajax idn=icr1_regdiv idn>fivef">icr1_reghope       = 0x0c,in>L12">1 128/a>8spau class="commen9"> * as 9ublished by the Free So9tware90hope        .eturn ajax idn=icr2_regdiv idn>fivef">icr2_reghope       = 0x10,in>L12">1 128/a>8spau class="commen9"> * of 9he License, or (at your9n val91hope        .eturn ajax idn=imr_regdiv idn>fivef">imr_reghope        = 0x14,in>L12">1 128/a>8spau class="commen9 * MXC G9PIO support. (c) 2008 D9in th92hope        .eturn ajax idn=isr_regdiv idn>fivef">isr_reghope        = 0x18,in>L12">1 128/a>8spau class="commen9 * Copyr9ight 2008 Juergen Beise9thout93hope        .eturn ajax idn=edge_sel_regdiv idn>fivef">edge_sel_reghope   = -eturn ajax idn=EINVALdiv idn>fivef">EINVALhope,in>L12">1 128/a>8spau class="commen9 *8/spau9e=low_levelhope      = 0x00,in>L12">1 128/a>8spau class="commen9 * Based9 on code from Freescale9  fivef">high_levelhope     = 0x01,in>L12">1 128/a>8spau class="commen9 * Copyr9ight (C) 2004-2010 Free9scale96hope        .eturn ajax idn=rise_edgediv idn>fivef">rise_edgehope      = 0x02,in>L12">1 128/a>8spau class="commen9 *8/spau9e=iall_edgehope      = 0x03,in>L12">1 128/a>8spau class="commen9 * This 9program is free softwar9e; yo98hope}ein>L12">1 128/a>8spau class="commen9 * modifyy it under the terms of  the 99 anyin>L12">1 128/a>8spau class="commen10"> * as puublished by the Free Softtwarftthopestlxr_ structreturn ajax idn="co_lass_hwdatadiv idn>fivef">"co_lass_hwdatahope eturn ajax idn=imx35_lass_hwdatadiv idn>fivef">imx35_lass_hwdatahope = {in>L12">1 128/a>8spau class="commen10"> * of t0he License, or (at your 01warft1hope        .eturn ajax idn=dr_regdiv idn>fivef">dr_reghope         = 0x00,in>L12">1 128/a>8spau class="commen10"> * This0 program is distributed 02warft2hope        .eturn ajax idn=gdir_regdiv idn>fivef">gdir_reghope       = 0x04,in>L12">1 128/a>8spau class="commen10"> * but 0WITHOUT ANY WARRANTY; wi03warft3hope        .eturn ajax idn=psr_regdiv idn>fivef">psr_reghope        = 0x08,in>L12">1 128/a>8spau class="commen10"> * MERC0HANTABILITY or FITNESS F04warft4hope        .eturn ajax idn=icr1_regdiv idn>fivef">icr1_reghope       = 0x0c,in>L12">1 128/a>8spau class="commen10r_p 2in>20n>30 } if(OCT2in>2n>
  
05warft5hope        .eturn ajax idn=icr2_regdiv idn>fivef">icr2_reghope       = 0x10,in>L12">1 128/a>8spau class="commen10 * Copyr10ight (C) 2004-2010 Free106warft6hope        .eturn ajax idn=imr_regdiv idn>fivef">imr_reghope        = 0x14,in>L12">1 128/a>8spau class="commen10 *8/spau10e=isr_reghope        = 0x18,in>L12">1 128/a>8spau class="commen10 * This 10program is free softwar108warft8hope        .eturn ajax idn=edge_sel_regdiv idn>fivef">edge_sel_reghope   = 0x1c,in>L12">1 128/a>8spau class="commen10 * modif10y it under the terms of109warft9hope        .eturn ajax idn=low_leveldiv idn>fivef">low_levelhope      = 0x00,in>L12">1 128/a>8spau class="commen1t"> * as ppublished by the Free Sofftwar110hope        .eturn ajax idn=high_leveldiv idn>fivef">high_levelhope     = 0x01,in>L12">1 128/a>8spau class="commen1t"> * of thhe License, or (at your n1warf11hope        .eturn ajax idn=rise_edgediv idn>fivef">rise_edgehope      = 0x02,in>L12">1 128/a>8spau class="commen1t"> * Thiss program is distributed  in t112hope        .eturn ajax idn=iall_edgediv idn>fivef">iall_edgehope      = 0x03,in>L12">1 128/a>8spau class="commen1t"> * but  WITHOUT ANY WARRANTY; wiithou113hope}ein>L12">1 128/a>8spau class="commen1t"> * MERCCHANTABILITY or FITNESS FFOR A114 anyin>L12">1 128/a>8spau class="commen1xr_p 2in>22n>30 } if(OCT2in>2n>
  

  "co_lass_hw 18/hope eturn ajax idn="co_lass_hw 18/div idn>fivef">"co_lass_hw 18/hopeein>L12">1 128/a>8spau class="commen1t * Copyr11ight (C) 2004-2010 Free11scal11Semicstlxr_ structreturn ajax idn="co_lass_hwdatadiv idn>fivef">"co_lass_hwdatahope *eturn ajax idn="co_lass_hwdatadiv idn>fivef">"co_lass_hwdatahopeein>L12">1 128/a>8spau class="commen1t *8/spau11e=1 128/a>8spau class="commen1t * This 11program is free softwar11e; y11 cau #deffrereturn ajax idn=e=fivef">e="co_lass_hwdatahope-line"turn ajax idn=dr_regdiv idn>fivef">dr_reghope)in>L12">1 128/a>8spau class="commen1t * modif11y it under the terms of11 the11NU Ge#deffrereturn ajax idn=e=fivef">e="co_lass_hwdatahope-line"turn ajax idn=gdir_regdiv idn>fivef">gdir_reghope)in>L12">1 128/a>8spau class="commen12"> * as 12ublished by the Free So12twar12Found#deffrereturn ajax idn=e=fivef">e="co_lass_hwdatahope-line"turn ajax idn=psr_regdiv idn>fivef">psr_reghope)in>L12">1 128/a>8spau class="commen12"> * of t2he License, or (at your12n va12) any#deffrereturn ajax idn=e=fivef">e="co_lass_hwdatahope-line"turn ajax idn=icr1_regdiv idn>fivef">icr1_reghope)in>L12">1 128/a>8spau class="commen12"> * This  program is distributed iin t12 hope#deffrereturn ajax idn=e=e="co_lass_hwdatahope-line"turn ajax idn=icr2_regdiv idn>fivef">icr2_reghope)in>L12">1 128/a>8spau class="commen12"> * but 2WITHOUT ANY WARRANTY; w12thou123hope#deffrereturn ajax idn=e=fivef">e="co_lass_hwdatahope-line"turn ajax idn=imr_regdiv idn>fivef">imr_reghope)in>L12">1 128/a>8spau class="commen12"> * MERC2HANTABILITY or FITNESS 12OR A124hope#deffrereturn ajax idn=e=fivef">e="co_lass_hwdatahope-line"turn ajax idn=isr_regdiv idn>fivef">isr_reghope)in>L12">1 128/a>8spau class="commen12r_p 2in>22n>30 } if(OCT2in>2n>
  12  fivef">e="co_lass_hwdatahope-line"turn ajax idn=edge_sel_regdiv idn>fivef">edge_sel_reghope)in>L12">1 128/a>8spau class="commen12 * Copyr12ight (C) 2004-2010 Free12scal126 anyin>L12">1 128/a>8spau class="commen12 *8/spau12e=e="co_lass_hwdatahope-line"turn ajax idn=low_leveldiv idn>fivef">low_levelhope)in>L12">1 128/a>8spau class="commen12 * This 12program is free softwar12e; y12 cau #deffrereturn ajax idn=e=fivef">e="co_lass_hwdatahope-line"turn ajax idn=high_leveldiv idn>fivef">high_levelhope)in>L12">1 128/a>8spau class="commen12 * modif12y it under the terms of12 the12NU Ge#deffrereturn ajax idn=e=fivef">e="co_lass_hwdatahope-line"turn ajax idn=rise_edgediv idn>fivef">rise_edgehope)in>L12">1 128/a>8spau class="commen13"> * as 13ublished by the Free So13twar13Found#deffrereturn ajax idn=e=fivef">e="co_lass_hwdatahope-line"turn ajax idn=iall_edgediv idn>fivef">iall_edgehope)in>L12">1 128/a>8spau class="commen13"> * of t3he License, or (at your13n va13) any#deffrereturn ajax idn=e=fivef">e=L12">1 128/a>8spau class="commen13"> * This3PIO support. (c) 2008 D13in t13 hopein>L12">1 128/a>8spau class="commen13"> * but WWITHOUT ANY WARRANTY; witthou133hopestlxr_ structreturn ajax idn=pL121 18_devss=_icdiv idn>fivef">pL121 18_devss=_ichope eturn ajax idn="co_lass_dev 18/div idn>fivef">"co_lass_dev 18/hope[] = {in>L12">1 128/a>8spau class="commen13"> * MER13HANTABILITY or FITNESS 13OR A134hope        {in>L12">1 128/a>8spau class="commen13r_p 2in>23n>30 } if(OCT2in>2n>
  13  2n>div idn>fivef">>2n>hope = ULAR PURPOSE.iverng">"imx1-lass"ne" nam,in>L12">1 128/a>8spau class="commen13 * Copyr13ight (C) 2004-2010 Free13scal136hope                .eturn ajax idn=128/a>_datadiv idn>fivef">128/a>_datahope = Uturn ajax idn=IMX1_e=fivef">IMX1_e=L12">1 128/a>8spau class="commen13 *8/spau13e=1 128/a>8spau class="commen13 * This 13program is free softwar13e; y138hope                .eturn ajax idn=>2n>div idn>fivef">>2n>hope = ULAR PURPOSE.iverng">"imx21-lass"ne" nam,in>L12">1 128/a>8spau class="commen13 * modif13y it under the terms of13 the139hope                .eturn ajax idn=128/a>_datadiv idn>fivef">128/a>_datahope = Uturn ajax idn=IMX21_e=fivef">IMX21_e=L12">1 128/a>8spau class="commen14"> * as 14ublished by the Free So14twar140hope        }, {in>L12">1 128/a>8spau class="commen14"> * of 14he License, or (at your14n va141hope                .eturn ajax idn=>2n>div idn>fivef">>2n>hope = ULAR PURPOSE.iverng">"imx31-lass"ne" nam,in>L12">1 128/a>8spau class="commen14 * MXC G14PIO support. (c) 2008 D14in t14Phope                .eturn ajax idn=128/a>_datadiv idn>fivef">128/a>_datahope = Uturn ajax idn=IMX31_e=fivef">IMX31_e=L12">1 128/a>8spau class="commen14"> * but 4ight 2008 Juergen Beise14thou143hope        }, {in>L12">1 128/a>8spau class="commen14"> * MERCHHANTABILITY or FITNESS FOOR A144hope                .eturn ajax idn=>2n>div idn>fivef">>2n>hope = ULAR PURPOSE.iverng">"imx35-lass"ne" nam,in>L12">1 128/a>8spau class="commen14r_p 2in>24n>30 } if(OCT2in>2n>
  14  _datadiv idn>fivef">128/a>_datahope = Uturn ajax idn=IMX35_e=fivef">IMX35_e=L12">1 128/a>8spau class="commen14 * Copyr14ight (C) 2004-2010 Free14scal146hope        }, {in>L12">1 128/a>8spau class="commen14 *8/spau14e=L12">1 128/a>8spau class="commen14 * This 14program is free softwar14e; y148hope        }in>L12">1 128/a>8spau class="commen14 * modif14y it under the terms of14 the149hope}ein>L12">1 128/a>8spau class="commen15"> * as 15ublished by the Free So15twar150hopein>L12">1 128/a>8spau class="commen15"> * of 15he License, or (at your15n va151hopestlxr_ const structreturn ajax idn=of_devss=_icdiv idn>fivef">of_devss=_ichope eturn ajax idn="co_lass_dt_icsdiv idn>fivef">"co_lass_dt_icshope[] = {in>L12">1 128/a>8spau class="commen15 * MXC G15PIO support. (c) 2008 D15in t152hope        { .eturn ajax idn=ns
plxrbl>div idn>fivef">ns
plxrbl>hope = ULAR PURPOSE.iverng">"fsl,imx1-lass"ne" nam, .eturn ajax idn=1atadiv idn>fivef">1atahope = &e"turn ajax idn="co_lass_dev 18/div idn>fivef">"co_lass_dev 18/hope[Uturn ajax idn=IMX1_e=fivef">IMX1_e=L12">1 128/a>8spau class="commen15"> * but 5ight 2008 Juergen Beise15thou153hope        { .eturn ajax idn=ns
plxrbl>div idn>fivef">ns
plxrbl>hope = ULAR PURPOSE.iverng">"fsl,imx21-lass"ne" nam, .eturn ajax idn=1atadiv idn>fivef">1atahope = &e"turn ajax idn="co_lass_dev 18/div idn>fivef">"co_lass_dev 18/hope[Uturn ajax idn=IMX21_e=fivef">IMX21_e=L12">1 128/a>8spau class="commen15"> * MERC5e=ns
plxrbl>hope = ULAR PURPOSE.iverng">"fsl,imx31-lass"ne" nam, .eturn ajax idn=1atadiv idn>fivef">1atahope = &e"turn ajax idn="co_lass_dev 18/div idn>fivef">"co_lass_dev 18/hope[Uturn ajax idn=IMX31_e=fivef">IMX31_e=L12">1 128/a>8spau class="commen15r_p 2in>2  on code from Freescale1,  div idn>fivef">ns
plxrbl>hope = ULAR PURPOSE.iverng">"fsl,imx35-lass"ne" nam, .eturn ajax idn=1atadiv idn>fivef">1atahope = &e"turn ajax idn="co_lass_dev 18/div idn>fivef">"co_lass_dev 18/hope[Uturn ajax idn=IMX35_e=fivef">IMX35_e=L12">1 128/a>8spau class="commen15 * Copyr15ight (C) 2004-2010 Free15scal156hope        { ULAR PURPOSE.ns
02} ifne s2} dril28/ne" nam }in>L12">1 128/a>8spau class="commen15 *8/spau15e=1 128/a>8spau class="commen15 * This 15program is free softwar15e; y158hopein>L12">1 128/a>8spau class="commen15 * modif15y it under the terms of15 the15NU General Public License8/ne" namin>L2">1 128/a>8spau class="comment">16"> * as 16ublished by the Free So16twar16Foundavalu; either vers"
	 28/MX2 has#L6e in2" rupt *1 1aall* s="c f="ds. The listef="used" namin>L2">1 128/a>8spau class="comment">16"> * of 16he License, or (at your16n va16) any later vers"
	.8/spaue=L9">1 198/a>8spau class="comment">16 * MXC G16PIO support. (c) 2008 D16in t16 hope that it will be useful,8.c#Lwalk#L1rough all in2" rupt stlxuse1 gistspaine" namin>L12">1 128/a>8spau class="comment "> * but 6ight 2008 Juergen Beise16thou16even the implied warranty of8/ne" namin>L12">1 128/a>8spau class="commen16 *8/spau16e=LIST_HEADhope(eturn ajax idn="co_lass_f="dsdiv idn>fivef">"co_lass_f="dshope)ein>L12">1 128/a>8spau class="commen16 * Based16 on code from Freescale16  L12">1 128/a>8spau class="commen16 * Copyr1iight (C) 2004-2010 Free1sscal16Semiconductor, Inc. All Rigne Note:8/spau128/a> , Iumesa32ue=L12">1 128/a>8spau class="commen16 *8/spau16e=1 128/a>8spau class="commen16 * This 16program is free softwar16e; y168hopestlxr_ intreturn ajax idn=lass_set_irq_ 18/div idn>fivef">lass_set_irq_ 18/hope(structreturn ajax idn=irq_datadiv idn>fivef">irq_datahope *eturn ajax idn=cdiv idn>fivef">chope, eturn ajax idn=u3PIO supporivef">u3 hope eturn ajax idn= 18/div idn>fivef"> 18/hope)in>L12">1 128/a>8spau class="commen16 * modif16y it under the terms of16 the169 any{in>L12">1 128/a>8spau class="commen17"> * as 17ublished by the Free So17twar170hope        structreturn ajax idn=irq_chip_g0" iicdiv idn>fivef">irq_chip_g0" iichope *eturn ajax idn=gcdiv idn>fivef">lchope = Uturn ajax idn=irq_data_g0t_irq_chip_datadiv idn>fivef">irq_data_g0t_irq_chip_datahope(eturn ajax idn=cdiv idn>fivef">chope)ein>L12">1 128/a>8spau class="commen17"> * of 17he License, or (at your17n va171hope        structreturn ajax idn="co_lass_f="ddiv idn>fivef">"co_lass_f="dhope *eturn ajax idn=f="ddiv idn>fivef">f="dhope = Uturn ajax idn=gcdiv idn>fivef">lchope-line"turn ajax idn=p28/at/div idn>fivef">p28/at/hopeein>L12">1 128/a>8spau class="commen17 * MXC G17PIO support. (c) 2008 D17in t172hope        eturn ajax idn=u3PIO supporivef">u3 hope eturn ajax idn=biddiv idn>fivef">bidhope, eturn ajax idn=valdiv idn>fivef">valhopeein>L12">1 128/a>8spau class="commen17"> * but 7ight 2008 Juergen Beise17thou173hope        eturn ajax idn=u3PIO supporivef">u3 hope eturn ajax idn=lass_idxdiv idn>fivef">lass_idxhope = Uturn ajax idn=cdiv idn>fivef">chope-line"turn ajax idn=hwirqdiv idn>fivef">hwirqhopeein>L12">1 128/a>8spau class="commen17 *8/spau17e=u3 hope eturn ajax idn=lassdiv idn>fivef">lasshope = Uturn ajax idn=f="ddiv idn>fivef">f="dhope-line"turn ajax idn=bgcdiv idn>fivef">blchope.eturn ajax idn=gcdiv idn>fivef">lchope.eturn ajax idn=basndiv idn>fivef">basnhope + eturn ajax idn=lass_idxdiv idn>fivef">lass_idxhopeein>L12">1 128/a>8spau class="commen17 * Based17 on code from Freescale17  fivef">edgehopeein>L12">1 128/a>8spau class="commen17 * Copyr17ight (C) 2004-2010 Free17scal176hope        voidreturn ajax idn=__iomemdiv idn>fivef">__iomemhope *eturn ajax idn=regdiv idn>fivef">reghope = Uturn ajax idn=f="ddiv idn>fivef">f="dhope-line"turn ajax idn=basndiv idn>fivef">basnhopeein>L12">1 128/a>8spau class="commen17 *8/spau1ee=1 128/a>8spau class="commen17 * This 17program is free softwar17e; y178hope        eturn ajax idn=f="ddiv idn>fivef">f="dhope-line"turn ajax idn=boL1_edgesdiv idn>fivef">boL1_edgeshope &e= ~(1>L3" L3"  eturn ajax idn=lass_idxdiv idn>fivef">lass_idxhope)ein>L12">1 128/a>8spau class="commen17 * modif17y it under the terms of17 the179hope        switch (eturn ajax idn= 18/div idn>fivef"> 18/hope) {in>L12">1 128/a>8spau class="commen18"> * as 18ublished by the Free So18twar180hope        casn Uturn ajax idn=IRQ_TYPE_EDGE_RISINGdiv idn>fivef">IRQ_TYPE_EDGE_RISINGhope:in>L12">1 128/a>8spau class="commen18"> * of 18he License, or (at your18n va181hope                eturn ajax idn=edgediv idn>fivef">edgehope = Uturn ajax idn=e=fivef">e=L12">1 128/a>8spau class="commen18 * MXC G18PIO support. (c) 2008 D18in t18Phope                breakein>L12">1 128/a>8spau class="commen18"> * but 8ight 2008 Juergen Beise18thou183hope        casn Uturn ajax idn=IRQ_TYPE_EDGE_FALLINGdiv idn>fivef">IRQ_TYPE_EDGE_FALLINGhope:in>L12">1 128/a>8spau class="commen18 *8/spau18e=edgehope = Uturn ajax idn=e=fivef">e=L12">1 128/a>8spau class="commen18 * Based18 on code from Freescale18  L12">1 128/a>8spau class="commen18 * Copyr18ight (C) 2004-2010 Free18scal186hope        casn Uturn ajax idn=IRQ_TYPE_EDGE_BOTHdiv idn>fivef">IRQ_TYPE_EDGE_BOTHhope:in>L12">1 128/a>8spau class="commen18 *8/spau18e=e=L12">1 128/a>8spau class="commen18 * This 1pprogram is free softwar1ee; y188hope                        eturn ajax idn=edgediv idn>fivef">edgehope = Uturn ajax idn=e=fivef">e=L12">1 128/a>8spau class="commen18 * modif18y it under the terms of18 the189hope                } elsn {in>L12">1 128/a>8spau class="commen19"> * as 19ublished by the Free So19twar190hope                        eturn ajax idn=valdiv idn>fivef">valhope = Uturn ajax idn=gass_g0t_valu/div idn>fivef">lass_g0t_valu/hope(eturn ajax idn=lassdiv idn>fivef">lasshope)ein>L12">1 128/a>8spau class="commen19"> * of 19he License, or (at your19n va191hope                        if (eturn ajax idn=valdiv idn>fivef">valhope) {in>L12">1 128/a>8spau class="commen19 * MXC G19PIO support. (c) 2008 D19in t19Phope                                eturn ajax idn=edgediv idn>fivef">edgehope = Uturn ajax idn=e=fivef">e=L12">1 128/a>8spau class="commen19"> * but 9ight 2008 Juergen Beise19thou193hope                                eturn ajax idn=pr_debugdiv idn>fivef">pr_debughope(eLAR PURPOSE.iverng">""co: setue=fivef">lasshope)ein>L12">1 128/a>8spau class="commen19 *8/spau19e=1 128/a>8spau class="commen19 * Based19 on code from Freescale19  fivef">edgehope = Uturn ajax idn=e=fivef">e=L12">1 128/a>8spau class="commen19 * Copyr19ight (C) 2004-2010 Free19scal196hope                                eturn ajax idn=pr_debugdiv idn>fivef">pr_debughope(eLAR PURPOSE.iverng">""co: setue=fivef">lasshope)ein>L12">1 128/a>8spau class="commen19 *8/spau19e=1 128/a>8spau class="commen19 * This 19program is free softwar19e; y198hope                        eturn ajax idn=f="ddiv idn>fivef">f="dhope-line"turn ajax idn=boL1_edgesdiv idn>fivef">boL1_edgeshope |= 1>L3" L3"  eturn ajax idn=lass_idxdiv idn>fivef">lass_idxhopeein>L12">1 128/a>8spau class="commen19 * modif1yy it under the terms of1  the199hope                }in>L12">1 128/a>8spau class="commen20"> * as 2uublished by the Free So2ttwar200hope                breakein>L12">1 128/a>8spau class="commen20"> * of 20he License, or (at your201war2t1hope        casn Uturn ajax idn=IRQ_TYPE_LEVEL_LOWdiv idn>fivef">IRQ_TYPE_LEVEL_LOWhope:in>L12">1 128/a>8spau class="commen20"> * Thi20 program is distributed202war20Phope                eturn ajax idn=edgediv idn>fivef">edgehope = Uturn ajax idn=e=fivef">e=L12">1 128/a>8spau class="commen20"> * but20WITHOUT ANY WARRANTY; w203war203hope                breakein>L12">1 128/a>8spau class="commen20"> * MER20HANTABILITY or FITNESS 204war2t4hope        casn Uturn ajax idn=IRQ_TYPE_LEVEL_HIGHdiv idn>fivef">IRQ_TYPE_LEVEL_HIGHhope:in>L12">1 128/a>8spau class="commen205> * MER20 on code from Freescale205war205hope                eturn ajax idn=edgediv idn>fivef">edgehope = Uturn ajax idn=e=fivef">e=L12">1 128/a>8spau class="commen20 * Copyr20ight (C) 2004-2010 Free206war206hope                breakein>L12">1 128/a>8spau class="commen20 *8/spau20e=1 128/a>8spau class="commen20 * This 20program is free softwar208war208hope                return -eturn ajax idn=EINVALdiv idn>fivef">EINVALhopeein>L12">1 128/a>8spau class="commen20 * modif20y it under the terms of209war2t9hope        }in>L12">1 128/a>8spau class="commen2t"> * as 2published by the Free So2ftwar210hopein>L12">1 128/a>8spau class="commen2t"> * of 2hhe License, or (at your2n1war211hope        if (eturn ajax idn=e=fivef">e=L12">1 128/a>8spau class="commen2t"> * Thi2s program is distributed2 in t21Phope                eturn ajax idn=valdiv idn>fivef">valhope = Uturn ajax idn=readldiv idn>fivef">readlhope(eturn ajax idn=f="ddiv idn>fivef">f="dhope-line"turn ajax idn=basndiv idn>fivef">basnhope + eturn ajax idn=e=fivef">e=L12">1 128/a>8spau class="commen2t"> * but2 WITHOUT ANY WARRANTY; w2ithou213hope                if (eturn ajax idn=edgediv idn>fivef">edgehope == Uturn ajax idn=e=fivef">e=L12">1 128/a>8spau class="commen2t"> * MER2CHANTABILITY or FITNESS 2FOR A214hope                        Uturn ajax idn=writeldiv idn>fivef">writelhope(eturn ajax idn=valdiv idn>fivef">valhope | (1>L3" L3"  eturn ajax idn=lass_idxdiv idn>fivef">lass_idxhope),in>L12">1 128/a>8spau class="commen2xr_p 2in>22n>30 } if(OCT2in>2n>
  2
  fivef">f="dhope-line"turn ajax idn=basndiv idn>fivef">basnhope + eturn ajax idn=e=fivef">e=L12">1 128/a>8spau class="commen2t * Copyr21ight (C) 2004-2010 Free21scal216hope                elsnin>L12">1 128/a>8spau class="commen2t *8/spau21e=writelhope(eturn ajax idn=valdiv idn>fivef">valhope &e ~(1>L3" L3"  eturn ajax idn=lass_idxdiv idn>fivef">lass_idxhope),in>L12">1 128/a>8spau class="commen2x * This 21program is free softwar21e; y218hope                                eturn ajax idn=f="ddiv idn>fivef">f="dhope-line"turn ajax idn=basndiv idn>fivef">basnhope + eturn ajax idn=e=fivef">e=L12">1 128/a>8spau class="commen2t * modif21y it under the terms of21 the219hope        }in>L12">1 128/a>8spau class="commen22"> * as 22ublished by the Free So22twar220hopein>L12">1 128/a>8spau class="commen22"> * of 22he License, or (at your22n va221hope        if (eturn ajax idn=edgediv idn>fivef">edgehope != Uturn ajax idn=e=fivef">e=L12">1 128/a>8spau class="commen22"> * Thi2  program is distributed2iin t22Phope                eturn ajax idn=regdiv idn>fivef">reghope += Uturn ajax idn=e=fivef">e=fivef">lass_idxhope &e 0x10) lineline 2); ULAR PURPOSE.ns
02} ifne lower or upper 1 gistspf8/ne" namin>L12">1 128/a>8spau class="commen22"> * but22WITHOUT ANY WARRANTY; w22thou223hope                "turn ajax idn=biddiv idn>fivef">bidhope = Uturn ajax idn=gass_idxdiv idn>fivef">lass_idxhope &e 0xfein>L12">1 128/a>8spau class="commen22"> * MER22HANTABILITY or FITNESS 22OR A224hope                eturn ajax idn=valdiv idn>fivef">valhope = Uturn ajax idn=readldiv idn>fivef">readlhope(eturn ajax idn=regdiv idn>fivef">reghope) &e ~(0x3>L3" L3"  (eturn ajax idn=biddiv idn>fivef">bidhope L3" L3"  1))ein>L12">1 128/a>8spau class="commen22r_p 2in>22n>30 } if(OCT2in>2n>
  22  fivef">writelhope(eturn ajax idn=valdiv idn>fivef">valhope | (eturn ajax idn=edgediv idn>fivef">edgehope L3" L3"  (eturn ajax idn=biddiv idn>fivef">bidhope L3" L3"  1)), eturn ajax idn=regdiv idn>fivef">reghope)ein>L12">1 128/a>8spau class="commen22 * Copyr22ight (C) 2004-2010 Free22scal226hope        }in>L12">1 128/a>8spau class="commen22 *8/spau22e=1 128/a>8spau class="commen22 * This 22program is free softwar22e; y228hope        eturn ajax idn=writeldiv idn>fivef">writelhope(1>L3" L3"  eturn ajax idn=lass_idxdiv idn>fivef">lass_idxhope, eturn ajax idn=f="ddiv idn>fivef">f="dhope-line"turn ajax idn=basndiv idn>fivef">basnhope + eturn ajax idn=e=fivef">e=L12">1 128/a>8spau class="commen22 * modif22y it under the terms of22 the229 anyin>L12">1 128/a>8spau class="commen23"> * as 23ublished by the Free So23twar230hope        return 0ein>L12">1 128/a>8spau class="commen23"> * of 23he License, or (at your23n va23) any}in>L12">1 128/a>8spau class="commen23"> * Thi23PIO support. (c) 2008 D23in t23 hopein>L12">1 128/a>8spau class="commen23"> * but2WWITHOUT ANY WARRANTY; w2tthou233hopestlxr_ voidreturn ajax idn="co_flip_edgediv idn>fivef">"co_flip_edgehope(structreturn ajax idn="co_lass_f="ddiv idn>fivef">"co_lass_f="dhope *eturn ajax idn=f="ddiv idn>fivef">f="dhope, eturn ajax idn=u3PIO supporivef">u3 hope eturn ajax idn=lassdiv idn>fivef">lasshope)in>L12">1 128/a>8spau class="commen23"> * MER23HANTABILITY or FITNESS 23OR A234hope{in>L12">1 128/a>8spau class="commen23r_p 2in>23n>30 } if(OCT2in>2n>
  23  fivef">__iomemhope *eturn ajax idn=regdiv idn>fivef">reghope = Uturn ajax idn=f="ddiv idn>fivef">f="dhope-line"turn ajax idn=basndiv idn>fivef">basnhopeein>L12">1 128/a>8spau class="commen23 * Copyr23ight (C) 2004-2010 Free23scal236hope        eturn ajax idn=u3PIO supporivef">u3 hope eturn ajax idn=biddiv idn>fivef">bidhope, eturn ajax idn=valdiv idn>fivef">valhopeein>L12">1 128/a>8spau class="commen23 *8/spau23e=edgehopeein>L12">1 128/a>8spau class="commen23 * This 23program is free softwar23e; y238hopein>L12">1 128/a>8spau class="commen23 * modif23y it under the terms of23 the239hope        eturn ajax idn=regdiv idn>fivef">reghope += Uturn ajax idn=e=fivef">e=fivef">lasshope &e 0x10) lineline 2); ULAR PURPOSE.ns
02} ifne lower or upper 1 gistspf8/ne" namin>L12">1 128/a>8spau class="commen24"> * as 24ublished by the Free So24twar240hope        "turn ajax idn=biddiv idn>fivef">bidhope = Uturn ajax idn=gassdiv idn>fivef">lasshope &e 0xfein>L12">1 128/a>8spau class="commen24"> * of 24he License, or (at your24n va241hope        eturn ajax idn=valdiv idn>fivef">valhope = Uturn ajax idn=readldiv idn>fivef">readlhope(eturn ajax idn=regdiv idn>fivef">reghope)ein>L12">1 128/a>8spau class="commen24"> * Thi24PIO support. (c) 2008 D24in t242hope        eturn ajax idn=edgediv idn>fivef">edgehope = (eturn ajax idn=valdiv idn>fivef">valhope &ineline (eturn ajax idn=biddiv idn>fivef">bidhope L3" L3"  1)) &e 3ein>L12">1 128/a>8spau class="commen24"> * but24ight 2008 Juergen Beise24thou243hope        eturn ajax idn=valdiv idn>fivef">valhope &e= ~(0x3>L3" L3"  (eturn ajax idn=biddiv idn>fivef">bidhope L3" L3"  1))ein>L12">1 128/a>8spau class="commen24"> * MER2HHANTABILITY or FITNESS 2OOR A244hope        if (eturn ajax idn=edgediv idn>fivef">edgehope == Uturn ajax idn=e=fivef">e=L12">1 128/a>8spau class="commen24r_p 2in>24n>30 } if(OCT2in>2n>
  24  fivef">edgehope = Uturn ajax idn=e=fivef">e=L12">1 128/a>8spau class="commen24 * Copyr24ight (C) 2004-2010 Free24scal246hope                Uturn ajax idn=fr_debugdiv idn>fivef">pr_debughope(eLAR PURPOSE.iverng">""co: switch e=fivef">lasshope)ein>L12">1 128/a>8spau class="commen24 *8/spau24e=edgehope == Uturn ajax idn=e=fivef">e=L12">1 128/a>8spau class="commen24 * This 24program is free softwar24e; y248hope                eturn ajax idn=edgediv idn>fivef">edgehope = Uturn ajax idn=e=fivef">e=L12">1 128/a>8spau class="commen24 * modif24y it under the terms of24 the249hope                Uturn ajax idn=fr_debugdiv idn>fivef">pr_debughope(eLAR PURPOSE.iverng">""co: switch e=fivef">lasshope)ein>L12">1 128/a>8spau class="commen25"> * as 25ublished by the Free So25twar250hope        } elsn {in>L12">1 128/a>8spau class="commen25"> * of 25he License, or (at your25n va251hope                eturn ajax idn=pr_errdiv idn>fivef">pr_errhope(eLAR PURPOSE.iverng">""co: invalidrconfigurlxron 1 1ae=L12">1 128/a>8spau class="commen25"> * Thi25PIO support. (c) 2008 D25in t25Phope                       eturn ajax idn=lassdiv idn>fivef">lasshope, eturn ajax idn=edgediv idn>fivef">edgehope)ein>L12">1 128/a>8spau class="commen25"> * but25ight 2008 Juergen Beise25thou253hope                returnein>L12">1 128/a>8spau class="commen25"> * MER25e=1 128/a>8spau class="commen25r_p 2in>2  on code from Freescale2,  fivef">writelhope(eturn ajax idn=valdiv idn>fivef">valhope | (eturn ajax idn=edgediv idn>fivef">edgehope L3" L3"  (eturn ajax idn=biddiv idn>fivef">bidhope L3" L3"  1)), eturn ajax idn=regdiv idn>fivef">reghope)ein>L12">1 128/a>8spau class="commen25 * Copyr25ight (C) 2004-2010 Free25scal256hope}in>L12">1 128/a>8spau class="commen25 *8/spau25e=1 128/a>8spau class="commen25 * This 25program is free softwar25e; y258hopeULAR PURPOSE.ns
02} ifne handlea32uin2" ruptso/gpL6e stlxuse1 gistspf8/ne" namin>L12">1 128/a>8spau class="commen25 * modif25y it under the terms of25 the25NU Gestlxr_ voidreturn ajax idn="co_lass_irq_handleediv idn>fivef">"co_lass_irq_handlee" pe(structreturn ajax idn="co_lass_f="ddiv idn>fivef">"co_lass_f="dhope *eturn ajax idn=f="ddiv idn>fivef">f="dhope, eturn ajax idn=u3PIO supporivef">u3 hope eturn ajax idn=irq_stlxIO supporivef">irq_stlxhope)in>L12">1 128/a>8spau class="commen26"> * as 26ublished by the Free So26twar26Found{in>L12">1 128/a>8spau class="commen26"> * of 26he License, or (at your26n va261hope        whilea(eturn ajax idn=irq_stlxIO supporivef">irq_stlxhope != 0) {in>L12">1 128/a>8spau class="commen26 * MXC G26PIO support. (c) 2008 D26in t26Phope                intreturn ajax idn=irqoffsexIO supporivef">irqoffsexhope = Uturn ajax idn=flsdiv idn>fivef">flshope(eturn ajax idn=irq_stlxIO supporivef">irq_stlxhope) - 1ein>L12">1 128/a>8spau class="commen2 "> * but26ight 2008 Juergen Beise26thou26even in>L12">1 128/a>8spau class="commen2 "> * MER26e=fivef">f="dhope-line"turn ajax idn=boL1_edgesdiv idn>fivef">boL1_edgeshope &e (1>L3" L3"  eturn ajax idn=irqoffsexIO supporivef">irqoffsexhope))in>L12">1 128/a>8spau class="commen26r_p 2in>26 on code from Freescale26  "co_flip_edgehope(eturn ajax idn=f="ddiv idn>fivef">f="dhope, eturn ajax idn=irqoffsexIO supporivef">irqoffsexhope)ein>L12">1 128/a>8spau class="commen2  * Copyr2iight (C) 2004-2010 Free2sscal266 anyin>L12">1 128/a>8spau class="commen26 *8/spau26e=fivef">l0" iic_handle_irqhope(eturn ajax idn=irq_find_mapprng"O supporivef">irq_find_mapprnghope(eturn ajax idn=f="ddiv idn>fivef">f="dhope-line"turn ajax idn=domaindiv idn>fivef">domainhope, eturn ajax idn=irqoffsexIO supporivef">irqoffsexhope))ein>L12">1 128/a>8spau class="commen2  * This 26program is free softwar26e; y268hopein>L12">1 128/a>8spau class="commen26 * modif26y it under the terms of26 the269hope                Uturn ajax idn=irq_stlxIO supporivef">irq_stlxhope &e= ~(1>L3" L3"  eturn ajax idn=irqoffsexIO supporivef">irqoffsexhope)ein>L12">1 128/a>8spau class="commen27"> * as 27ublished by the Free So27twar270hope        }in>L12">1 128/a>8spau class="commen27"> * of 27he License, or (at your27n va27) any}in>L12">1 128/a>8spau class="commen27 * MXC G27PIO support. (c) 2008 D27in t27 hopein>L12">1 128/a>8spau class="commen27"> * but27ight 2008 Juergen Beise27thou27even the implied warranty o/8/MX1 and/MX3 has#L6e in2" rupt *per* s="c f="df8/ne" namin>L12">1 128/a>8spau class="commen27 *8/spau27e=fivef">"c3_lass_irq_handleehope(eturn ajax idn=u3PIO supporivef">u3 hope eturn ajax idn=irqIO supporivef">irqhope, structreturn ajax idn=irq_descdiv idn>fivef">irq_deschope *eturn ajax idn=descdiv idn>fivef">deschope)in>L12">1 128/a>8spau class="commen27 * Based27 on code from Freescale27  L12">1 128/a>8spau class="commen27 * Copyr27ight (C) 2004-2010 Free27scal276hope        eturn ajax idn=u3PIO supporivef">u3 hope eturn ajax idn=irq_stlxIO supporivef">irq_stlxhopeein>L12">1 128/a>8spau class="commen27 *8/spau2ee="co_lass_f="dhope *eturn ajax idn=f="ddiv idn>fivef">f="dhope = Uturn ajax idn=irq_g0t_handlee_datadiv idn>fivef">irq_g0t_handlee_datahope(eturn ajax idn=irqIO supporivef">irqhope)ein>L12">1 128/a>8spau class="commen27 * This 27program is free softwar27e; y278hope        structreturn ajax idn=irq_chipdiv idn>fivef">irq_chiphope *eturn ajax idn=chipdiv idn>fivef">chiphope = Uturn ajax idn=irq_g0t_chipdiv idn>fivef">irq_g0t_chiphope(eturn ajax idn=irqIO supporivef">irqhope)ein>L12">1 128/a>8spau class="commen27 * modif27y it under the terms of27 the279 anyin>L12">1 128/a>8spau class="commen28"> * as 28ublished by the Free So28twar280hope        "turn ajax idn=chained_irq_en2" div idn>fivef">chained_irq_en2" hope(eturn ajax idn=chipdiv idn>fivef">chiphope, eturn ajax idn=descdiv idn>fivef">deschope)ein>L12">1 128/a>8spau class="commen28"> * of 28he License, or (at your28n va281hopein>L12">1 128/a>8spau class="commen28 * MXC G28PIO support. (c) 2008 D28in t282hope        eturn ajax idn=irq_stlxIO supporivef">irq_stlxhope = Uturn ajax idn=readldiv idn>fivef">readlhope(eturn ajax idn=f="ddiv idn>fivef">f="dhope-line"turn ajax idn=basndiv idn>fivef">basnhope + eturn ajax idn=e=fivef">e=fivef">readlhope(eturn ajax idn=f="ddiv idn>fivef">f="dhope-line"turn ajax idn=basndiv idn>fivef">basnhope + eturn ajax idn=e=fivef">e=L12">1 128/a>8spau class="commen28"> * but28ight 2008 Juergen Beise28thou28even in>L12">1 128/a>8spau class="commen28 *8/spau28e=fivef">"co_lass_irq_handlee" pe(eturn ajax idn=f="ddiv idn>fivef">f="dhope, eturn ajax idn=irq_stlxIO supporivef">irq_stlxhope)ein>L12">1 128/a>8spau class="commen28 * Based28 on code from Freescale28  L12">1 128/a>8spau class="commen28 * Copyr28ight (C) 2004-2010 Free28scal286hope        eturn ajax idn=chained_irq_exiddiv idn>fivef">chained_irq_exidhope(eturn ajax idn=chipdiv idn>fivef">chiphope, eturn ajax idn=descdiv idn>fivef">deschope)ein>L12">1 128/a>8spau class="commen28 *8/spau28e=1 128/a>8spau class="commen28 * This 2pprogram is free softwar2ee; y288hopein>L12">1 128/a>8spau class="commen28 * modif28y it under the terms of28 the28NU General Public License8/ne/MX2 has#L6e in2" rupt *1 1aall* s="c f="dsf8/ne" namin>L12">1 128/a>8spau class="commen29"> * as 29ublished by the Free So29twar290hopestlxr_ voidreturn ajax idn="c2_lass_irq_handleediv idn>fivef">"c2_lass_irq_handlee" pe(eturn ajax idn=u3PIO supporivef">u3 hope eturn ajax idn=irqIO supporivef">irqhope, structreturn ajax idn=irq_descdiv idn>fivef">irq_deschope *eturn ajax idn=descdiv idn>fivef">deschope)in>L12">1 128/a>8spau class="commen29"> * of 29he License, or (at your29n va291hope{in>L12">1 128/a>8spau class="commen29 * MXC G29PIO support. (c) 2008 D29in t292hope        eturn ajax idn=u3PIO supporivef">u3 hope eturn ajax idn=irq_mskdiv idn>fivef">irq_mskhope, eturn ajax idn=irq_stlxIO supporivef">irq_stlxhopeein>L12">1 128/a>8spau class="commen29"> * but29ight 2008 Juergen Beise29thou293hope        structreturn ajax idn="co_lass_f="ddiv idn>fivef">"co_lass_f="dhope *eturn ajax idn=f="ddiv idn>fivef">f="dhopeein>L12">1 128/a>8spau class="commen29 *8/spau29e=1 128/a>8spau class="commen29 * Based29 on code from Freescale29  L12">1 128/a>8spau class="commen29 * Copyr29ight (C) 2004-2010 Free29scal296hope        eturn ajax idn=list_1 1_each_en2rydiv idn>fivef">list_1 1_each_en2ry" pe(eturn ajax idn=f="ddiv idn>fivef">f="dhope, &e"turn ajax idn="co_lass_f="dsdiv idn>fivef">"co_lass_f="dshope, eturn ajax idn=nidndiv idn>fivef">nidnhope) {in>L12">1 128/a>8spau class="commen29 *8/spau29e=irq_mskhope = Uturn ajax idn=readldiv idn>fivef">readlhope(eturn ajax idn=f="ddiv idn>fivef">f="dhope-line"turn ajax idn=basndiv idn>fivef">basnhope + eturn ajax idn=e=fivef">e=L12">1 128/a>8spau class="commen29 * This 29program is free softwar29e; y298hope                if (!eturn ajax idn=irq_mskdiv idn>fivef">irq_mskhope)in>L12">1 128/a>8spau class="commen29 * modif2yy it under the terms of2  the299hope                        co} drueein>L12">1 128/a>8spau class="commen30"> * as 3uublished by the Free So3ttwar300hopein>L12">1 128/a>8spau class="commen30"> * of 30he License, or (at your301war301hope                eturn ajax idn=irq_stlxIO supporivef">irq_stlxhope = Uturn ajax idn=readldiv idn>fivef">readlhope(eturn ajax idn=f="ddiv idn>fivef">f="dhope-line"turn ajax idn=basndiv idn>fivef">basnhope + eturn ajax idn=e=fivef">e=fivef">irq_mskhopeein>L12">1 128/a>8spau class="commen302> * of 30PIO support. (c) 2008 D302war30Phope                if (eturn ajax idn=irq_stlxIO supporivef">irq_stlxhope)in>L12">1 128/a>8spau class="commen30"> * but30WITHOUT ANY WARRANTY; w303war303hope                        eturn ajax idn="co_lass_irq_handleediv idn>fivef">"co_lass_irq_handlee" pe(eturn ajax idn=f="ddiv idn>fivef">f="dhope, eturn ajax idn=irq_stlxIO supporivef">irq_stlxhope)ein>L12">1 128/a>8spau class="commen30"> * MER30HANTABILITY or FITNESS 304war3t4hope        }in>L12">1 128/a>8spau class="commen305> * MER30 on code from Freescale305war305hope}in>L12">1 128/a>8spau class="commen306> * MER30ight (C) 2004-2010 Free306war306 anyin>L12">1 128/a>8spau class="commen30 *8/spau30e=L2">1 128/a>8spau class="comment">30 * This 30program is free softwar308war308hopeULAR PURPOSE.ns
02} if * Set in2" rupt number "irq"o/gprivee=L12">1 128/a>8spau class="commen30 * modif30y it under the terms of309war30NU General Public License8/ * Whileasystsmef="running, all 1 gistspedee=L12">1 128/a>8spau class="commen3t"> * as 3published by the Free So3ftwar31Foundavalu; either vers"
	 28/wake-up enabled. Whenasystsmef="suspended,#L6ly selectedee=L12">1 128/a>8spau class="commen3t"> * of 3hhe License, or (at your3n1war31) any later vers"
	.8/spaue=L12">1 128/a>8spau class="commen3t2> * of 3s program is distributed3 in t31 hope that it will be useful,8@param  irq          in2" rupt source numberne" namin>L12">1 128/a>8spau class="commen3t"> * but3 WITHOUT ANY WARRANTY; w3ithou31even the implied warranty of88@param  enable       enable as#wake-up if equalato non-zerone" namin>L12">1 128/a>8spau class="commen3t"> * MER3CHANTABILITY or FITNESS 3FOR A314hopethe implied warranty of88@return       /spaufuncxron returns 0#L6"succesaine" namin>L12">1 128/a>8spau class="commen3xr_p 2in>32n>30 } if(OCT2in>2n>
  3
  L12">1 128/a>8spau class="commen3t * Copyr31ight (C) 2004-2010 Free31scal316hopestlxr_ intreturn ajax idn=lass_set_wake_irqdiv idn>fivef">lass_set_wake_irq" pe(structreturn ajax idn=irq_datadiv idn>fivef">irq_datahope *eturn ajax idn=cdiv idn>fivef">chope, eturn ajax idn=u3PIO supporivef">u3 hope eturn ajax idn=enableIO supporivef">enablehope)in>L12">1 128/a>8spau class="commen3t *8/spau31e=1 128/a>8spau class="commen3x * This 31program is free softwar31e; y318hope        structreturn ajax idn=irq_chip_g0" iicdiv idn>fivef">irq_chip_g0" iichope *eturn ajax idn=gcdiv idn>fivef">lchope = Uturn ajax idn=irq_data_g0t_irq_chip_datadiv idn>fivef">irq_data_g0t_irq_chip_datahope(eturn ajax idn=cdiv idn>fivef">chope)ein>L12">1 128/a>8spau class="commen3t * modif31y it under the terms of31 the319hope        structreturn ajax idn="co_lass_f="ddiv idn>fivef">"co_lass_f="dhope *eturn ajax idn=f="ddiv idn>fivef">f="dhope = Uturn ajax idn=gcdiv idn>fivef">lchope-line"turn ajax idn=p28/at/div idn>fivef">p28/at/hopeein>L12">1 128/a>8spau class="commen32"> * as 32ublished by the Free So32twar320hope        "turn ajax idn=u3PIO supporivef">u3 hope eturn ajax idn=lass_idxdiv idn>fivef">lass_idxhope = Uturn ajax idn=cdiv idn>fivef">chope-line"turn ajax idn=hwirqdiv idn>fivef">hwirqhopeein>L12">1 128/a>8spau class="commen32"> * of 32he License, or (at your32n va321hopein>L12">1 128/a>8spau class="commen32"> * Thi3  program is distributed3iin t32Phope        if (eturn ajax idn=enableIO supporivef">enablehope) {in>L12">1 128/a>8spau class="commen32"> * but32WITHOUT ANY WARRANTY; w32thou323hope                if (eturn ajax idn=f="ddiv idn>fivef">f="dhope-line"turn ajax idn=irq_highdiv idn>fivef">irq_highhope &e&e (eturn ajax idn=lass_idxdiv idn>fivef">lass_idxhope line= 16))in>L12">1 128/a>8spau class="commen32"> * MER32HANTABILITY or FITNESS 32OR A324hope                        "turn ajax idn=enable_irq_wakeIO supporivef">enable_irq_wakehope(eturn ajax idn=f="ddiv idn>fivef">f="dhope-line"turn ajax idn=irq_highdiv idn>fivef">irq_highhope)ein>L12">1 128/a>8spau class="commen32r_p 2in>32n>30 } if(OCT2in>2n>
  32  L12">1 128/a>8spau class="commen32 * Copyr32ight (C) 2004-2010 Free32scal326hope                        "turn ajax idn=enable_irq_wakeIO supporivef">enable_irq_wakehope(eturn ajax idn=f="ddiv idn>fivef">f="dhope-line"turn ajax idn=irqIO supporivef">irqhope)ein>L12">1 128/a>8spau class="commen32 *8/spau32e=1 128/a>8spau class="commen32 * This 32program is free softwar32e; y328hope                if (eturn ajax idn=f="ddiv idn>fivef">f="dhope-line"turn ajax idn=irq_highdiv idn>fivef">irq_highhope &e&e (eturn ajax idn=lass_idxdiv idn>fivef">lass_idxhope line= 16))in>L12">1 128/a>8spau class="commen32 * modif32y it under the terms of32 the329hope                        Uturn ajax idn=cisable_irq_wakeIO supporivef">cisable_irq_wakehope(eturn ajax idn=f="ddiv idn>fivef">f="dhope-line"turn ajax idn=irq_highdiv idn>fivef">irq_highhope)ein>L12">1 128/a>8spau class="commen33"> * as 33ublished by the Free So33twar330hope                elsnin>L12">1 128/a>8spau class="commen33"> * of 33he License, or (at your33n va331hope                        Uturn ajax idn=cisable_irq_wakeIO supporivef">cisable_irq_wakehope(eturn ajax idn=f="ddiv idn>fivef">f="dhope-line"turn ajax idn=irqIO supporivef">irqhope)ein>L12">1 128/a>8spau class="commen33"> * Thi33PIO support. (c) 2008 D33in t33Phope        }in>L12">1 128/a>8spau class="commen33"> * but3WWITHOUT ANY WARRANTY; w3tthou33even in>L12">1 128/a>8spau class="commen33"> * MER33HANTABILITY or FITNESS 33OR A334hope        return 0ein>L12">1 128/a>8spau class="commen33r_p 2in>33n>30 } if(OCT2in>2n>
  33  L12">1 128/a>8spau class="commen33 * Copyr33ight (C) 2004-2010 Free33scal336 anyin>L12">1 128/a>8spau class="commen33 *8/spau33e=__inidhope eturn ajax idn="co_lass_inid_gcdiv idn>fivef">"co_lass_inid_gc" pe(structreturn ajax idn="co_lass_f="ddiv idn>fivef">"co_lass_f="dhope *eturn ajax idn=f="ddiv idn>fivef">f="dhope, intreturn ajax idn=irq_basndiv idn>fivef">irq_basnhope)in>L12">1 128/a>8spau class="commen33 * This 33program is free softwar33e; y338hope{in>L12">1 128/a>8spau class="commen33 * modif33y it under the terms of33 the339hope        structreturn ajax idn=irq_chip_g0" iicdiv idn>fivef">irq_chip_g0" iichope *eturn ajax idn=gcdiv idn>fivef">lchopeein>L12">1 128/a>8spau class="commen34"> * as 34ublished by the Free So34twar340hope        structreturn ajax idn=irq_chip_ 18/div idn>fivef">irq_chip_ 18/hope *eturn ajax idn=cddiv idn>fivef">cdhopeein>L12">1 128/a>8spau class="commen34"> * of 34he License, or (at your34n va341hopein>L12">1 128/a>8spau class="commen34"> * Thi34PIO support. (c) 2008 D34in t342hope        eturn ajax idn=gcdiv idn>fivef">lchope = Uturn ajax idn=irq_alloc_g0" iic_chipdiv idn>fivef">irq_alloc_g0" iic_chiphope(eLAR PURPOSE.iverng">"lass="co"ne" nam, 1, eturn ajax idn=irq_basndiv idn>fivef">irq_basnhope,in>L12">1 128/a>8spau class="commen34"> * but34ight 2008 Juergen Beise34thou343hope                                    Uturn ajax idn=f="ddiv idn>fivef">f="dhope-line"turn ajax idn=basndiv idn>fivef">basnhope, eturn ajax idn=handle_level_irqdiv idn>fivef">handle_level_irqhope)ein>L12">1 128/a>8spau class="commen34"> * MER3HHANTABILITY or FITNESS 3OOR A344hope        Uturn ajax idn=gcdiv idn>fivef">lchope-line"turn ajax idn=p28/at/div idn>fivef">p28/at/hope = Uturn ajax idn=f="ddiv idn>fivef">f="dhopeein>L12">1 128/a>8spau class="commen34r_p 2in>34n>30 } if(OCT2in>2n>
  34  L12">1 128/a>8spau class="commen34 * Copyr34ight (C) 2004-2010 Free34scal346hope        eturn ajax idn=cddiv idn>fivef">cdhope = Uturn ajax idn=gcdiv idn>fivef">lchope-line"turn ajax idn=chip_ 18/sdiv idn>fivef">chip_ 18/shopeein>L12">1 128/a>8spau class="commen34 *8/spau34e=cdhope-line"turn ajax idn=chipdiv idn>fivef">chiphope.eturn ajax idn=irq_ackdiv idn>fivef">irq_ackhope = Uturn ajax idn=irq_gc_ack_set_biddiv idn>fivef">irq_gc_ack_set_bidhopeein>L12">1 128/a>8spau class="commen34 * This 34program is free softwar34e; y348hope        eturn ajax idn=cddiv idn>fivef">cdhope-line"turn ajax idn=chipdiv idn>fivef">chiphope.eturn ajax idn=irq_maskdiv idn>fivef">irq_maskhope = Uturn ajax idn=irq_gc_mask_clr_biddiv idn>fivef">irq_gc_mask_clr_bidhopeein>L12">1 128/a>8spau class="commen34 * modif34y it under the terms of34 the349hope        eturn ajax idn=cddiv idn>fivef">cdhope-line"turn ajax idn=chipdiv idn>fivef">chiphope.eturn ajax idn=irq_unmaskdiv idn>fivef">irq_unmaskhope = Uturn ajax idn=irq_gc_mask_set_biddiv idn>fivef">irq_gc_mask_set_bidhopeein>L12">1 128/a>8spau class="commen35"> * as 35ublished by the Free So35twar350hope        "turn ajax idn=cddiv idn>fivef">cdhope-line"turn ajax idn=chipdiv idn>fivef">chiphope.eturn ajax idn=irq_set_ 18/div idn>fivef">irq_set_ 18/hope = Uturn ajax idn=gass_set_irq_ 18/div idn>fivef">gass_set_irq_ 18/hopeein>L12">1 128/a>8spau class="commen35"> * of 35he License, or (at your35n va351hope        eturn ajax idn=cddiv idn>fivef">cdhope-line"turn ajax idn=chipdiv idn>fivef">chiphope.eturn ajax idn=irq_set_wakeIO supporivef">irq_set_wakehope = Uturn ajax idn=gass_set_wake_irqdiv idn>fivef">lass_set_wake_irq" peein>L12">1 128/a>8spau class="commen35"> * Thi35PIO support. (c) 2008 D35in t352hope        eturn ajax idn=cddiv idn>fivef">cdhope-line"turn ajax idn=regsdiv idn>fivef">regshope.eturn ajax idn=ackdiv idn>fivef">ackhope = Uturn ajax idn=e=fivef">e=L12">1 128/a>8spau class="commen35"> * but35ight 2008 Juergen Beise35thou353hope        eturn ajax idn=cddiv idn>fivef">cdhope-line"turn ajax idn=regsdiv idn>fivef">regshope.eturn ajax idn=maskdiv idn>fivef">maskhope = Uturn ajax idn=e=fivef">e=L12">1 128/a>8spau class="commen35"> * MER35e=1 128/a>8spau class="commen35r_p 2in>3  on code from Freescale3,  fivef">irq_setup_g0" iic_chiphope(eturn ajax idn=gcdiv idn>fivef">lchope, eturn ajax idn=IRQ_MSKdiv idn>fivef">IRQ_MSKhope(32), eturn ajax idn=IRQ_GC_INIT_NESTED_LOCKdiv idn>fivef">IRQ_GC_INIT_NESTED_LOCKhope,in>L12">1 128/a>8spau class="commen35 * Copyr35ight (C) 2004-2010 Free35scal356hope                               eturn ajax idn=IRQ_NOREQUESTdiv idn>fivef">IRQ_NOREQUESThope, 0)ein>L12">1 128/a>8spau class="commen35 *8/spau35e=1 128/a>8spau class="commen35 * This 35program is free softwar35e; y358hopein>L12">1 128/a>8spau class="commen35 * modif35y it under the terms of35 the35NU Gestlxr_ voidreturn ajax idn="co_lass_g0t_hwdiv idn>fivef">"co_lass_g0t_hw" pe(structreturn ajax idn=platform_devic/div idn>fivef">platform_devic/hope *eturn ajax idn=fdevdiv idn>fivef">pdevhope)in>L12">1 128/a>8spau class="commen36"> * as 36ublished by the Free So36twar36Found{in>L12">1 128/a>8spau class="commen36"> * of 36he License, or (at your36n va361hope        const structreturn ajax idn=of_devic/_icdiv idn>fivef">of_devic/_ichope *eturn ajax idn=of_icdiv idn>fivef">of_ichope =in>L12">1 128/a>8spau class="commen36"> * Thi3G26PIO support. (c) 200836in tclass="commen36"128/a>8spau class="commen32"> * Thief">irq_set_ 18/ n>fii8/a>8spau class=">cdhope-5u5>fii12t8/a>8spa329)25 * t_ the Free So36t1cddiv  ajax idn=of_devic/_icdiv idn>fivef">_devic/_icdiv idn>fivef">_devic/_icdiv id> * of 36he License, or (at your36n ine"turn ajax irn ajax idn=chipdiv idn>6urn aj4k4d6s="comturn ajax idn=cdiv idn>fivef">chope-line"numdn="co_lass_g0t_hwdiv idnhwivef">gass_set_irq_hwdiv idnhwivefax idn="co_lass_inidhwivef">gass_set_irq_hwivefax iurn ajax irn ajax idn=chipdiv idn>6urna href="drivers/gpio26OR A264hope3     361 128/a>8spau class="commen35r_p 2in>3  on code fr3m Freescale26  ffivef">of_ichope =in>L12">1 18/a>8spau class="commen36"> * as 36ublt (C) 2004-2010 Free2sscal266 any3n>L1236        Uturn ajax idn=fr_debugdiv iddiv idn>fivef">_devic/_icdiv id> * of 36he Licid>fivef">list_1 1_eachid>fivefajax idn=e=of_ichope =in>L12">1 1iv id> * of 36he Licevef">irq_data_g0t_n ajax iurn ajax irn ajax idn=chipdiv idn>6urna href="drivers/gpio26/gpi267hope3     36eturn ajax idn=cddiv idn>fivhwivef">gass_set_irq_hwivefax i idn=f="ddiv idn>fidiv idn>fivef">_devic/_icdiv id> * of 36he Licid>fivef">list_1 1_eachid>fivefajaxiv id> * of 36he Lice ajaxfivef">irq_data_g0t_e ajaxfivefax iurn ajax irn ajax idn=chipdiv idn>6urngram is free softwar26e; y268hope3n>L123>1 128/a>8spau class="commen26 * modif26y3it under 3he terms of26 the269hope3     3         Uturnx idn=f="ddiv idn>fhwdiv idnhwivef">gass_set_irq_hwdiv idnhwivefax i128/a>8spau class="commen32"> * but32WIlished by3the Free So27twar270hope3     37        elsnin>L12">1License8/ne" namin>L2">1 128/a>8spau class="comment">30 * This 30pr License,3or (at your27n va27) any3in>L137ers"
	.8/spaue=30 * This 30pr IO suppor (c) 2008 D27in t27 hope3n>L1237 will be useful,8@param  irqvvvvvvvvvvvvvvvv* that,#L6dee=0 * namin>Lmurn bea/waks7 h ivef when 128/a>8spau class="comment">30 * This 30pr  aj4k4d6sergen Beise27thou27even 3he im3lied warranty o/8/MX1 and/MXqvvvvvvvvvvvvvvvv* 1 gistse" ngistsoc2">1 128/a>8spau class="commen3xr_p 2in>32n>1 128/a>8spau class="commen3t * Copyr31ign code fr3m Freescale27  L137        eturn ajax idn=edgediv idn>fBUG_ON">gass_set_irq_BUG_ONi12t8/a>8spa329)25 * t_ the Fhwivef">gass_set_irq_hwdiv idnhwivefax id idn=e=gass_set_irq_hwivefax iturn ajax irn ajax idn=chipdiv idn>6urht (C) 2034-2010 Free27scal276hope3     37        Uturn ajax id">1 128/a>8spau class="commen25"> * MER25e38spau class="commen26 * modif26y3it under 3he terms of27 the279 any3n>L1237        Uturnx idn=f="ddiv idn>fhwivef">gass_set_irq_hwivefax i iidn=e=L">IRQ_NOREQUESThMX35_in>L>1 18/a>8spau class="commen36"> * as 36ublished by3the Free So28twar280hope3     38        elsnin>L12">1La>8spa329)25 * t_ the Fhwivef">irq_data_g0t_ t_ the Fhwivefax i ididn>fivef">_devic/_iimx35_the Fhwivef">irq_data_g0t_imx35_the Fhwivefax iurn ajax irn ajax idn=chipdiv idn>6ur License,3or (at your28n va281hope3n>L1238const structrn ajax idn=edgediv idn>fhwivef">gass_set_irq_hwivefax i iidn=e=1La>8spa329)25 * t_1_in>L>1 18/a>8spau class="commen36"> * as 36ublIO sport. (c) 2008 D28in t232hope38mmen36"128/a>8spau clL12">1La>8spa329)25 * t_ the Fhwivef">irq_data_g0t_ t_ the Fhwivefax i ididn>fivef">_devic/1iimx35_the Fhwivef">irq_data_g01_imx35_the Fhwivefax iurn ajax irn ajax idn=chipdiv id 30pr  aj008 Juergen Beise28thou23even 383L1238const strucfax iurn ajax irn ajax idn=chipdiv id>32n>1La>8spa329)25 * t_ the Fhwivef">irq_data_g0t_ t_ the Fhwivefax i ididn>fivef">_devic1_vic21iimx35_the Fhwivef">irq_data_g1_vic21iimx35_the Fhwivefax iurn ajax irn ajax idn=chipdiv idr31ign code from Freescale28  L12">1 128/a>8spau class="commen28 * Co3yr28ight 3C) 2004-2010 Free28scal236hope3       eturn ajax idn=chained9)25 * t_ the Fhwivef">gass_set_irq_hwdiv idnhwiveax id idn=e=gass_set_irq_hwivefax iurn ajax irn ajax idn=chipdiv idR25e31 128/a>8spau class="commen28 * Th3s 2pprogr3m is free softwar2ee; y238hope3n>L12">1 128/a>8spau class="commen28 * mo3if28y it 3nder the terms of28 the23NU Ge38lxr_ voidretrn ajax idn=irq_bast_irq_hwdto idn>fivef">lass_set_irq_hwdto idnructreturn ajax idn=platforq_hwd idn>fivef">irq_setq_hwd idnturn ajax idn=of_icdidn>fivef">lchope, eturn aunsigne ajax idn="co_lasO supporivef">irqoffsope)ein>L12>1 128/a>8spau class="commen28 * mo3s 29ublis3ed by the Free So29twar230hope39n>L12">1 128/a>8spau class="commen36"> * of 29he Li3ense, or (at your29n va231hope39>L1238const seturn ajax idn=platforbq_hwd idn>fivef">irq_setbq_hwd idnturn ajax idn=of_icdibdn>fivef">lchope,b= Uturn ajax idn=irq_allto bq_hwd idn>fivef">irq_setto bq_hwd idnurn ajax idn=gcdiv idn>fivef">lchope, eturnefax iturn ajax irn ajax idn=chipdiv i G29PIO s3pport. (c) 2008 D29in t232hope3       eturn aeturn ajax idn="co_lass_f="ddiv idn>fivef">"co_lass_f="dhope *eturn ajax idn=f="ddiv idn>fivef">f="dhope = Uturn ax iturn ajax irn ajax idn=chipdiv i  30pr  aj008 Juergen Beise29thou233hope39                     jax idn=cddiv idontrq_er_of>fivef">cdhope-lontrq_er_ofurn ajax idn=gcdiv ibdn>fivef">lchope,b= Uturtreturn ajax idn=irq_dess_f="ddiv idn>fivef">"co_lass_f="dhope *eturn ajax idn=IRQ_GC_bdn>fivef">lchope,b= Uturefax iturn ajax irn ajax idn=chipdiv i >32n>1 128/a>8spau class="commen29 * Ba3ed29 on c3de from Freescale29  L1jax idn=irq_setup_gpprng"O supporivef">irq_find_mapprnghope(eturn ajax idn=f="ddiv idn>fivef">f="dhope-line"turn ajax idn=domaindiv idn>fivef">domainhope, eturn ajax idn=irqoffsO supporivef">irqoffsope)ein>L12fax iturn ajax irn ajax idn=chipdiv i r28ight 3C) 2004-2010 Free29scal236hope39n>L12">1 128/a>8spau class="commen25 *8/s3au29e=1 128/a>8spau class="commen25 * Th3s 29progr3m is free softwar29e; y238hope3      voidretrn ajax idn=irq_bast_irq_hwdprobFhwivef">gass_set_irq_hwdprobFructreturn ajax idn=platform_devic/div idn>fivef">platform_devic/hope *eturn ajax idn=fdevdiv idn>fivef">pdevhope)in>L12">1 128/a>8spau class="commen36"> * aif2yy it 3nder the terms of2  the239hope3      ">1 128/a>8spau class="commen36"> * 4s 3uublis4ed by the Free So3ttwar340hope40      structreturn ajax idn=irq_chiichope  idn>fivef">nidnhopichope  idnturn ajax idn=fdevdivnn>fivef">irq_setn Uturn ajax idn=irq_g0tvic/_icdiv idn>fivef">_devic/_icdiv id> * of 36he License, or (at your36ajax idn=maskdivof  idn>fivef">nidnhopof  idnhwivefax iurn ajax irn ajax idn=chipdiv 4f 30he Li4ense, or (at your301war341hope40>L1238const seturn ajax idn=platfors_f="ddiv idn>fivef">"co_lass_f="dhope *eturn ajax idn=f="ddiv idn>fivef">f="dhope = Uturefax iurn ajax irn ajax idn=chipdiv 4f230he Li4eport. (c) 2008 D29in t24Phope40      eturn aeturn ajax idn="co_lasrenumber>fivef">regshope.numberturn ajax idn=f="ddiviordn>fivef">chip_ 1iordnUturefax iurn ajax irn ajax idn=chipdiv 4f330he Li4e08 Juergen Beise29thou243hope4              rn ajax idn=irq_basndiv idn>fivef">irq_basnhope)in>L12efax iurn ajax irn ajax idn=chipdiv 4f430he Li4eef="drivers/gpio29OR A244hope4       }in>L12rn ajax idn=edgediv dn>fivef">pr_errh(eLAR Pefax iurn ajax irn ajax idn=chipdiv 4f530he Li4ee from Freescale29  L12">1 128/a>8spau class="commen28 * Co4ER30ight 4C) 2004-2010 Free306war346 any40      eturn ajax idn=chained9)25 * t_iv idn>fivef">"co_lass_g0t_hw" pe(structrjax idn=fdevdiv idn>fivef">pdevhope)in>L12"efax iurn ajax irn ajax idn=chipdiv 4f730ight 4Cef="drivers/gpio29/gpi247hope40>L12">1 128/a>8spau class="commen25 * Th4s 30progr4m is free softwar308war348hope40      eturn ajax idn=cddiv i idn>fivef">f="dhope = Uturn ajax idn=gcdiv ikz0" ii>fivef">f="dhopkz0" iiructreizeofreturn ajax idn="co_lass_f="ddiv idn>fivef">"co_lass_f="dhope *eturnn ajax idn=IRQ_GC_GFP_KERNEL>fivef">"co_lasGFP_KERNEL>L12"efax iurn ajax irn ajax idn=chipdiv 4f930progr4mder the terms of2  the24NU Ge40>L1237        Utuajax idn=irq_msk idn>fivef">f="dhope = Utur">1 128/a>8spau class="commen36"> * 4s 3publis4ed by the Free So3ftwar34Found41    38        elsnin>0ein>L1-jax idn=irq_mskENOMEM>fivef">f="dhopENOMEMAR Pefax iurn ajax irn ajax idn=chipdiv 4f 3hhe Li4ense, or (at your3n1war34) any41>L12">1 128/a>8spau class="commen34"> * 4f 3s prog4am is distributed3 in t34 hope41      eturn ajax idn=irq_stlxordn>fivef">chip_ 1iordnUturn ajax idn=irq_g0tv_devic/h pe(renumber>fivef">regshopv_devic/h pe(renumberructrjax idn=fdevdiv idn>fivef">pdevhope)in>L12 ajax idn=IRQ_GC_IORESOURCE_MEM>fivef">f="dhopIORESOURCE_MEM>L12 a12">1 128/a>8spau class="commen35 *8/s4ut3 WITHO4T ANY WARRANTY; w3ithou34even 413L1237        Utuajax idn=irq_mskxordn>fivef">chip_ 1iordnUturefax i128/a>8spau class="commen32"> * 4ER3CHANTA4ILITY or FITNESS 3FOR A344hope41      eturn a8spau clL12">1La>8spa32 dn>fivef">pr_errh(eLAR Pn a-jax idn=irq_mskENODdn>fivef">e=2n>
  3
  L137        eturn agotoajax idn=irqoffsOut_kfren>fivef">nidnhopout_kfrenAR Pefax iurn ajax irn ajax idn=chipdiv 4fR30ight 4C) 2004-2010 Free31scal346hope41      eturn a">1 128/a>8spau class="commen25 *8/s4au31e=1 128/a>8spau class="commen25 * Th4s 31progr4m is free softwar31e; y348hope4       structr Utuajax idn=irq_mskrequest_mem_pedeon>fivef">domainhrequest_mem_pedeonructrjax idn=fdevdivxordn>fivef">chip_ 1iordnUturc/_icdiv id> * of 36voidn>fivef">f="dhopvoidn>L12 ajax idn=IRQ_GC_renumber_eize>fivef">regshope.number_eizeructrjax idn=fdevdivxordn>fivef">chip_ 1iordnUtur)">1 128/a>8spau class="commen35 * Co4if31y it 4nder the terms of31 the349hope41                      Uturn a eturn ajax idn=cddiv i ic/_icdiv idn>fivef">_devic/_icdiv id> * of 3631 t>fivef">irq_setn1 tUtur)efax i128/a>8spau class="commen32"> * 4s 32ublis4ed by the Free So32twar340hope42    38        elsnin>L12">1La>8spa32 dn>fivef">pr_errh(eLAR Pn a-jax idn=irq_mskEBUSY>fivef">e=fivef">nidnhopout_kfrenAR Pefax iurn ajax irn ajax idn=chipdiv 4hi3  prog4am is distributed3iin t34Phope42      }in>L12">1 128/a>8spau class="commen33"> * 4ut32WITHO4T ANY WARRANTY; w32thou343hope42>L12">1 128/a>8spau class="commen33"> * 4ER32HANTA4ILITY or FITNESS 32OR A344hope4              jax idn=f="ddiv idn>fivef">f="dhope-line"turn ajax idn=domaind idn>fivef">basnhope + eturn ajax idn=irq_gc_mordman>fivef">irq_setuordmanructrjax idn=fdevdivxordn>fivef">chip_ 1iordnUturc/_icdiv id> * of 36voidn>fivef">f="dhopvoidn>L12 ajax idn=IRQ_GC_renumber_eize>fivef">regshope.number_eizeructrjax idn=fdevdivxordn>fivef">chip_ 1iordnUtur)2">1 128/a>8spau class="commen35 *8/s4n>32n>30 4 if(OCT2in>2n>
  32  fivef">f="dhope = Utururn ajax idn=domaind idn>fivef">basnhope + eturefax i128/a>8spau class="commen32"> * 4sR30ight 4C) 2004-2010 Free32scal346hope4                      L12">1La>8spa32 dn>fivef">pr_errh(eLAR Pn a-jax idn=irq_mskENOMEM>fivef">f="dhopENOMEMAR Pefax iurn ajax irn ajax idn=chipdiv 4au32e=nidnhopout_rele + _memAR Pefax iurn ajax irn ajax idn=chipdiv 4a 31progr4m is free softwar32e; y348hope4              ">1 128/a>8spau class="commen33"> * 4uf31y it 4nder the terms of32 the349hope42>L12">1 128/a>8spau class="commen28"> * 4s 33ublis4ed by the Free So33twar340hope43      "turn ajax idn=cddiv i idn>fivef">f="dhope-line"turn ajax idn=irq_highdiv idn>fivef">irq_highhope &e&a ajax idn=irq_g0tv_devic/h pe(idn>fivef">lass_sev_devic/h pe(idnructrjax idn=fdevdiv idn>fivef">pdevhope)in>L12 a12">1 128/a>8spau class="commen35 *8/s4f 33he Li4ense, or (at your33n va341hope43      eturn ajax idn=cddiv i idn>fivef">f="dhope-line"turn ajax idn=irqIO supporivef">irqhope)ein>L1a ajax idn=irq_g0tv_devic/h pe(idn>fivef">lass_sev_devic/h pe(idnructrjax idn=fdevdiv idn>fivef">pdevhope)in>L12 a12">1 128/a>8spau class="commen35 *8/s4hi33PIO s4pport. (c) 2008 D33in t34Phope43      if (eturn ajax idn=enableI idn>fivef">f="dhope-line"turn ajax idn=irqIO supporivef">irqhope)ein>L1aurn aL12">1 128/a>8spau class="commen26 * MX4ut3WWITHO4T ANY WARRANTY; w3tthou34even 43                     jax idn=cddiv i dn>fivef">pr_errh(eLAR Pn a-jax idn=irq_mskEINVAL>fivef">"co_lasEINVALAR Pefax iurn ajax irn ajax idn=chipdiv 4ER33HANTA4ILITY or FITNESS 33OR A344hope43      eturn a8spau clgotoajax idn=irqoffsOut_ioope n>fivef">irq_setOut_ioope nAR Pefax iurn ajax irn ajax idn=chipdiv 4E>32n>30 4 if(OCT2in>2n>
  33  1 128/a>8spau class="commen33"> * 4yr33ight 4C) 2004-2010 Free33scal346 any4n>L12">1 128/a>8spau class="commen33 *8/s4au33e=1 128/a>8spau class="commen3t * Co4s 33progr4m is free softwar33e; y348hope43      eturn ajax idn=cddiv iwriten>fivef">readlhowritenructr0 ajax idn=IRQ_GC_ idn>fivef">f="dhope-line"turn ajax idn=basndiv idn>fivef">basnhope + eturn ajax idn=e=fivef">e=L12">1 128/a>8spau class="commen29 * Th4if33y it 4nder the terms of33 the349hope43      eturn ajax idn=cddiv iwriten>fivef">readlhowritenructr~0 ajax idn=IRQ_GC_ idn>fivef">f="dhope-line"turn ajax idn=basndiv idn>fivef">basnhope + eturn ajax idn=e=fivef">e=1 128/a>8spau class="commen29 * Th4s 34ublis4ed by the Free So34twar340hope44>L12">1 128/a>8spau class="commen30"> * 4f 34he Li4ense, or (at your34n va341hope441     if (eturn ajax idn=enableI9)25 * t_ the Fhwivef">gass_set_irq_hwdiv idnhwiveaax i iidn=e=1La>8spa329)25 * t_1_in>2">1 128/a>8spau class="commen26 * MX4hi34PIO s4pport. (c) 2008 D34in t342hope44mmen36"128/a>8spau clL12">1License8/ne" namin>L2">1 128/a>8spau class="comment">30 * Th4ut34ight 4008 Juergen Beise34thou343hope44e im3lied warranty o/8/MX1 and/MXqvvvvvvvvvvvvS" iistse"" pe(et * s="c n2" ruptsne" nam. Actu"c tedett(etur2">1 128/a>8spau class="comment">30 * Th4uR33HANTA4ILITY or FITNESS 3OOR A344hope44lxr_37ied warranty of88@return    vvvvvvvvvvvurn b" pe(et ito havedelecteonce, but do* 1 it * s=elasy e-line2">1 128/a>8spau class="comment">30 * Th4u>32n>30 4 if(OCT2in>2n>
  34   hase +ieristsoc2">1 128/a>8spau class="commen3xr_p 24yr34ight 4C) 2004-2010 Free34scal346hope4      7ied warranty of88@return    vvvvvvvvvvvvvvvv*2">1 128/a>8spau class="commen3t * Co4au34e="co_lasdiv shope(rq_exidiv idnructrjax idn=fdevdiv idn>fivef">f="dhope-line"turn ajax idn=irqIO supporivef">irqhope)ein>L1 ajax idn=IRQ_GC_s_irq_handleediv idn>fivef">"c2_lass_irq_handlee" pe(eturn  ">1 128/a>8spau class="commen29 * Th4s 33progr4m is free softwar34e; y348hope4       eturn a{in>L12">1 128/a>8spau class="commen32 * Th4if34y it 4nder the terms of34 the349hope44                     jblic License8/ne/walk#L1s" iistse"" pe(et * s=2ry" achidvvvvvvv*2">1 128/a>8spau class="commen3t * Co4s 35ublis4ed by the Free So35twar340hope45    38        elsnin>L12">1La>8spa32div shope(rq_exidiv idn>fivef">"co_lasdiv shope(rq_exidiv idnructrjax idn=fdevdiv idn>fivef">f="dhope-line"turn ajax idn=irqIO supporivef">irqhope)ein>L1 ajax idn=IRQ_GC_s_3rq_handleediv idn>fivef">"c2_lass_3rq_handleediv idnurn  ">1 128/a>8spau class="commen29 * Th4f 35he Li4ense, or (at your35n va341hope45                     L12">1La>8spa32div shopdiv idnv idn>fivef">irq_data_g0shopdiv idnv idnructrjax idn=fdevdiv idn>fivef">f="dhope-line"turn ajax idn=irqIO supporivef">irqhope)ein>L1 ajax idn=IRQ_GC_ idn>fivef">f="dhope = Utur"">1 128/a>8spau class="commen29 * Th4fi34PIO s4pport. (c) 2008 D35in t342hope45              if (eturn ajax idn=irq_stl idn>fivef">f="dhope-line"turn ajax idn=irq_highdiv idn>fivef">irq_highhope &e&amgn aL12">1 128/a>8spau class="commen26 * MX4ut35ight 4008 Juergen Beise35thou343hope45                             jblic License8/ne/walk#L1s" iis" pe(et * s=2" ru16-zer31vvvvvvv*2">1 128/a>8spau class="commen3t * Co4sR33HANTA4ref="drivers/gpio35OR A344hope45                      "turn ajax idn=enable_div shope(rq_exidiv idn>fivef">"co_lasdiv shope(rq_exidiv idnructrjax idn=fdevdiv idn>fivef">f="dhope-line"turn ajax idn=irqIO suppv idn>fivef">irq_highhope &e&">1 128/a>8spau class="commen35 * Co4n>3  on c4de from Freescale3,  L137        eturn aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaajax idn=IRQ_GC_s_3rq_handleediv idn>fivef">"c2_lass_3rq_handleediv idnurn  ">1 128/a>8spau class="commen29 * Th4fr34ight 4C) 2004-2010 Free35scal346hope4                              L12">1La>8spa32div shopdiv idnv idn>fivef">irq_data_g0shopdiv idnv idnructrjax idn=fdevdiv idn>fivef">f="dhope-line"turn ajax idn=irqIO suppv idn>fivef">irq_highhope &e&"ajax idn=IRQ_GC_ idn>fivef">f="dhope = Utur"">1 128/a>8spau class="commen29 * Th4fu34e=1 128/a>8spau class="commen33"> * 4s 35progr4m is free softwar35e; y348hope45             ">1 128/a>8spau class="commen33"> * 4if35y it 4nder the terms of35 the34NU Ge45>L12">1 128/a>8spau class="commen28"> * 4s 36ublis4ed by the Free So36twar34Found46      "turn ajax idn=cddiv i dn>fivef">pr_errh(eLAR Pn ajax idn=basndiv q_handidn>fivef">__inidh q_handidnructricdiv idn>fivef">_devidn>fivef">f="dhope-line"turn ajax idn=basndiv dn>fivef">lchope,b= Uturtricdiv idn>fivef">_devic/_icdiv idn>fivef">_devic/_icdiv id> * of 36he License, or (at your36, 4">1 128/a>8spau class="commen35 * Co4f 36he Li4ense, or (at your36n va341hope46                              L12">1La>8spa32 idn>fivef">f="dhope-line"turn ajax idn=basndiv idn>fivef">basnhope + eturn ajax idn=e=fivef">e=1 128/a>8spau class="commen35 * Co4fi34PIO s4support. (c) 200836in tc4ass="4ommen36"128/a>8spau class="com L12">1La>8spa32 idn>fivef">f="dhope-line"turn ajax idn=basndiv idn>fivef">basnhope + eturn ajax idn=e=fivef">e=fivef">"co_lasNULLampe">1 128/a>8spau class="commen35 * Co4ft35ight 44k4d6s="comturn ajax idn4cdiv 46                              L12">1La>8spa32 idn>fivef">f="dhope-line"turn ajax idn=basndiv idn>fivef">basnhope + eturn ajax idn=e=fivef">e=fivef">"co_lasNULLampe"a12">1 128/a>8spau class="commen35 *8/s4dn>6urna 4ref="drivers/gpio26OR A244hope46      }in>L12rn ajax idn=enableIOdn>fivef">pr_errh(eLAR P">1 128/a>8spau class="commen36"> * 4n>3  on c4de fr3m Freescale26  L137        eturn agotoajax idn=irqoffsOut_ioope n>fivef">irq_setOut_ioope nAR Pefax iurn ajax irn ajax idn=chipdiv 4s 36ublt 4C) 2004-2010 Free2sscal246 any46>L12">1 128/a>8spau class="commen33 *8/s4dn>6urna 4ref="drivers/gpio26/gpi247hope4     36eturn ajax idn=cddiv ividn>fivef">f="dhope-line"turn ajax idn=basndiv dn>fivef">lchope,b= Uturajax idn=maskdivdn>fivef">lchope, eturnajax idn=maskdivto idn>fivef">lass_seto idnructn ajax idn=basndivt_irq_hwdto idn>fivef">lass_set_irq_hwdto idnructefax iurn ajax irn ajax idn=chipdiv 4s 35progr4m is free softwar26e; y248hope46      eturn ajax idn=cddiv i idn>fivef">f="dhope = Utururn ajax idn=basndiv dn>fivef">lchope,b= Uturajax idn=maskdivdn>fivef">lchope, eturnajax idn=maskdiv idn>fivef">basnhope + eturn arjax idn=fdevdiv idn>fivef">pdevhope)in>L12c/_icdiv id> * of 36he>fivef">irq_highdn>L1aurn aL12?ajax idn=e=of_ichope aliash pe(i ructrjax idn=fdevdivnn>fivef">irq_setn Utur, RPOSE.iverng">"lass="co&que" nam, 1, et) * 32 :fax iurn ajax irn ajax idn=chipdiv 4sf35y it 4nder 3he terms of26 the249hope46                      Uturn a eturn a             L12">1La>8spa32 idn>fivef">pdevhope)in>L12c/_icdiv id> * of 36he>fivef">irq_highdn>L1a* 32efax iurn ajax irn ajax idn=chipdiv 4ut32WIlis4ed by3the Free So27twar240hope47>L12">1 128/a>8spau class="commen30"> * 4s 30pr Li4ense,3or (at your27n va24) any47      eturn ajax idn=cddiv i dn>fivef">pr_errh(eLAR Pn ajax idn=basndivomme8/shoade>fivef">irq_higomme8/shoadeructricdiv idn>fivef">_devidn>fivef">f="dhope-line"turn ajax idn=basndiv dn>fivef">lchope,b= Uturajax idn=maskdivdn>fivef">lchope, eturn2">1 128/a>8spau class="commen35 *8/s4s 30pr IO4suppor (c) 2008 D27in t24 hope47      if (eturn ajax idn=enableIOdn>fivef">pr_errh(eLAR P">1 128/a>8spau class="commen36"> * 4s 30pr  a44k4d6sergen Beise27thou24even 47                     gotoajax idn=irqoffsOut_ q_hanremovn>fivef">nidnhopout_ q_hanremovnructefax iurn ajax irn ajax idn=chipdiv 4n>32n>1 128/a>8spau class="commen29 * Ba4yr31ign c4de fr3m Freescale27  L137       jax idn=irqIO suppv idn>fivef">irq_basnhope)in>L12n ajax idn=irq_alloc_g0" iicdescn>fivef">chip_ 1ic_g0" iicdescnructr-1"a1, 32"ajax idn=IRQ_GC_numa  idn(i ifivef">of_ichonuma  idn(i ructr)2">1 128/a>8spau class="commen35 *8/s4dn>6urht 4C) 2034-2010 Free27scal246hope4     37       rn ajax idn=enableIuppv idn>fivef">irq_basnhope)in>L12nurn aL12">1 128/a>8spau class="commen26 * MX4ER25e3pr_errh(eLAR Pn ajax idn=basndivndiv idn>fivef">irq_basnhope)in>L12efax iurn ajax irn ajax idn=chipdiv 4s 35progr4m is 3ree softwar27e; y248hope47              if (etugotoajax idn=irqoffsOut_omme8/shoremovn>fivef">nidnhopout_omme8/shoremovn>L12efax iurn ajax irn ajax idn=chipdiv 4sf35y it 4nder 3he terms of27 the249 any4n>L1237       ">1 128/a>8spau class="commen33"> * 4s 36ublis4ed by3the Free So28twar240hope48>L12">1 128/a>8spau class="commen30"> * 4dn>6ur Li4ense,3or (at your28n va241hope48      eturn ajax idn=cddiv i idn>fivef">f="dhope-line"turn ajax idn=irqIO siv idn>fivef">domainhope, eturnn ajax idn=irq_data_g0tpe, eoade_legacd>fivef">list_1 1_g0tpe, eoade_legacdructrjax idn=fdevdivnn>fivef">irq_setn Utur, 32"ajax idn=IRQ_GC_ndiv idn>fivef">irq_basnhope,in>L12"a1,>1 128/a>8spau class="commen30"> * 4d 30pr IO4sport. (c) 2008 D28in t242hope48mmen36"128/a>8spau cllllllllllllllllllllllllllllllx i ididn>fivef">_dev_g0tpe, eosimple_opn>fivef">chip_ 1ic_gtpe, eosimple_opnmpe&"ajax idn=IRQ_GC_NULL>fivef">"co_lasNULLampe2">1 128/a>8spau class="commen35 *8/s4d 30pr  a4008 Juergen Beise28thou24even 483L1237        Utuajax idn=irq_msk idn>fivef">f="dhope-line"turn ajax idn=irqIO siv idn>fivef">domainhope, eturn12">1 128/a>8spau class="commen26 * MX4d>32n>1La>8spa32 dn>fivef">pr_errh(eLAR Pn a-jax idn=irq_mskENODdn>fivef">e=L137        eturn agotoajax idn=irqoffsOut_irqdesc_fren>fivef">nidnhopout_irqdesc_frenAR Pefax iurn ajax irn ajax idn=chipdiv 4dn>6urht 4C) 2004-2010 Free28scal246hope48      eturn a">1 128/a>8spau class="commen25 *8/s4dR25e31 128/a>8spau class="commen25 * Th4s 2pprogr4m is free softwar2ee; y248hope48      eturn ajblic License8/ne/walk#L1ommen25  cic be a _chipho irq 8/shvvvvvvv*2">1 128/a>8spau class="commen3t * Co4if28y it 4nder the terms of28 the24NU Ge48      eturn ajax idn=cddiv it_irq_hwddiv idn>fivef">"co_lass_inid_gc" pe(structrjax idn=irq_msk idn>fivef">f="dhope-line"t"ajax idn=IRQ_GC_ndiv idn>fivef">irq_basnhope,in>L122">1 128/a>8spau class="commen35 *8/s4s 29ublis4ed by the Free So29twar240hope49>L12">1 128/a>8spau class="commen30"> * 4f 29he Li4ense, or (at your29n va241hope49      eturn ajax idn=cddiv ilistoade_tain>fivef">readlholistoade_tainructricdiv idn>fivef">_devidn>fivef">f="dhope-line"turn ajax idn=basndiv idn>fivef">nidnhop idnhwivtricdiv idn>fivef">_des_f="dhope *eFree So36t1cddiv  ajax ide *eF>L122">1 128/a>8spau class="commen35 *8/s4s 30pr IO4pport. (c) 2008 D29in t242hope4      >1 128/a>8spau class="commen35 *8/s4s 30pr  a4008 Juergen Beise29thou243hope49             0ein>L12">1 128/a>8spau class="commen33r_p 24 >32n>1 128/a>8spau class="commen29 * Ba4ed29 on c4de from Freescale29  fivef">nidnhopout_irqdesc_frenAR P:fax iurn ajax irn ajax idn=chipdiv 4 r28ight 4C) 2004-2010 Free29scal246hope49      eturn ajax idn=chainedd_maprencdescn>fivef">chip_ 1ic_gprencdescnructrjax idn=irq_mskndiv idn>fivef">irq_basnhope,in>L12"a322">1 128/a>8spau class="commen35 *8/s4sR25e3fivef">nidnhopout_omme8/shoremovn>L12:fax iurn ajax irn ajax idn=chipdiv 4  2pprogr4m is free softwar29e; y248hope49      eturn ajax idn=cddiv iWARNn>fBUG_ON">gass_seWARNn>fructrjax idn=irq_mskomme8/shoremovn>fivef">nidnhopomme8/shoremovn>L12ricdiv idn>fivef">_devidn>fivef">f="dhope-line"turn ajax idn=basndiv dn>fivef">lchope,b= Uturajax idn=maskdivdn>fivef">lchope, eturn2nurn aL1">1 128/a>8spau class="commen35 *8/s4sf28y it 4nder the terms of2  the249hope4      jax idn=irqoffsOut_ q_hanremovn>fivef">nidnhopout_ q_hanremovnruct:fax iurn ajax irn ajax idn=chipdiv 5s 3uublis5ed by the Free So3ttwar350hope50      "turn ajax idn=cddiv i q_hanremovn>fivef">nidnhop q_hanremovnructricdiv idn>fivef">_devidn>fivef">f="dhope-line"turn ajax idn=basndiv dn>fivef">lchope,b= Utur1">1 128/a>8spau class="commen35 *8/s5f 30he Li5ense, or (at your301war351hope50>L123jax idn=irqoffsOut_ioope n>fivef">irq_setOut_ioope nAR P:fax iurn ajax irn ajax idn=chipdiv 5s230he Li5eport. (c) 2008 D29in t25Phope50      eturn ajax idn=irq_stlxoope n>fivef">irq_setioope nAR Prjax idn=fdevdiv idn>fivef">f="dhope-line"turn ajax idn=irqIO s idn>fivef">basnhope + eture">1 128/a>8spau class="commen35 *8/s5f330he Li5e08 Juergen Beise29thou253hope5      jax idn=irqoffsOut_rele + _mem>fivef">nidnhopout_rele + _memAR P:fax iurn ajax irn ajax idn=chipdiv 5s430he Li5eef="drivers/gpio29OR A254hope5       }in>L12jax idn=irqoffsrele + _mem_pedeon>fivef">domainhrele + _mem_pedeonructrjax idn=irq_msknordn>fivef">chip_ 1iordnUturc/_icdiv id> * of 36voidn>fivef">f="dhopvoidn>L12 ajax idn=IRQ_GC_renumber_eize>fivef">regshope.number_eizeructrjax idn=fdevdivxordn>fivef">chip_ 1iordnUtur)2">1 128/a>8spau class="commen35 *8/s5f530he Li5ee from Freescale29  fivef">nidnhopout_kfrenAR P:fax iurn ajax irn ajax idn=chipdiv 5s630he Li5e) 2004-2010 Free29scal256 any50      eturn ajax idn=chainedkfren>fivef">nidnhopkfrenAR Prjax idn=fdevdiv idn>fivef">f="dhope-line"t2">1 128/a>8spau class="commen35 *8/s5f730he Li5eef="drivers/gpio29/gpi257hope50    36eturn ajax idn=cddiv idevc" fo>fivef">domainhoevc" foructricdiv idn>fivef">_devic/_icdiv idn>fivef">_devic/_icdiv id> * of 36he License, or (at your36, RPOSE.iverng">"lass="c%s fained workserrno %d\ne" nam, 1, eturdiv id> * of 36__func__License, or (at__func__>L12 ajax idn=IRQ_GC_Odn>fivef">pr_errh(eLAR P"">1 128/a>8spau class="commen35 *8/s5f830he Li5e is free softwar29e; y258hope50      eturn a0ein>L1jax idn=irq_set dn>fivef">pr_errh(eLAR Pefax iurn ajax irn ajax idn=chipdiv 5f930progr5mder the terms of2  the25NU Ge50>L123">1 128/a>8spau class="commen25 *8/s5s 3publis5ed by the Free So3ftwar35Found51>L12">1 128/a>8spau class="commen30"> * 5f 3hhe Li5ense, or (at your3n1war35) any51>L12"voidreteturn ajax idn=platform_devic/dipau c_icdiv idn>fivef_devic/dipau c      idn>fivef">_des_f="dhopipau c_icdiv idn>fives_f="dhopipau cAR Pn a">1 128/a>8spau class="commen26 * MX5f 3s prog5am is distributed3 in t35 hope51      eturn aajax idn=maskdivipau c_icdiv idn>fiveipau cAR Pnnnnnnnnn a">1 128/a>8spau class="commen26 * MX5f330he Li5T ANY WARRANTY; w3ithou35even 51                     ajax idn=maskdiv31 t>fivef">irq_setn1 tUturnnn aRPOSE.iverng">"lass="co&qun26 e" nam, 1, etu>1 128/a>8spau class="commen26 * MX5f430he Li5ILITY or FITNESS 3FOR A354hope51      eturn a8spau clajax idn=maskdivown c_icdiv idn>fiveown c     e ajax idn=irq_datTHIS_MODULE_icdiv idn>fiveTHIS_MODULE>L12 >1 128/a>8spau class="commen26 * MX5f530he Li5 if(OCT2in>2n>
  3
  L137        eturn aajax idn=maskdivof ss=">ctq_waifivef">of_ichope ss=">ctq_waturnn ajax idn=irq_dats_f="dhopithe Free So36t1cddiv  ajax idn=of_devic/>1 128/a>8spau class="commen26 * MX5f630he Li5C) 2004-2010 Free31scal356hope51      eturn a"/>1 128/a>8spau class="commen26 * MX5f730he Li5ref="drivers/gpio31/gpi357hope517     eturn aajax idn=maskdivprobFhwivef">gass_seprobFruct   eturn a ajax idn=irq_dats_f="dhopprobFhwivef">gass_set_irq_hwdprobFruct/>1 128/a>8spau class="commen26 * MX5f830he Li5m is free softwar31e; y358hope5       structrajax idn=irq_set_dctq_waifivef">of_icho_dctq_wa     struct ajax idn=irq_dats_f="dhopievhe Fhwivef">gass_set_irq_hwdievhe Fruct/>1 128/a>8spau class="commen26 * MX5f930progr5nder the terms of31 the359hope51     }efax iurn ajax irn ajax idn=chipdiv 5s 32ublis5ed by the Free So32twar350hope52>L12">1 128/a>8spau class="commen30"> * 5f 32he Li5ense, or (at your32n va351hope52>L12"voidretrn ajax idn=edgediv_ndidn>fivef">__inidh_ndidnructajax idn=platforq_hwdt_irdidn>fivef">__inidhq_hwdt_irdidnructrurn ">1 128/a>8spau class="commen36"> * 5hi3  prog5am is distributed3iin t35Phope52     ">1 128/a>8spau class="commen26 * MX5ut32WITHO5T ANY WARRANTY; w32thou353hope52             0ein>L1jax idn=platform_devic/dipau c_pedest c_icdiv idn>fivef_devic/dipau c_pedest cructricdiv idn>fivef">_des_f="dhopipau c_icdiv idn>fives_f="dhopipau cAR P"">1 128/a>8spau class="commen35 *8/s5ER32HANTA5ILITY or FITNESS 32OR A354hope5      ">1 128/a>8spau class="commen25 *8/s5n>32n>30 5 if(OCT2in>2n>
  32  fivef">readlhopostcordrdidncalnructrjax idn=irq_mskommedt_irdidn>fivef">__inidhq_hwdt_irdidnruct"">1 128/a>8spau class="commen35 *8/s5E630he Li5C) 2004-2010 Free32scal356hope52>L12">1 128/a>8spau class="commen33 *8/s5au32e=fivef">e="lass="cFrenscale Semicondrn or, e" nam, 1, et>1 128/a>8spau class="commen33 *8/s5a830he Li5m is free softwar32e; y358hope52              if (ejPOSE.iverng">"lass="cDaniel Macknurn danielncaiaq.de/_ic, e" nam, 1, et>1 128/a>8spau class="commen33 *8/s5a930progr5nder the terms of32 the359hope52                   jPOSE.iverng">"lass="cJuergen Beisertnurn kernel@pengutronix.de/_ice" nam, 1, et)">1 128/a>8spau class="commen35 *8/s5s 33ublis5ed by the Free So33twar350hope53     jax idn=irqoffsMODULE_DESCRIPTI>fBUG_ON">gass_seMODULE_DESCRIPTI>fructrjPOSE.iverng">"lass="cFrenscale MXC=2" re" nam, 1, et)">1 128/a>8spau class="commen35 *8/s5s 32he Li5ense, or (at your33n va351hope53>L123jax idn=irqoffsMODULE_LICENSE_icdiv idn>fiveMODULE_LICENSEructrjPOSE.iverng">"lass="cGPLe" nam, 1, et)">1 128/a>8spau class="commen35 *8/s5si3  prog5pport. (c) 2008 D33in t35Phope53     
vvvvoriginal LXR software byurn b1 128/a>8http://numbervicge.net/projects/lxc_>LXR 8/neuidny>L12 athis experie/waal u clion byu1 128/a>8mailto:lxc@200ux.no">lxc@200ux.noUtura
lxc.200ux.no kindly hosted byu1 128/a>8http://www.redpill-200pro.no">Redpill L00pro AS>L12 aprovider of L00uxstrucult(et> hasoperauppos serhopes since 1995.