xref: /netbsd-src/sys/arch/mips/alchemy/include/aubusvar.h (revision d710132b4b8ce7f7cccaaf660cb16aa16b4077a0)
1 /* $NetBSD: aubusvar.h,v 1.3 2003/04/01 17:29:11 hpeyerl 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 for 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 	bus_dma_tag_t	aa_dt;		/* the dma tag to use */
17 };
18 #define	aa_addr		aa_addrs[0]
19 
20 /* order of attach addresses for aumac register addresses */
21 #define	AA_MAC_BASE	0
22 #define	AA_MAC_ENABLE	1
23 #define	AA_MAC_DMA_BASE	2
24 
25 extern bus_space_tag_t	aubus_st;		/* XXX: for aubus.c */
26 #endif	/* !_MIPS_ALCHEMY_DEV_AUBUSVAR_H_ */
27