pxa168_eth.h 728 B

12345678910111213141516171819202122232425262728293031323334
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. *pxa168 ethernet platform device data definition file.
  4. */
  5. #ifndef __LINUX_PXA168_ETH_H
  6. #define __LINUX_PXA168_ETH_H
  7. #include <linux/phy.h>
  8. struct pxa168_eth_platform_data {
  9. int port_number;
  10. int phy_addr;
  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 */
  16. phy_interface_t intf;
  17. /*
  18. * Override default RX/TX queue sizes if nonzero.
  19. */
  20. int rx_queue_size;
  21. int tx_queue_size;
  22. /*
  23. * init callback is used for board specific initialization
  24. * e.g on Aspenite its used to initialize the PHY transceiver.
  25. */
  26. int (*init)(void);
  27. };
  28. #endif /* __LINUX_PXA168_ETH_H */