document ioctl(WSDISPLAYIO_GET_EDID)

This commit is contained in:
macallan 2011-06-30 14:52:37 +00:00
parent 425b4dd861
commit 3b2a432473
1 changed files with 17 additions and 2 deletions

View File

@ -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 @@ the keyboard input.
(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 @@ This call is only available with the
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