Module Name:    src
Committed By:   macallan
Date:           Thu Jun 30 14:52:37 UTC 2011

Modified Files:
        src/share/man/man4: wsdisplay.4

Log Message:
document ioctl(WSDISPLAYIO_GET_EDID)


To generate a diff of this commit:
cvs rdiff -u -r1.35 -r1.36 src/share/man/man4/wsdisplay.4

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man4/wsdisplay.4
diff -u src/share/man/man4/wsdisplay.4:1.35 src/share/man/man4/wsdisplay.4:1.36
--- src/share/man/man4/wsdisplay.4:1.35	Mon Mar 22 18:58:31 2010
+++ src/share/man/man4/wsdisplay.4	Thu Jun 30 14:52:37 2011
@@ -1,4 +1,4 @@
-.\" $NetBSD: wsdisplay.4,v 1.35 2010/03/22 18:58:31 joerg Exp $
+.\" $NetBSD: wsdisplay.4,v 1.36 2011/06/30 14:52:37 macallan Exp $
 .\"
 .\" Copyright (c) 1999 Matthias Drochner.
 .\" Copyright (c) 2002 Ben Harris.
@@ -119,7 +119,7 @@
 (In some cases \- if no screen is set up or if a screen
 was just deleted \- it is possible that no focus is present at all.)
 The focus can be switched by either special keyboard input (typically
-.Tn CTRL-ALT-F Ns Ar n )
+.Tn CTRL-ALT-F Ns Ar n, STOP-F Ns Ar n on Sun hardware )
 or an ioctl command issued by a user program.
 Screens are created and deleted through the
 .Pa /dev/ttyEcfg
@@ -543,6 +543,21 @@
 and
 .Dv SPLASHSCREEN_PROGRESS
 kernel options.
+.It Dv WSDISPLAYIO_GET_EDID Pq Li struct wsdisplay_edid_info
+Retrieve EDID data from a driver.
+.Bd -literal -offset indent
+struct wsdisplayio_edid_info {
+	uint32_t buffer_size;
+	uint32_t data_size;
+	void *edid_data;
+};
+.Ed
+The caller is responsible for allocating a buffer of at least 128 bytes
+( the minimum size of an EDID block ) and set data_size to its size. If
+the EDID block is bigger the call will fail with EAGAIN and the driver
+will set data_size to the required buffer size. Otherwise the EDID
+block will be written into the buffer pointed at by edid_data and 
+data_size will be set to the number of bytes written.
 .El
 .Sh FILES
 .Bl -item

Reply via email to