blob: 37c381120bc83c10ad84e7178ed11128f31fbe9f [file] [log] [blame]
Sachin Sanapa49f37e2010-08-13 21:22:49 +00001/*
2 *pxa168 ethernet platform device data definition file.
3 */
4#ifndef __LINUX_PXA168_ETH_H
5#define __LINUX_PXA168_ETH_H
6
7struct pxa168_eth_platform_data {
8 int port_number;
9 int phy_addr;
10
11 /*
12 * If speed is 0, then speed and duplex are autonegotiated.
13 */
14 int speed; /* 0, SPEED_10, SPEED_100 */
15 int duplex; /* DUPLEX_HALF or DUPLEX_FULL */
Sebastian Hesselbarthe7de17a2014-10-22 20:26:45 +020016 phy_interface_t intf;
Sachin Sanapa49f37e2010-08-13 21:22:49 +000017
18 /*
19 * Override default RX/TX queue sizes if nonzero.
20 */
21 int rx_queue_size;
22 int tx_queue_size;
23
24 /*
25 * init callback is used for board specific initialization
26 * e.g on Aspenite its used to initialize the PHY transceiver.
27 */
28 int (*init)(void);
29};
30
31#endif /* __LINUX_PXA168_ETH_H */