major cleanup of the ar531x code, improved hardware detection and support for multipl...
[openwrt.git] / target / linux / atheros-2.6 / files / include / asm-mips / mach-atheros / ar531x_platform.h
1 #ifndef __AR531X_PLATFORM_H
2 #define __AR531X_PLATFORM_H
3
4 /*
5  * Board support data.  The driver is required to locate
6  * and fill-in this information before passing a reference to
7  * this structure as the HAL_BUS_TAG parameter supplied to
8  * ath_hal_attach.
9  */
10 struct ar531x_config {
11         const char  *board;     /* board config data */
12         const char      *radio;                 /* radio config data */
13         int             unit;                   /* unit number [0, 1] */
14         u32             tag;                    /* used as devid for now */
15 };
16
17 struct ar531x_eth {
18         int phy;
19         int mac;
20         u32 reset_base;
21         u32 reset_mac;
22         u32 reset_phy;
23         u32 phy_base;
24         char *board_config;
25         char *macaddr;
26 };
27
28 #endif /* __AR531X_PLATFORM_H */