pm3386.h 919 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Helper functions for the PM3386s on the Radisys ENP2611
  3. * Copyright (C) 2004, 2005 Lennert Buytenhek <buytenh@wantstofly.org>
  4. * Dedicated to Marija Kulikova.
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation; either version 2 of the License, or
  9. * (at your option) any later version.
  10. */
  11. #ifndef __PM3386_H
  12. #define __PM3386_H
  13. void pm3386_reset(void);
  14. int pm3386_port_count(void);
  15. void pm3386_init_port(int port);
  16. void pm3386_get_mac(int port, u8 *mac);
  17. void pm3386_set_mac(int port, u8 *mac);
  18. void pm3386_get_stats(int port, struct net_device_stats *stats);
  19. void pm3386_set_carrier(int port, int state);
  20. int pm3386_is_link_up(int port);
  21. void pm3386_enable_rx(int port);
  22. void pm3386_disable_rx(int port);
  23. void pm3386_enable_tx(int port);
  24. void pm3386_disable_tx(int port);
  25. #endif