r8168.h 653 B

1234567891011121314151617181920212223
  1. /* Realtek RTL8111/8168 (RTL8112L) PCIe Gigabit Ethernet driver. */
  2. #ifndef R8168_H
  3. #define R8168_H
  4. /* Probe + reset + configure the NIC. Idempotent; 0 on success, -1 if absent. */
  5. int r8168_init(void);
  6. void r8168_get_mac(unsigned char out[6]);
  7. int r8168_rx(unsigned char *buf, unsigned int maxlen);
  8. int r8168_tx(const unsigned char *buf, unsigned int len);
  9. /* Enable/disable PHY loopback for the self-test (see r8168.c). */
  10. int r8168_set_loopback(int on);
  11. void r8168_print_info(void);
  12. void r8168_dump_regs(void);
  13. void r8168_reset(void);
  14. /* netdev adapter (see netdev.h). */
  15. #include "netdev.h"
  16. extern const struct netdev r8168_netdev;
  17. #endif