1 /* $NetBSD: aubusvar.h,v 1.3.44.1 2006/06/15 16:40:43 gdamore Exp $ */
3 #ifndef _MIPS_ALCHEMY_DEV_AUBUSVAR_H_
4 #define _MIPS_ALCHEMY_DEV_AUBUSVAR_H_
6 #include <machine/bus.h>
9 * Machine-dependent structures for autoconfiguration
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 */
18 #define aa_addr aa_addrs[0]
20 /* order of attach addresses for aumac register addresses */
22 #define AA_MAC_ENABLE 1
23 #define AA_MAC_DMA_BASE 2
25 extern bus_space_tag_t aubus_st
; /* XXX: for aubus.c */
27 int com_aubus_cnattach(bus_addr_t
, int);
29 #endif /* !_MIPS_ALCHEMY_DEV_AUBUSVAR_H_ */