blob: fb09c2c7cb75e036aed944dc986fda56f3bb8902 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Sachin Sanapa49f37e2010-08-13 21:22:49 +00002/*
3 *pxa168 ethernet platform device data definition file.
4 */
5#ifndef __LINUX_PXA168_ETH_H
6#define __LINUX_PXA168_ETH_H
7
Sebastian Hesselbarth95f259c2014-10-25 12:08:59 +02008#include <linux/phy.h>
9
Sachin Sanapa49f37e2010-08-13 21:22:49 +000010struct pxa168_eth_platform_data {
11 int port_number;
12 int phy_addr;
13
14 /*
15 * If speed is 0, then speed and duplex are autonegotiated.
16 */
17 int speed; /* 0, SPEED_10, SPEED_100 */
18 int duplex; /* DUPLEX_HALF or DUPLEX_FULL */
Sebastian Hesselbarthe7de17a2014-10-22 20:26:45 +020019 phy_interface_t intf;
Sachin Sanapa49f37e2010-08-13 21:22:49 +000020
21 /*
22 * Override default RX/TX queue sizes if nonzero.
23 */
24 int rx_queue_size;
25 int tx_queue_size;
26
27 /*
28 * init callback is used for board specific initialization
29 * e.g on Aspenite its used to initialize the PHY transceiver.
30 */
31 int (*init)(void);
32};
33
34#endif /* __LINUX_PXA168_ETH_H */