From 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Sat, 16 Apr 2005 15:20:36 -0700 Subject: Linux-2.6.12-rc2 Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip! --- drivers/net/dgrs.h | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 drivers/net/dgrs.h (limited to 'drivers/net/dgrs.h') diff --git a/drivers/net/dgrs.h b/drivers/net/dgrs.h new file mode 100644 index 00000000000..c347cd11740 --- /dev/null +++ b/drivers/net/dgrs.h @@ -0,0 +1,38 @@ +/* + * 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 + +#define DGRSIOCTL SIOCDEVPRIVATE + +typedef struct dgrs_ioctl { + unsigned short cmd; /* Command to run */ + unsigned short len; /* Length of the data buffer */ + unsigned char __user *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 */ -- cgit v1.2.3