1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>z8530_write_port</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="Z8530 Programming Guide"><link rel="up" href="intfunctions.html" title="Chapter 10. Internal Functions"><link rel="prev" href="API-z8530-read-port.html" title="z8530_read_port"><link rel="next" href="API-read-zsreg.html" title="read_zsreg"></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">z8530_write_port</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-z8530-read-port.html">Prev</a> </td><th width="60%" align="center">Chapter 10. Internal Functions</th><td width="20%" align="right"> <a accesskey="n" href="API-read-zsreg.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-z8530-write-port"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>z8530_write_port — 2 Architecture specific interface function 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">void <b class="fsfunc">z8530_write_port </b>(</code></td><td>unsigned long <var class="pdparam">p</var>, </td></tr><tr><td> </td><td>u8 <var class="pdparam">d</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idp1119385580"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>p</code></em></span></dt><dd><p> 4 port to write 5 </p></dd><dt><span class="term"><em class="parameter"><code>d</code></em></span></dt><dd><p> 6 value to write 7 </p></dd></dl></div></div><div class="refsect1"><a name="idp1119388060"></a><h2>Description</h2><p> 8 Write a value to a port with delays if need be. Note that the 9 caller must hold locks to avoid read/writes from other contexts 10 violating the 5uS rule 11 </p><p> 12 13 In the longer term this should become an architecture specific 14 section so that this can become a generic driver interface for all 15 platforms. For now we only handle PC I/O ports with or without the 16 dread 5uS sanity delay. 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-z8530-read-port.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="intfunctions.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="API-read-zsreg.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">z8530_read_port</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">read_zsreg</span></td></tr></table></div></body></html> 18