⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 nic.h

📁 linux下从网卡远程启动
💻 H
字号:
 /* * 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, or (at * your option) any later version. */#ifndef	NIC_H#define NIC_H#include "dev.h"/* *	Structure returned from eth_probe and passed to other driver *	functions. */struct nic{	struct dev	dev;  /* This must come first */	int		(*poll)P((struct nic *));	void		(*transmit)P((struct nic *, const char *d,				unsigned int t, unsigned int s, const char *p));	int		flags;	/* driver specific flags */	struct rom_info	*rom_info;	/* -> rom_info from main */	unsigned char	*node_addr;	unsigned char	*packet;	unsigned int	packetlen;	void		*priv_data;	/* driver can hang private data here */};extern struct nic nic;extern int  eth_probe(struct dev *dev);extern int  eth_poll(void);extern void eth_transmit(const char *d, unsigned int t, unsigned int s, const void *p);extern void eth_disable(void);extern int eth_load_configuration(struct dev *dev);extern int eth_load(struct dev *dev);;#endif	/* NIC_H */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -