Sachin Sanap | a49f37e | 2010-08-13 21:22:49 +0000 | [diff] [blame] | 1 | /* |
| 2 | *pxa168 ethernet platform device data definition file. |
| 3 | */ |
| 4 | #ifndef __LINUX_PXA168_ETH_H |
| 5 | #define __LINUX_PXA168_ETH_H |
| 6 | |
Sebastian Hesselbarth | 95f259c | 2014-10-25 12:08:59 +0200 | [diff] [blame] | 7 | #include <linux/phy.h> |
| 8 | |
Sachin Sanap | a49f37e | 2010-08-13 21:22:49 +0000 | [diff] [blame] | 9 | struct pxa168_eth_platform_data { |
| 10 | int port_number; |
| 11 | int phy_addr; |
| 12 | |
| 13 | /* |
| 14 | * If speed is 0, then speed and duplex are autonegotiated. |
| 15 | */ |
| 16 | int speed; /* 0, SPEED_10, SPEED_100 */ |
| 17 | int duplex; /* DUPLEX_HALF or DUPLEX_FULL */ |
Sebastian Hesselbarth | e7de17a | 2014-10-22 20:26:45 +0200 | [diff] [blame] | 18 | phy_interface_t intf; |
Sachin Sanap | a49f37e | 2010-08-13 21:22:49 +0000 | [diff] [blame] | 19 | |
| 20 | /* |
| 21 | * Override default RX/TX queue sizes if nonzero. |
| 22 | */ |
| 23 | int rx_queue_size; |
| 24 | int tx_queue_size; |
| 25 | |
| 26 | /* |
| 27 | * init callback is used for board specific initialization |
| 28 | * e.g on Aspenite its used to initialize the PHY transceiver. |
| 29 | */ |
| 30 | int (*init)(void); |
| 31 | }; |
| 32 | |
| 33 | #endif /* __LINUX_PXA168_ETH_H */ |