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

📄 kernelnetworkdriver.h

📁 上一个上传的有问题,这个是好的。visopsys包括系统内核和GUI的全部SOURCE code ,还包括一些基本的docs文档。里面src子目录对应所有SOURCE code.对于想研究操作系统的朋
💻 H
字号:
#define VENDOR_AMD	0x1022#define DEVICE_NET_PCNET_LANCE_PCI	0x2000int initialize(kernelNetworkInterface * nic);int destroy(kernelNetworkInterface * nic);int transmit(kernelNetworkInterface * nic, void * data, int length);int getStatistics(kernelNetworkInterface * nic, kernelNetworkStatistics * statistics);typedef volatile struct{	//initializes the network card, registers its interrupt 	int (*initialize) (kernelNetworkInterface * nic);		//unregisters the network card's interrupt, frees memory used by this structure	int (*destroy) (kernelNetworkInterface * nic);	//transmits a packet over the cable	int (*transmit) (kernelNetworkInterface * nic, void * data, int length);		//Gets the statistics for this device	int (*getStatistics) (kernelNetworkInterface * nic, kernelNetworkStatistics * statistics);} kernelNetworkDriver;//Must be at the end, because a function in kernelNetworkDriver_AmdPCNet.h relies on the structures above.#include "kernelNetworkDriver_AmdPCNet.h"

⌨️ 快捷键说明

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