2007-02-04 23:18:10 +02:00
|
|
|
#ifndef __AR531X_PLATFORM_H
|
|
|
|
#define __AR531X_PLATFORM_H
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Board support data. The driver is required to locate
|
|
|
|
* and fill-in this information before passing a reference to
|
|
|
|
* this structure as the HAL_BUS_TAG parameter supplied to
|
|
|
|
* ath_hal_attach.
|
|
|
|
*/
|
|
|
|
struct ar531x_config {
|
|
|
|
const char *board; /* board config data */
|
|
|
|
const char *radio; /* radio config data */
|
|
|
|
int unit; /* unit number [0, 1] */
|
|
|
|
u32 tag; /* used as devid for now */
|
|
|
|
};
|
|
|
|
|
|
|
|
struct ar531x_eth {
|
|
|
|
int phy;
|
|
|
|
int mac;
|
|
|
|
u32 reset_base;
|
|
|
|
u32 reset_mac;
|
|
|
|
u32 reset_phy;
|
2007-02-16 11:23:15 +02:00
|
|
|
u32 phy_base;
|
2007-02-04 23:18:10 +02:00
|
|
|
char *board_config;
|
2007-02-16 11:23:15 +02:00
|
|
|
char *macaddr;
|
2007-02-04 23:18:10 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* __AR531X_PLATFORM_H */
|