Home | History | Annotate | Line # | Download | only in footbridge
      1 /*	$NetBSD: footbridgevar.h,v 1.7 2011/07/01 19:32:28 dyoung Exp $	*/
      2 
      3 /*
      4  * Copyright (c) 1997 Mark Brinicombe.
      5  * Copyright (c) 1997 Causality Limited
      6  * All rights reserved.
      7  *
      8  * Redistribution and use in source and binary forms, with or without
      9  * modification, are permitted provided that the following conditions
     10  * are met:
     11  * 1. Redistributions of source code must retain the above copyright
     12  *    notice, this list of conditions and the following disclaimer.
     13  * 2. Redistributions in binary form must reproduce the above copyright
     14  *    notice, this list of conditions and the following disclaimer in the
     15  *    documentation and/or other materials provided with the distribution.
     16  * 3. All advertising materials mentioning features or use of this software
     17  *    must display the following acknowledgement:
     18  *	This product includes software developed by Mark Brinicombe
     19  *	for the NetBSD Project.
     20  * 4. The name of the company nor the name of the author may be used to
     21  *    endorse or promote products derived from this software without specific
     22  *    prior written permission.
     23  *
     24  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
     25  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
     26  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
     27  * IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
     28  * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
     29  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
     30  * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
     31  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
     32  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
     33  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
     34  * SUCH DAMAGE.
     35  */
     36 
     37 #include <sys/bus.h>
     38 #include <machine/rtc.h>
     39 #include <dev/pci/pcivar.h>
     40 
     41 /*
     42  * DC21285 softc structure.
     43  *
     44  * Contains the device node, bus space tag, handle and address
     45  */
     46 
     47 struct footbridge_softc {
     48 	device_t 		sc_dev;	/* device node */
     49 	bus_space_tag_t		sc_iot;	/* bus tag */
     50 	bus_space_handle_t	sc_ioh;	/* bus handle */
     51 
     52 	/* Clock related variables - used in footbridge_clock.c */
     53 	unsigned int		sc_clock_ticks_per_256us;
     54 	unsigned int		sc_clock_count;
     55 	void	 		*sc_clockintr;
     56 	unsigned int		sc_statclock_count;
     57 	void	 		*sc_statclockintr;
     58 
     59 	/* Miscellaneous interrupts */
     60 	void *			sc_serr_ih;
     61 	void *			sc_sdram_par_ih;
     62 	void *			sc_data_par_ih;
     63 	void *			sc_master_abt_ih;
     64 	void *			sc_target_abt_ih;
     65 	void *			sc_parity_ih;
     66 };
     67 
     68 /*
     69  * Attach args for child devices
     70  */
     71 
     72 union footbridge_attach_args {
     73 	const char *fba_name;			/* first element*/
     74 	struct {
     75 		bus_space_tag_t fba_iot;	/* Bus tag */
     76 		bus_space_handle_t fba_ioh;	/* Bus handle */
     77 	} fba_fba;
     78 	struct pcibus_attach_args fba_pba;	/* pci attach args */
     79 	struct fcom_attach_args {
     80 		const char *fca_name;
     81 		bus_space_tag_t fca_iot;
     82 		bus_space_handle_t fca_ioh;
     83 		int fca_rx_irq;
     84 		int fca_tx_irq;
     85 	} fba_fca;
     86 /*	struct clock_attach_args {
     87 		char *ca_name;
     88 		bus_space_tag_t ca_iot;
     89 		bus_space_handle_t ca_ioh;
     90 	} fba_ca;*/
     91 };
     92 
     93 /* End of footbridgevar.h */
     94