Home | History | Annotate | Line # | Download | only in pci
necpbvar.h revision 1.2.4.2
      1  1.2.4.2  minoura /*	$NetBSD: necpbvar.h,v 1.2.4.2 2000/06/22 16:59:18 minoura Exp $	*/
      2  1.2.4.2  minoura 
      3  1.2.4.2  minoura /*-
      4  1.2.4.2  minoura  * Copyright (C) 2000 Shuichiro URATA.  All rights reserved.
      5  1.2.4.2  minoura  *
      6  1.2.4.2  minoura  * Redistribution and use in source and binary forms, with or without
      7  1.2.4.2  minoura  * modification, are permitted provided that the following conditions
      8  1.2.4.2  minoura  * are met:
      9  1.2.4.2  minoura  * 1. Redistributions of source code must retain the above copyright
     10  1.2.4.2  minoura  *    notice, this list of conditions and the following disclaimer.
     11  1.2.4.2  minoura  * 2. Redistributions in binary form must reproduce the above copyright
     12  1.2.4.2  minoura  *    notice, this list of conditions and the following disclaimer in the
     13  1.2.4.2  minoura  *    documentation and/or other materials provided with the distribution.
     14  1.2.4.2  minoura  * 3. The name of the author may not be used to endorse or promote products
     15  1.2.4.2  minoura  *    derived from this software without specific prior written permission.
     16  1.2.4.2  minoura  *
     17  1.2.4.2  minoura  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
     18  1.2.4.2  minoura  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
     19  1.2.4.2  minoura  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
     20  1.2.4.2  minoura  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
     21  1.2.4.2  minoura  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
     22  1.2.4.2  minoura  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
     23  1.2.4.2  minoura  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
     24  1.2.4.2  minoura  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
     25  1.2.4.2  minoura  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
     26  1.2.4.2  minoura  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     27  1.2.4.2  minoura  */
     28  1.2.4.2  minoura 
     29  1.2.4.2  minoura struct necpb_config {
     30  1.2.4.2  minoura 	int	nc_initialized;
     31  1.2.4.2  minoura 	struct arc_bus_space nc_memt;
     32  1.2.4.2  minoura 	struct arc_bus_space nc_iot;
     33  1.2.4.2  minoura 	struct arc_bus_dma_tag nc_dmat;
     34  1.2.4.2  minoura 	struct arc_pci_chipset nc_pc;
     35  1.2.4.2  minoura };
     36  1.2.4.2  minoura 
     37  1.2.4.2  minoura struct necpb_softc {
     38  1.2.4.2  minoura 	struct device sc_dev;
     39  1.2.4.2  minoura 	struct necpb_config *sc_ncp;
     40  1.2.4.2  minoura };
     41  1.2.4.2  minoura 
     42  1.2.4.2  minoura struct necpb_intrhand {
     43  1.2.4.2  minoura 	int	(*ih_func) __P((void *));
     44  1.2.4.2  minoura 	void	*ih_arg;
     45  1.2.4.2  minoura 	struct	necpb_intrhand *ih_next;
     46  1.2.4.2  minoura 	int	ih_intn;
     47  1.2.4.2  minoura };
     48  1.2.4.2  minoura 
     49  1.2.4.2  minoura void	necpb_init __P((struct necpb_config *ncp));
     50  1.2.4.2  minoura 
     51  1.2.4.2  minoura /* for console initialization */
     52  1.2.4.2  minoura extern struct necpb_config necpb_configuration;
     53