Staging
v0.8.1
https://github.com/torvalds/linux
Raw File
Tip revision: 6b7b284958d47b77d06745b36bc7f36dab769d9b authored by Linus Torvalds on 24 December 2009, 21:09:41 UTC
Linux 2.6.33-rc2
Tip revision: 6b7b284
ixpdev.h
/*
 * IXP2000 MSF network device driver
 * Copyright (C) 2004, 2005 Lennert Buytenhek <buytenh@wantstofly.org>
 * Dedicated to Marija Kulikova.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 */

#ifndef __IXPDEV_H
#define __IXPDEV_H

struct ixpdev_priv
{
	struct net_device *dev;
	struct napi_struct napi;
	int	channel;
	int	tx_queue_entries;
};

struct net_device *ixpdev_alloc(int channel, int sizeof_priv);
int ixpdev_init(int num_ports, struct net_device **nds,
		void (*set_port_admin_status)(int port, int up));
void ixpdev_deinit(void);


#endif
back to top