1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>hsi_event</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="Linux Device Drivers"><link rel="up" href="hsi.html" title="Chapter 11. High Speed Synchronous Serial Interface (HSI)"><link rel="prev" href="API-hsi-unregister-port-event.html" title="hsi_unregister_port_event"><link rel="next" href="API-hsi-get-channel-id-by-name.html" title="hsi_get_channel_id_by_name"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><span class="phrase">hsi_event</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-hsi-unregister-port-event.html">Prev</a> </td><th width="60%" align="center">Chapter 11. High Speed Synchronous Serial Interface (HSI)</th><td width="20%" align="right"> <a accesskey="n" href="API-hsi-get-channel-id-by-name.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-hsi-event"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>hsi_event — 2 Notifies clients about port events 3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">hsi_event </b>(</code></td><td>struct hsi_port * <var class="pdparam">port</var>, </td></tr><tr><td> </td><td>unsigned long <var class="pdparam">event</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idp1115806092"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>port</code></em></span></dt><dd><p> 4 Port where the event occurred 5 </p></dd><dt><span class="term"><em class="parameter"><code>event</code></em></span></dt><dd><p> 6 The event type 7 </p></dd></dl></div></div><div class="refsect1"><a name="idp1115808732"></a><h2>Description</h2><p> 8 Clients should not be concerned about wake line behavior. However, due 9 to a race condition in HSI HW protocol, clients need to be notified 10 about wake line changes, so they can implement a workaround for it. 11</p></div><div class="refsect1"><a name="idp1115809548"></a><h2>Events</h2><p> 12 HSI_EVENT_START_RX - Incoming wake line high 13 HSI_EVENT_STOP_RX - Incoming wake line down 14 </p><p> 15 16 Returns -errno on error, or 0 on success. 17</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-hsi-unregister-port-event.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="hsi.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="API-hsi-get-channel-id-by-name.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">hsi_unregister_port_event</span> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> <span class="phrase">hsi_get_channel_id_by_name</span></td></tr></table></div></body></html> 18