ixpdev.h 711 B

123456789101112131415161718192021222324252627
  1. /*
  2. * IXP2000 MSF network device driver
  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 __IXPDEV_H
  12. #define __IXPDEV_H
  13. struct ixpdev_priv
  14. {
  15. int channel;
  16. int tx_queue_entries;
  17. };
  18. struct net_device *ixpdev_alloc(int channel, int sizeof_priv);
  19. int ixpdev_init(int num_ports, struct net_device **nds,
  20. void (*set_port_admin_status)(int port, int up));
  21. void ixpdev_deinit(void);
  22. #endif