summaryrefslogtreecommitdiff
path: root/sys/dev/usb
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/usb')
-rw-r--r--sys/dev/usb/udl.c3
-rw-r--r--sys/dev/usb/udl.h16
-rw-r--r--sys/dev/usb/udlio.h31
3 files changed, 34 insertions, 16 deletions
diff --git a/sys/dev/usb/udl.c b/sys/dev/usb/udl.c
index d26edf13fbe..799a382906f 100644
--- a/sys/dev/usb/udl.c
+++ b/sys/dev/usb/udl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: udl.c,v 1.49 2009/09/20 11:24:02 mglocker Exp $ */
+/* $OpenBSD: udl.c,v 1.50 2009/09/21 07:41:18 mglocker Exp $ */
/*
* Copyright (c) 2009 Marcus Glocker <mglocker@openbsd.org>
@@ -45,6 +45,7 @@
#include <dev/rasops/rasops.h>
#include <dev/usb/udl.h>
+#include <dev/usb/udlio.h>
/*
* Defines.
diff --git a/sys/dev/usb/udl.h b/sys/dev/usb/udl.h
index cd4c66e4be9..c67d5980a40 100644
--- a/sys/dev/usb/udl.h
+++ b/sys/dev/usb/udl.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: udl.h,v 1.12 2009/09/20 10:18:20 mglocker Exp $ */
+/* $OpenBSD: udl.h,v 1.13 2009/09/21 07:41:18 mglocker Exp $ */
/*
* Copyright (c) 2009 Marcus Glocker <mglocker@openbsd.org>
@@ -103,20 +103,6 @@ struct udl_softc {
};
/*
- * udl IOCTLs.
- */
-struct udl_ioctl_damage {
- int x1;
- int x2;
- int y1;
- int y2;
-#define UDLIO_STATUS_OK 0
-#define UDLIO_STATUS_FAILED 1
- int status;
-};
-#define UDLIO_DAMAGE _IOWR('W', 0, struct udl_ioctl_damage)
-
-/*
* Chip commands.
*/
#define UDL_CTRL_CMD_READ_EDID 0x02
diff --git a/sys/dev/usb/udlio.h b/sys/dev/usb/udlio.h
new file mode 100644
index 00000000000..5cfbc5f12e0
--- /dev/null
+++ b/sys/dev/usb/udlio.h
@@ -0,0 +1,31 @@
+/* $OpenBSD: udlio.h,v 1.1 2009/09/21 07:41:18 mglocker Exp $ */
+
+/*
+ * Copyright (c) 2009 Marcus Glocker <mglocker@openbsd.org>
+ *
+ * Permission to use, copy, modify, and distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+/*
+ * udl IOCTLs.
+ */
+struct udl_ioctl_damage {
+ int x1;
+ int x2;
+ int y1;
+ int y2;
+#define UDLIO_STATUS_OK 0
+#define UDLIO_STATUS_FAILED 1
+ int status;
+};
+#define UDLIO_DAMAGE _IOWR('W', 128, struct udl_ioctl_damage)