summaryrefslogtreecommitdiffstats
path: root/sys/compat/linux/linux_ioctl.h
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2001-10-19 01:38:10 +0000
committerdes <des@FreeBSD.org>2001-10-19 01:38:10 +0000
commit8bbeedf7ceda38632a2db527a2b525e5cb194c18 (patch)
tree86b34441d1ad9f7046ea553179f98344e8a771ec /sys/compat/linux/linux_ioctl.h
parent30d25bb2aa6bd4dfb7db34a25a4e1c7312ed4e7d (diff)
downloadFreeBSD-src-8bbeedf7ceda38632a2db527a2b525e5cb194c18.zip
FreeBSD-src-8bbeedf7ceda38632a2db527a2b525e5cb194c18.tar.gz
Add support for the "device private" ioctls soon to be used by the an driver.
Also slightly change the name translation policy - only rename interfaces that have the IFF_BROADCAST flag set. This is not perfect, but is closer to how Linux names network interfaces.
Diffstat (limited to 'sys/compat/linux/linux_ioctl.h')
-rw-r--r--sys/compat/linux/linux_ioctl.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/sys/compat/linux/linux_ioctl.h b/sys/compat/linux/linux_ioctl.h
index d5508e6..2e3a06c 100644
--- a/sys/compat/linux/linux_ioctl.h
+++ b/sys/compat/linux/linux_ioctl.h
@@ -144,6 +144,13 @@
#define LINUX_IOCTL_SOCKET_MAX LINUX_SIOCDELMULTI
/*
+ * Device private ioctl calls
+ */
+#define LINUX_SIOCDEVPRIVATE 0x89F0 /* to 89FF */
+#define LINUX_IOCTL_PRIVATE_MIN LINUX_SIOCDEVPRIVATE
+#define LINUX_IOCTL_PRIVATE_MAX LINUX_SIOCDEVPRIVATE+0xf
+
+/*
* sound
*/
#define LINUX_SOUND_MIXER_WRITE_VOLUME 0x4d00
@@ -434,4 +441,10 @@
#define LINUX_ASYNC_CALLOUT_NOHUP 0x0400
#define LINUX_ASYNC_FLAGS 0x0FFF
+/*
+ * This doesn't really belong here, but I can't think of a better
+ * place to put it.
+ */
+int linux_ifname(struct ifnet *, char *, size_t);
+
#endif /* !_LINUX_IOCTL_H_ */
OpenPOWER on IntegriCloud