2010-08-14 04:22:49 +07:00
|
|
|
/*
|
|
|
|
*pxa168 ethernet platform device data definition file.
|
|
|
|
*/
|
|
|
|
#ifndef __LINUX_PXA168_ETH_H
|
|
|
|
#define __LINUX_PXA168_ETH_H
|
|
|
|
|
2014-10-25 17:08:59 +07:00
|
|
|
#include <linux/phy.h>
|
|
|
|
|
2010-08-14 04:22:49 +07:00
|
|
|
struct pxa168_eth_platform_data {
|
|
|
|
int port_number;
|
|
|
|
int phy_addr;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* If speed is 0, then speed and duplex are autonegotiated.
|
|
|
|
*/
|
|
|
|
int speed; /* 0, SPEED_10, SPEED_100 */
|
|
|
|
int duplex; /* DUPLEX_HALF or DUPLEX_FULL */
|
2014-10-23 01:26:45 +07:00
|
|
|
phy_interface_t intf;
|
2010-08-14 04:22:49 +07:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Override default RX/TX queue sizes if nonzero.
|
|
|
|
*/
|
|
|
|
int rx_queue_size;
|
|
|
|
int tx_queue_size;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* init callback is used for board specific initialization
|
|
|
|
* e.g on Aspenite its used to initialize the PHY transceiver.
|
|
|
|
*/
|
|
|
|
int (*init)(void);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* __LINUX_PXA168_ETH_H */
|