1 /* SPDX-License-Identifier: GPL-2.0 */ 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* 2 /* 3 *pxa168 ethernet platform device data definit 3 *pxa168 ethernet platform device data definition file. 4 */ 4 */ 5 #ifndef __LINUX_PXA168_ETH_H 5 #ifndef __LINUX_PXA168_ETH_H 6 #define __LINUX_PXA168_ETH_H 6 #define __LINUX_PXA168_ETH_H 7 7 8 #include <linux/phy.h> 8 #include <linux/phy.h> 9 9 10 struct pxa168_eth_platform_data { 10 struct pxa168_eth_platform_data { 11 int port_number; 11 int port_number; 12 int phy_addr; 12 int phy_addr; 13 13 14 /* 14 /* 15 * If speed is 0, then speed and duple 15 * If speed is 0, then speed and duplex are autonegotiated. 16 */ 16 */ 17 int speed; /* 0, SPEED_10 17 int speed; /* 0, SPEED_10, SPEED_100 */ 18 int duplex; /* DUPLEX_HALF 18 int duplex; /* DUPLEX_HALF or DUPLEX_FULL */ 19 phy_interface_t intf; 19 phy_interface_t intf; 20 20 21 /* 21 /* 22 * Override default RX/TX queue sizes 22 * Override default RX/TX queue sizes if nonzero. 23 */ 23 */ 24 int rx_queue_size; 24 int rx_queue_size; 25 int tx_queue_size; 25 int tx_queue_size; 26 26 27 /* 27 /* 28 * init callback is used for board spe 28 * init callback is used for board specific initialization 29 * e.g on Aspenite its used to initial 29 * e.g on Aspenite its used to initialize the PHY transceiver. 30 */ 30 */ 31 int (*init)(void); 31 int (*init)(void); 32 }; 32 }; 33 33 34 #endif /* __LINUX_PXA168_ETH_H */ 34 #endif /* __LINUX_PXA168_ETH_H */ 35 35
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.