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