1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>ich_pata_cable_detect</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="libATA Developer's Guide"><link rel="up" href="PiixInt.html" title="Chapter&#160;8.&#160;ata_piix Internals"><link rel="prev" href="PiixInt.html" title="Chapter&#160;8.&#160;ata_piix Internals"><link rel="next" href="API-piix-pata-prereset.html" title="piix_pata_prereset"></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">ich_pata_cable_detect</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="PiixInt.html">Prev</a>&#160;</td><th width="60%" align="center">Chapter&#160;8.&#160;ata_piix Internals</th><td width="20%" align="right">&#160;<a accesskey="n" href="API-piix-pata-prereset.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-ich-pata-cable-detect"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>ich_pata_cable_detect &#8212; 
2  Probe host controller cable detect info
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">ich_pata_cable_detect </b>(</code></td><td>struct ata_port * <var class="pdparam">ap</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer">&#160;</div></div></div><div class="refsect1"><a name="idp1125033884"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>ap</code></em></span></dt><dd><p>
4     Port for which cable detect info is desired
5    </p></dd></dl></div></div><div class="refsect1"><a name="idp1125035508"></a><h2>Description</h2><p>
6   Read 80c cable indicator from ATA PCI device's PCI config
7   register.  This register is normally set by firmware (BIOS).
8</p></div><div class="refsect1"><a name="idp1125036236"></a><h2>LOCKING</h2><p>
9   None (inherited from caller).
10</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="PiixInt.html">Prev</a>&#160;</td><td width="20%" align="center"><a accesskey="u" href="PiixInt.html">Up</a></td><td width="40%" align="right">&#160;<a accesskey="n" href="API-piix-pata-prereset.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Chapter&#160;8.&#160;ata_piix Internals&#160;</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">&#160;<span class="phrase">piix_pata_prereset</span></td></tr></table></div></body></html>
11