nic.h revision 677833bc953b6cb418c701facbdcf4aa18d6c44e
/*
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2, or (at
* your option) any later version.
*/
#ifndef NIC_H
#define NIC_H
#include "dev.h"
typedef enum {
DISABLE = 0,
} irq_action_t;
/*
* Structure returned from eth_probe and passed to other driver
* functions.
*/
struct nic
{
unsigned int t, unsigned int s, const char *p));
int flags; /* driver specific flags */
unsigned char *node_addr;
unsigned char *packet;
unsigned int packetlen;
unsigned int ioaddr;
unsigned char irqno;
void *priv_data; /* driver can hang private data here */
};
extern void eth_transmit(const char *d, unsigned int t, unsigned int s, const void *p);
extern void eth_disable(void);
#endif /* NIC_H */