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

📄 dgrs.h

📁 powerpc内核mpc8241linux系统下net驱动程序
💻 H
字号:
/* *	ioctl's for the Digi Intl. RightSwitch * *	These network driver ioctl's are a bit obtuse compared to the usual *	ioctl's for a "normal" device driver.  Hey, I didn't invent it. * *	Typical use: * *	struct ifreq	ifr; *	DGRS_IOCTL	ioc; *	int		x; * *	strcpy(ifr.ifr_name, "eth1"); *	ifr.ifr_data = (caddr_t) &ioc; *	ioc.cmd = DGRS_GETMEM; *	ioc.len = sizeof(x); *	ioc.data = (caddr_t) &x; *	rc = ioctl(fd, DGRSIOCTL, &ifr); *	printf("rc=%d mem=%x\n", rc, x); * */#include <linux/sockios.h>#define DGRSIOCTL      SIOCDEVPRIVATEtypedef struct dgrs_ioctl {	unsigned short cmd;	/* Command to run */	unsigned short len;	/* Length of the data buffer */	unsigned char  *data;	/* Pointer to the data buffer */	unsigned short	port;	/* port number for command, if needed */	unsigned short	filter;	/* filter number for command, if needed */} DGRS_IOCTL;/*  *	Commands for the driver  */#define	DGRS_GETMEM		0x01	/* Get the dual port memory address */#define	DGRS_SETFILTER		0x02	/* Set a filter */

⌨️ 快捷键说明

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