1 /*
2 * This program is free software; you can redistribute it and/or
3 * modify it under the terms of the GNU General Public License as
4 * published by the Free Software Foundation; either version 2, or (at
5 * your option) any later version.
6 */
7
8#ifndef	NIC_H
9#define NIC_H
10
11/*
12 *	Structure returned from eth_probe and passed to other driver
13 *	functions.
14 */
15
16struct nic
17{
18	void		(*reset)P((struct nic *));
19	int		(*poll)P((struct nic *));
20	void		(*transmit)P((struct nic *, const char *d,
21				unsigned int t, unsigned int s, const char *p));
22	void		(*disable)P((struct nic *));
23	int		flags;	/* driver specific flags */
24	struct rom_info	*rom_info;	/* -> rom_info from main */
25	unsigned char	*node_addr;
26	char		*packet;
27	unsigned int	packetlen;
28	void		*priv_data;	/* driver can hang private data here */
29};
30
31#endif	/* NIC_H */
32