Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  *pxa168 ethernet platform device data definition file.
0004  */
0005 #ifndef __LINUX_PXA168_ETH_H
0006 #define __LINUX_PXA168_ETH_H
0007 
0008 #include <linux/phy.h>
0009 
0010 struct pxa168_eth_platform_data {
0011     int port_number;
0012     int phy_addr;
0013 
0014     /*
0015      * If speed is 0, then speed and duplex are autonegotiated.
0016      */
0017     int speed;      /* 0, SPEED_10, SPEED_100 */
0018     int duplex;     /* DUPLEX_HALF or DUPLEX_FULL */
0019     phy_interface_t intf;
0020 
0021     /*
0022      * Override default RX/TX queue sizes if nonzero.
0023      */
0024     int rx_queue_size;
0025     int tx_queue_size;
0026 
0027     /*
0028      * init callback is used for board specific initialization
0029      * e.g on Aspenite its used to initialize the PHY transceiver.
0030      */
0031     int (*init)(void);
0032 };
0033 
0034 #endif /* __LINUX_PXA168_ETH_H */