pxa168_eth.h 689 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. *pxa168 ethernet platform device data definition file.
  3. */
  4. #ifndef __LINUX_PXA168_ETH_H
  5. #define __LINUX_PXA168_ETH_H
  6. #include <linux/phy.h>
  7. struct pxa168_eth_platform_data {
  8. int port_number;
  9. int phy_addr;
  10. /*
  11. * If speed is 0, then speed and duplex are autonegotiated.
  12. */
  13. int speed; /* 0, SPEED_10, SPEED_100 */
  14. int duplex; /* DUPLEX_HALF or DUPLEX_FULL */
  15. phy_interface_t intf;
  16. /*
  17. * Override default RX/TX queue sizes if nonzero.
  18. */
  19. int rx_queue_size;
  20. int tx_queue_size;
  21. /*
  22. * init callback is used for board specific initialization
  23. * e.g on Aspenite its used to initialize the PHY transceiver.
  24. */
  25. int (*init)(void);
  26. };
  27. #endif /* __LINUX_PXA168_ETH_H */