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

📄 wrapper.h

📁 万能网卡驱动程序源代码
💻 H
字号:
/* *  Copyright (C) 2003 Pontus Fuchs * *  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. * *  This program is distributed in the hope that it will be useful, *  but WITHOUT ANY WARRANTY; without even the implied warranty of *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *  GNU General Public License for more details. * */#ifndef WRAPPER_H#define WRAPPER_H#include <linux/ioctl.h>#define DRIVERNAME_MAX 32struct put_driver {	char name[DRIVERNAME_MAX];	int pci_vendor;	int pci_device;	size_t size;	void *data;};struct del_driver {	char name[DRIVERNAME_MAX];};struct setting_payload{	unsigned int data;};struct put_setting{	/* Type of setting */ 	int type;		int name_len;	char *name;	int payload_len;	struct setting_payload *payload;};                                                                                                                                                                                                                                   #define NDIS_PUTDRIVER     _IOWR('N', 0, struct put_driver*)#define NDIS_PUTSETTING    _IOWR('N', 1, struct put_setting*)#define NDIS_STARTDRIVER   _IOWR('N', 2, int)#define NDIS_CANCELLOAD    _IOWR('N', 3, int)#define NDIS_DELDRIVER     _IOWR('N', 4, struct del_driver *)#endif /* WRAPPER_H */

⌨️ 快捷键说明

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