Home | History | Annotate | Line # | Download | only in isa
i82365_isavar.h revision 1.3.36.1
      1  1.3.36.1      kent /*	$NetBSD: i82365_isavar.h,v 1.3.36.1 2005/04/29 11:28:54 kent Exp $	*/
      2       1.1  sommerfe 
      3       1.1  sommerfe /*
      4       1.1  sommerfe  * Copyright (c) 1998 Bill Sommerfeld.  All rights reserved.
      5       1.1  sommerfe  * Copyright (c) 1997 Marc Horowitz.  All rights reserved.
      6       1.1  sommerfe  *
      7       1.1  sommerfe  * Redistribution and use in source and binary forms, with or without
      8       1.1  sommerfe  * modification, are permitted provided that the following conditions
      9       1.1  sommerfe  * are met:
     10       1.1  sommerfe  * 1. Redistributions of source code must retain the above copyright
     11       1.1  sommerfe  *    notice, this list of conditions and the following disclaimer.
     12       1.1  sommerfe  * 2. Redistributions in binary form must reproduce the above copyright
     13       1.1  sommerfe  *    notice, this list of conditions and the following disclaimer in the
     14       1.1  sommerfe  *    documentation and/or other materials provided with the distribution.
     15       1.1  sommerfe  * 3. All advertising materials mentioning features or use of this software
     16       1.1  sommerfe  *    must display the following acknowledgement:
     17       1.1  sommerfe  *	This product includes software developed by Marc Horowitz.
     18       1.1  sommerfe  * 4. The name of the author may not be used to endorse or promote products
     19       1.1  sommerfe  *    derived from this software without specific prior written permission.
     20       1.1  sommerfe  *
     21       1.1  sommerfe  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
     22       1.1  sommerfe  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
     23       1.1  sommerfe  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
     24       1.1  sommerfe  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
     25       1.1  sommerfe  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
     26       1.1  sommerfe  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
     27       1.1  sommerfe  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
     28       1.1  sommerfe  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
     29       1.1  sommerfe  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
     30       1.1  sommerfe  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     31       1.1  sommerfe  */
     32       1.3   thorpej 
     33       1.3   thorpej struct pcic_isa_softc {
     34       1.3   thorpej 	struct pcic_softc sc_pcic;	/* real pcic softc */
     35       1.3   thorpej 	isa_chipset_tag_t sc_ic;	/* ISA chipset tag */
     36       1.3   thorpej };
     37       1.1  sommerfe 
     38       1.1  sommerfe extern int pcic_isa_intr_alloc_mask;
     39       1.1  sommerfe 
     40  1.3.36.1      kent /*
     41       1.1  sommerfe  * Establish/disestablish interrupts for PCMCIA functions.
     42       1.1  sommerfe  */
     43       1.1  sommerfe 
     44  1.3.36.1      kent void	*pcic_isa_chip_intr_establish(pcmcia_chipset_handle_t,
     45  1.3.36.1      kent 	    struct pcmcia_function *, int, int (*) (void *), void *);
     46  1.3.36.1      kent void	pcic_isa_chip_intr_disestablish(pcmcia_chipset_handle_t, void *);
     47       1.1  sommerfe 
     48       1.1  sommerfe /*
     49       1.1  sommerfe  * Figure out how wide the ISA bus is...
     50       1.1  sommerfe  */
     51       1.1  sommerfe 
     52  1.3.36.1      kent void pcic_isa_bus_width_probe(struct pcic_softc *, bus_space_tag_t,
     53  1.3.36.1      kent 				   bus_space_handle_t, bus_addr_t, u_int32_t);
     54  1.3.36.1      kent void	pcic_isa_chip_intr_disestablish(pcmcia_chipset_handle_t, void *);
     55  1.3.36.1      kent void	pcic_isa_config_interrupts(struct device *);
     56  1.3.36.1      kent void	*pcic_isa_chip_intr_establish(pcmcia_chipset_handle_t,
     57  1.3.36.1      kent 	    struct pcmcia_function *, int, int (*) (void *), void *);
     58