Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/wscons add two new ioctl()s:
details: https://anonhg.NetBSD.org/src/rev/6b33d6cd6856
branches: trunk
changeset: 766632:6b33d6cd6856
user: macallan <macallan%NetBSD.org@localhost>
date: Wed Jun 29 03:06:16 2011 +0000
description:
add two new ioctl()s:
WSDISPLAYIO_GET_EDID to retrieve EDID data from display drivers
WSDISPLAYIO_SET_POLLING to control polling with VCONS_DRAW_INTR
diffstat:
sys/dev/wscons/wsconsio.h | 30 +++++++++++++++++++++++++++++-
1 files changed, 29 insertions(+), 1 deletions(-)
diffs (42 lines):
diff -r 3564c7d2cfb8 -r 6b33d6cd6856 sys/dev/wscons/wsconsio.h
--- a/sys/dev/wscons/wsconsio.h Wed Jun 29 02:56:24 2011 +0000
+++ b/sys/dev/wscons/wsconsio.h Wed Jun 29 03:06:16 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: wsconsio.h,v 1.96 2011/06/08 10:25:21 drochner Exp $ */
+/* $NetBSD: wsconsio.h,v 1.97 2011/06/29 03:06:16 macallan Exp $ */
/*
* Copyright (c) 1996, 1997 Christopher G. Demetriou. All rights reserved.
@@ -565,4 +565,32 @@
#define WSDISPLAYIO_GET_BUSID _IOR('W', 101, struct wsdisplayio_bus_id)
+/*
+ * retrieving EDID data from a wsdisplay driver
+ * The EDID block will be written into a buffer pointed at by edid_data,
+ * the caller must fill in buffer_size and edid_data, the driver will set
+ * data_size to the number of bytes actually written.
+ * If the buffer is too small the call will fail with EAGAIN and the driver
+ * will set data_size without writing anything into the buffer.
+ */
+
+struct wsdisplayio_edid_info {
+ int buffer_size;
+ int data_size;
+ uint8_t *edid_data;
+};
+#define WSDISPLAYIO_GET_EDID _IOWR('W', 102, struct wsdisplayio_edid_info)
+
+/*
+ * this is for enabling and disabling interrupt-driven drawing
+ * pass 1 to enable polling, 0 to go back to normal
+ * the kernel itself will call this on the console device when entering or
+ * leaving ddb and on panic
+ * may have side effects like hard switching to the virtual console which
+ * shows kernel output, resetting the video hardware etc. - not really for
+ * userland to mess with
+ */
+#define WSDISPLAYIO_SET_POLLING _IOW('W', 103, int)
+#define WSDISPLAYIOMGWEHITANDKILLEDASKUNK WSDISPLAYIO_SET_POLLING
+
#endif /* _DEV_WSCONS_WSCONSIO_H_ */
Home |
Main Index |
Thread Index |
Old Index