2" /spaion /formon a 2" href="../linux+v3..2 v/drivers/pcmcia/rsrc_mgr.c">2" img src="../.static/gfx/right.png" alt=">>">2" /spaion2" spai class="lxr_search">2" 2" input typluehidden" namluenavtarget" n value">2" input typluetext" namluesearch" iduesearch">2" butttiotypluesubmit">Search2" Prefsn /a>2" /spaion /divon form acopti="ajax+*" method="post" onsubmit="return false;">2" input typluehidden" namlueajax_lookup" idueajax_lookup" n value">2 /formon2 div class="headingbotttm">n div iduefile_contents"o
1 /a> spai class="comment">/* /spaion
2 /a> spai class="comment"> * rsrc_mgr.c -- Resource management routines and/or wrappers /spaion
3 /a> spai class="comment"> * /spaion
4 /a> spai class="comment"> * This program is free software; you cai redistribute it and/or modify /spaion
5 /a> spai class="comment"> * it under the terms of the GNU General Public License versptio2 as /spaion
6 /a> spai class="comment"> * published by the Free Software Foundaopti. /spaion
7 /a> spai class="comment"> * /spaion
8 /a> spai class="comment"> * The initial developer of the original code is David A. Hinds /spaion
9 /a> spai class="comment"> * <>. 
Poroptis created by David A. Hinds /spaion
  v2.a> spai class="comment"> * are Copyright (C) 1999 David A. Hinds. 
All Rights Reserved. /spaion
 11 /a> spai class="comment"> * /spaion
 12 /a> spai class="comment"> * (C) 1999             David A. Hinds /spaion
 13 /a> spai class="comment"> */ /spaion
 14 /a>n
 15 /a>#include <linux/slab.h /a>>n
 16 /a>#include <linux/module.h /a>>n
 17 /a>#include <linux/kernel.h /a>>n
 18 /a>n
 19 /a>#include <pcmcia/ss.h /a>>n
 20 /a>#include <pcmcia/cistpl.h /a>>n
 21 /a>#include "cs_internal.h /a>"n
 22 /a>n
 23 /a>int
 a href="+code=static_init" class="sref">static_init /a>(struct
 a href="+code=pcmcia_socket" class="sref">pcmcia_socket /a> * a href="+code=s" class="sref">s /a>)n
 24 /a>{n
 25 /a>         spai class="comment">/* the good thing about SS_CAP_STATIC_MAP sockets is /spaion
 26 /a> spai class="comment">         * that they don't need a resource daoabase */ /spaion
 27 /a>n
 28 /a>         a href="+code=s" class="sref">s /a>-> a href="+code=resource_setup_done" class="sref">resource_setup_done /a> = 1;n
 29 /a>n
 30 /a>        return 0;n
 31 /a>}n
 32 /a>n
 33 /a>struct
 a href="+code=resource" class="sref">resource /a> * a href="+code=pcmcia_make_resource" class="sref">pcmcia_make_resource /a>(unsigned long  a href="+code=start" class="sref">start /a>, unsigned long  a href="+code=end" class="sref">end /a>,n
 34 /a>                                int
 a href="+code=flags" class="sref">flags /a>, ctist char * a href="+code=naml" class="sref">naml /a>)n
 35 /a>{n
 36 /a>        struct
 a href="+code=resource" class="sref">resource /a> * a href="+code=res" class="sref">res /a> =  a href="+code=kzalloc" class="sref">kzalloc /a>(sizeof(* a href="+code=res" class="sref">res /a>),  a href="+code=GFP_KERNEL" class="sref">GFP_KERNEL /a>);n
 37 /a>n
 38 /a>        if ( a href="+code=res" class="sref">res /a>) {n
 39 /a>                 a href="+code=res" class="sref">res /a>-> a href="+code=naml" class="sref">naml /a> =  a href="+code=naml" class="sref">naml /a>;n
 40 /a>                 a href="+code=res" class="sref">res /a>-> a href="+code=start" class="sref">start /a> =  a href="+code=start" class="sref">start /a>;n
 41 /a>                 a href="+code=res" class="sref">res /a>-> a href="+code=end" class="sref">end /a> =  a href="+code=start" class="sref">start /a> +  a href="+code=end" class="sref">end /a> - 1;n
 42 /a>                 a href="+code=res" class="sref">res /a>-> a href="+code=flags" class="sref">flags /a> =  a href="+code=flags" class="sref">flags /a>;n
 43 /a>        }n
 44 /a>        return  a href="+code=res" class="sref">res /a>;n
 45 /a>}n
 46 /a>n
 47 /a>static int
 a href="+code=static_find_io" class="sref">static_find_io /a>(struct
 a href="+code=pcmcia_socket" class="sref">pcmcia_socket /a> * a href="+code=s" class="sref">s /a>, unsigned int
 a href="+code=attr" class="sref">attr /a>,n
 48 /a>                        unsigned int
* a href="+code=base" class="sref">base /a>, unsigned int
 a href="+code=num" class="sref">num /a>,n
 49 /a>                        unsigned int
 a href="+code=align" class="sref">align /a>, struct
 a href="+code=resource" class="sref">resource /a> ** a href="+code=parent" class="sref">parent /a>)n
 50 /a>{n
 51 /a>        if (! a href="+code=s" class="sref">s /a>-> a href="+code=io_offset" class="sref">io_offset /a>)n
 52 /a>                return - a href="+code=EINVAL" class="sref">EINVAL /a>;n
 53 /a>        * a href="+code=base" class="sref">base /a> =  a href="+code=s" class="sref">s /a>-> a href="+code=io_offset" class="sref">io_offset /a> | (* a href="+code=base" class="sref">base /a> & 0x0fff);n
 54 /a>        * a href="+code=parent" class="sref">parent /a> =  a href="+code=NULL" class="sref">NULL /a>;n
 55 /a>n
 56 /a>        return 0;n
 57 /a>}n
 58 /a>n
 59 /a>n
 60 /a>struct
 a href="+code=pccard_resource_ops" class="sref">pccard_resource_ops /a>  a href="+code=pccard_static_ops" class="sref">pccard_static_ops /a> = {n
 61 /a>        . a href="+code=validate_mem" class="sref">validate_mem /a> =  a href="+code=NULL" class="sref">NULL /a>,n
 62 /a>        . a href="+code=find_io" class="sref">find_io /a> =  a href="+code=static_find_io" class="sref">static_find_io /a>,n
 63 /a>        . a href="+code=find_mem" class="sref">find_mem /a> =  a href="+code=NULL" class="sref">NULL /a>,n
 64 /a>        . a href="+code=init" class="sref">init /a> =  a href="+code=static_init" class="sref">static_init /a>,n
 65 /a>        . a href="+code=exit" class="sref">exit /a> =  a href="+code=NULL" class="sref">NULL /a>,n
 66 /a>};n
 67 /a> a href="+code=EXPORT_SYMBOL" class="sref">EXPORT_SYMBOL /a>( a href="+code=pccard_static_ops" class="sref">pccard_static_ops /a>);n
 68 /a>n
 69 /a>n
 70 /a> a href="+code=MODULE_AUTHOR" class="sref">MODULE_AUTHOR /a>( spai class="string">"David A. Hinds, Dominik Brodowski"
 71 /a> a href="+code=MODULE_LICENSE" class="sref">MODULE_LICENSE /a>( spai class="string">"GPL"
 72 /a> a href="+code=MODULE_ALIAS" class="sref">MODULE_ALIAS /a>( spai class="string">"rsrc_ntistatic"
 73 /a> /pre>
The original LXR software by the LXR community /a>, this experimental versptioby /a>.
 /divon div class="subfooter"> kindly hosted by Redpill Linpro AS /a>, provider of Linux ctisulting and operaoptis services since 1995.
 /bodyon /htmlon