1 /* $NetBSD: aubusvar.h,v 1.4 2006/07/13 22:56:01 gdamore 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 27 int com_aubus_cnattach(bus_addr_t, int); 28 29 #endif /* !_MIPS_ALCHEMY_DEV_AUBUSVAR_H_ */ 30