1 1.3.18.1 yamt /* $NetBSD: aubusvar.h,v 1.3.18.1 2006/12/30 20:46:30 yamt Exp $ */ 2 1.1 simonb 3 1.1 simonb #ifndef _MIPS_ALCHEMY_DEV_AUBUSVAR_H_ 4 1.1 simonb #define _MIPS_ALCHEMY_DEV_AUBUSVAR_H_ 5 1.1 simonb 6 1.1 simonb #include <machine/bus.h> 7 1.1 simonb 8 1.1 simonb /* 9 1.2 simonb * Machine-dependent structures for autoconfiguration 10 1.1 simonb */ 11 1.1 simonb struct aubus_attach_args { 12 1.1 simonb const char *aa_name; /* device name */ 13 1.1 simonb bus_space_tag_t aa_st; /* the space tag to use */ 14 1.1 simonb bus_addr_t aa_addrs[3]; /* system bus address(es) */ 15 1.1 simonb int aa_irq[2]; /* IRQ index(s) */ 16 1.3 hpeyerl bus_dma_tag_t aa_dt; /* the dma tag to use */ 17 1.1 simonb }; 18 1.1 simonb #define aa_addr aa_addrs[0] 19 1.1 simonb 20 1.1 simonb /* order of attach addresses for aumac register addresses */ 21 1.1 simonb #define AA_MAC_BASE 0 22 1.1 simonb #define AA_MAC_ENABLE 1 23 1.1 simonb #define AA_MAC_DMA_BASE 2 24 1.1 simonb 25 1.1 simonb extern bus_space_tag_t aubus_st; /* XXX: for aubus.c */ 26 1.3.18.1 yamt 27 1.3.18.1 yamt int com_aubus_cnattach(bus_addr_t, int); 28 1.3.18.1 yamt 29 1.1 simonb #endif /* !_MIPS_ALCHEMY_DEV_AUBUSVAR_H_ */ 30