1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>struct hsi_port</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-struct-hsi-msg.html" title="struct hsi_msg"><link rel="next" href="API-struct-hsi-controller.html" title="struct hsi_controller"></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">struct hsi_port</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-struct-hsi-msg.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-struct-hsi-controller.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-struct-hsi-port"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>struct hsi_port — 2 HSI port device 3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="programlisting"> 4struct hsi_port { 5 struct device device; 6 struct hsi_config tx_cfg; 7 struct hsi_config rx_cfg; 8 unsigned int num; 9 unsigned int shared:1; 10 int claimed; 11 struct mutex lock; 12 int (* async) (struct hsi_msg *msg); 13 int (* setup) (struct hsi_client *cl); 14 int (* flush) (struct hsi_client *cl); 15 int (* start_tx) (struct hsi_client *cl); 16 int (* stop_tx) (struct hsi_client *cl); 17 int (* release) (struct hsi_client *cl); 18 struct atomic_notifier_head n_head; 19}; </pre></div><div class="refsect1"><a name="idp1115623300"></a><h2>Members</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term">device</span></dt><dd><p> 20 Driver model representation of the device 21 </p></dd><dt><span class="term">tx_cfg</span></dt><dd><p> 22 Current TX path configuration 23 </p></dd><dt><span class="term">rx_cfg</span></dt><dd><p> 24 Current RX path configuration 25 </p></dd><dt><span class="term">num</span></dt><dd><p> 26 Port number 27 </p></dd><dt><span class="term">shared</span></dt><dd><p> 28 Set when port can be shared by different clients 29 </p></dd><dt><span class="term">claimed</span></dt><dd><p> 30 Reference count of clients which claimed the port 31 </p></dd><dt><span class="term">lock</span></dt><dd><p> 32 Serialize port claim 33 </p></dd><dt><span class="term">async</span></dt><dd><p> 34 Asynchronous transfer callback 35 </p></dd><dt><span class="term">setup</span></dt><dd><p> 36 Callback to set the HSI client configuration 37 </p></dd><dt><span class="term">flush</span></dt><dd><p> 38 Callback to clean the HW state and destroy all pending transfers 39 </p></dd><dt><span class="term">start_tx</span></dt><dd><p> 40 Callback to inform that a client wants to TX data 41 </p></dd><dt><span class="term">stop_tx</span></dt><dd><p> 42 Callback to inform that a client no longer wishes to TX data 43 </p></dd><dt><span class="term">release</span></dt><dd><p> 44 Callback to inform that a client no longer uses the port 45 </p></dd><dt><span class="term">n_head</span></dt><dd><p> 46 Notifier chain for signaling port events to the clients. 47 </p></dd></dl></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-struct-hsi-msg.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-struct-hsi-controller.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">struct hsi_msg</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">struct hsi_controller</span></td></tr></table></div></body></html> 48