diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
commit | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch) | |
tree | 0bba044c4ce775e45a88a51686b5d9f90697ea9d /drivers/net/dgrs.h |
Linux-2.6.12-rc2v2.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!
Diffstat (limited to 'drivers/net/dgrs.h')
-rw-r--r-- | drivers/net/dgrs.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/drivers/net/dgrs.h b/drivers/net/dgrs.h new file mode 100644 index 000000000000..c347cd117409 --- /dev/null +++ b/drivers/net/dgrs.h | |||
@@ -0,0 +1,38 @@ | |||
1 | /* | ||
2 | * ioctl's for the Digi Intl. RightSwitch | ||
3 | * | ||
4 | * These network driver ioctl's are a bit obtuse compared to the usual | ||
5 | * ioctl's for a "normal" device driver. Hey, I didn't invent it. | ||
6 | * | ||
7 | * Typical use: | ||
8 | * | ||
9 | * struct ifreq ifr; | ||
10 | * DGRS_IOCTL ioc; | ||
11 | * int x; | ||
12 | * | ||
13 | * strcpy(ifr.ifr_name, "eth1"); | ||
14 | * ifr.ifr_data = (caddr_t) &ioc; | ||
15 | * ioc.cmd = DGRS_GETMEM; | ||
16 | * ioc.len = sizeof(x); | ||
17 | * ioc.data = (caddr_t) &x; | ||
18 | * rc = ioctl(fd, DGRSIOCTL, &ifr); | ||
19 | * printf("rc=%d mem=%x\n", rc, x); | ||
20 | * | ||
21 | */ | ||
22 | #include <linux/sockios.h> | ||
23 | |||
24 | #define DGRSIOCTL SIOCDEVPRIVATE | ||
25 | |||
26 | typedef struct dgrs_ioctl { | ||
27 | unsigned short cmd; /* Command to run */ | ||
28 | unsigned short len; /* Length of the data buffer */ | ||
29 | unsigned char __user *data; /* Pointer to the data buffer */ | ||
30 | unsigned short port; /* port number for command, if needed */ | ||
31 | unsigned short filter; /* filter number for command, if needed */ | ||
32 | } DGRS_IOCTL; | ||
33 | |||
34 | /* | ||
35 | * Commands for the driver | ||
36 | */ | ||
37 | #define DGRS_GETMEM 0x01 /* Get the dual port memory address */ | ||
38 | #define DGRS_SETFILTER 0x02 /* Set a filter */ | ||