Home | History | Annotate | Line # | Download | only in include
aubusvar.h revision 1.1.2.2
      1 /* $NetBSD: aubusvar.h,v 1.1.2.2 2002/07/29 15:39:16 simonb Exp $ */
      2 
      3 #ifndef _MIPS_ALCHEMY_DEV_AUBUSVAR_H_
      4 #define	_MIPS_ALCHEMY_DEV_AUBUSVAR_H_
      5 
      6 #include <machine/bus.h>
      7 
      8 /*
      9  * Machine-dependent structures of autoconfiguration
     10  */
     11 struct aubus_attach_args {
     12 	const char	*aa_name;	/* device name */
     13 	bus_space_tag_t	aa_st;		/* the space tag to use */
     14 	bus_addr_t	aa_addrs[3];	/* system bus address(es) */
     15 	int		aa_irq[2];	/* IRQ index(s) */
     16 };
     17 #define	aa_addr		aa_addrs[0]
     18 
     19 /* order of attach addresses for aumac register addresses */
     20 #define	AA_MAC_BASE	0
     21 #define	AA_MAC_ENABLE	1
     22 #define	AA_MAC_DMA_BASE	2
     23 
     24 extern bus_space_tag_t	aubus_st;		/* XXX: for aubus.c */
     25 #endif	/* !_MIPS_ALCHEMY_DEV_AUBUSVAR_H_ */
     26