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