/*
 * Copyright (C) 2009 Francisco Jerez.
 * All Rights Reserved.
 *
 * Permission is hereby granted, free of charge, to any person obtaining
 * a copy of this software and associated documentation files (the
 * "Software"), to deal in the Software without restriction, including
 * without limitation the rights to use, copy, modify, merge, publish,
 * distribute, sublicense, and/or sell copies of the Software, and to
 * permit persons to whom the Software is furnished to do so, subject to
 * the following conditions:
 *
 * The above copyright notice and this permission notice (including the
 * next paragraph) shall be included in all copies or substantial
 * portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
 * IN NO EVENT SHALL THE COPYRIGHT OWNER(S) AND/OR ITS SUPPLIERS BE
 * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
 * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 *
 */

#ifndef __DRM_I2C_CH7006_H__
#define __DRM_I2C_CH7006_H__

/**
 * struct ch7006_encoder_params
 *
 * Describes how the ch7006 is wired up with the GPU. It should be
 * used as the @params parameter of its @set_config method.
 *
 * See "http://www.chrontel.com/pdf/7006.pdf" for their precise
 * meaning.
 */
struct ch7006_encoder_params {
	enum {
		CH7006_FORMAT_RGB16 = 0,
		CH7006_FORMAT_YCrCb24m16,
		CH7006_FORMAT_RGB24m16,
		CH7006_FORMAT_RGB15,
		CH7006_FORMAT_RGB24m12C,
		CH7006_FORMAT_RGB24m12I,
		CH7006_FORMAT_RGB24m8,
		CH7006_FORMAT_RGB16m8,
		CH7006_FORMAT_RGB15m8,
		CH7006_FORMAT_YCrCb24m8,
	} input_format;

	enum {
		CH7006_CLOCK_SLAVE = 0,
		CH7006_CLOCK_MASTER,
	} clock_mode;

	enum {
		CH7006_CLOCK_EDGE_NEG = 0,
		CH7006_CLOCK_EDGE_POS,
	} clock_edge;

	int xcm, pcm;

	enum {
		CH7006_SYNC_SLAVE = 0,
		CH7006_SYNC_MASTER,
	} sync_direction;

	enum {
		CH7006_SYNC_SEPARATED = 0,
		CH7006_SYNC_EMBEDDED,
	} sync_encoding;

	enum {
		CH7006_POUT_1_8V = 0,
		CH7006_POUT_3_3V,
	} pout_level;

	enum {
		CH7006_ACTIVE_HSYNC = 0,
		CH7006_ACTIVE_DSTART,
	} active_detect;
};

#endif
net-next.git/log/drivers/usb/serial/metro-usb.c'>
<input type='hidden' name='id' value='a0a28644c1cf191e514dd64bf438e69c178b8440'/><select name='qt'>
<option value='grep'>log msg</option>
<option value='author'>author</option>
<option value='committer'>committer</option>
<option value='range'>range</option>
</select>
<input class='txt' type='search' size='10' name='q' value=''/>
<input type='submit' value='search'/>
</form>
</td></tr></table>
<div class='path'>path: <a href='/cgit.cgi/linux/net-next.git/commit/?id=a0a28644c1cf191e514dd64bf438e69c178b8440'>root</a>/<a href='/cgit.cgi/linux/net-next.git/commit/drivers?id=a0a28644c1cf191e514dd64bf438e69c178b8440'>drivers</a>/<a href='/cgit.cgi/linux/net-next.git/commit/drivers/usb?id=a0a28644c1cf191e514dd64bf438e69c178b8440'>usb</a>/<a href='/cgit.cgi/linux/net-next.git/commit/drivers/usb/serial?id=a0a28644c1cf191e514dd64bf438e69c178b8440'>serial</a>/<a href='/cgit.cgi/linux/net-next.git/commit/drivers/usb/serial/metro-usb.c?id=a0a28644c1cf191e514dd64bf438e69c178b8440'>metro-usb.c</a></div><div class='content'><div class='cgit-panel'><b>diff options</b><form method='get'><input type='hidden' name='id' value='a0a28644c1cf191e514dd64bf438e69c178b8440'/><table><tr><td colspan='2'/></tr><tr><td class='label'>context:</td><td class='ctrl'><select name='context' onchange='this.form.submit();'><option value='1'>1</option><option value='2'>2</option><option value='3' selected='selected'>3</option><option value='4'>4</option><option value='5'>5</option><option value='6'>6</option><option value='7'>7</option><option value='8'>8</option><option value='9'>9</option><option value='10'>10</option><option value='15'>15</option><option value='20'>20</option><option value='25'>25</option><option value='30'>30</option><option value='35'>35</option><option value='40'>40</option></select></td></tr><tr><td class='label'>space:</td><td class='ctrl'><select name='ignorews' onchange='this.form.submit();'><option value='0' selected='selected'>include</option><option value='1'>ignore</option></select></td></tr><tr><td class='label'>mode:</td><td class='ctrl'><select name='dt' onchange='this.form.submit();'><option value='0' selected='selected'>unified</option><option value='1'>ssdiff</option><option value='2'>stat only</option></select></td></tr><tr><td/><td class='ctrl'><noscript><input type='submit' value='reload'/></noscript></td></tr></table></form></div><table summary='commit info' class='commit-info'>
<tr><th>author</th><td>Linus Torvalds &lt;torvalds@linux-foundation.org&gt;</td><td class='right'>2017-02-03 16:18:51 -0800</td></tr>
<tr><th>committer</th><td>Linus Torvalds &lt;torvalds@linux-foundation.org&gt;</td><td class='right'>2017-02-03 16:18:51 -0800</td></tr>
<tr><th>commit</th><td colspan='2' class='oid'><a href='/cgit.cgi/linux/net-next.git/commit/drivers/usb/serial/metro-usb.c?id=a0a28644c1cf191e514dd64bf438e69c178b8440'>a0a28644c1cf191e514dd64bf438e69c178b8440</a> (<a href='/cgit.cgi/linux/net-next.git/patch/drivers/usb/serial/metro-usb.c?id=a0a28644c1cf191e514dd64bf438e69c178b8440'>patch</a>)</td></tr>
<tr><th>tree</th><td colspan='2' class='oid'><a href='/cgit.cgi/linux/net-next.git/tree/?id=a0a28644c1cf191e514dd64bf438e69c178b8440'>4a5140d2f13692f91ca012d0eab146e9f366ce95</a> /<a href='/cgit.cgi/linux/net-next.git/tree/drivers/usb/serial/metro-usb.c?id=a0a28644c1cf191e514dd64bf438e69c178b8440'>drivers/usb/serial/metro-usb.c</a></td></tr>
<tr><th>parent</th><td colspan='2' class='oid'><a href='/cgit.cgi/linux/net-next.git/commit/drivers/usb/serial/metro-usb.c?id=a49e6f584e29785f9e5eb8dd31435746818dd5c4'>a49e6f584e29785f9e5eb8dd31435746818dd5c4</a> (<a href='/cgit.cgi/linux/net-next.git/diff/drivers/usb/serial/metro-usb.c?id=a0a28644c1cf191e514dd64bf438e69c178b8440&amp;id2=a49e6f584e29785f9e5eb8dd31435746818dd5c4'>diff</a>)</td></tr><tr><th>parent</th><td colspan='2' class='oid'><a href='/cgit.cgi/linux/net-next.git/commit/drivers/usb/serial/metro-usb.c?id=6f3e71c0c3f2479e05682e2e563b75decab36591'>6f3e71c0c3f2479e05682e2e563b75decab36591</a> (<a href='/cgit.cgi/linux/net-next.git/diff/drivers/usb/serial/metro-usb.c?id=a0a28644c1cf191e514dd64bf438e69c178b8440&amp;id2=6f3e71c0c3f2479e05682e2e563b75decab36591'>diff</a>)</td></tr></table>
<div class='commit-subject'>Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi</div><div class='commit-msg'>Pull SCSI fix from James Bottomley:
 "A single fix this time: a fix for a virtqueue removal bug which only
  appears to affect S390, but which results in the queue hanging forever
  thus causing the machine to fail shutdown"

* tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi:
  scsi: virtio_scsi: Reject commands when virtqueue is broken
</div><div class='diffstat-header'><a href='/cgit.cgi/linux/net-next.git/diff/?id=a0a28644c1cf191e514dd64bf438e69c178b8440'>Diffstat</a> (limited to 'drivers/usb/serial/metro-usb.c')</div><table summary='diffstat' class='diffstat'>