1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>atapi_cmd_type</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="libataExt.html" title="Chapter 4. libata Library"><link rel="prev" href="API-ata-dev-next.html" title="ata_dev_next"><link rel="next" href="API-ata-tf-to-fis.html" title="ata_tf_to_fis"></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">atapi_cmd_type</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-ata-dev-next.html">Prev</a> </td><th width="60%" align="center">Chapter 4. libata Library</th><td width="20%" align="right"> <a accesskey="n" href="API-ata-tf-to-fis.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-atapi-cmd-type"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>atapi_cmd_type — 2 Determine ATAPI command type from SCSI opcode 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">atapi_cmd_type </b>(</code></td><td>u8 <var class="pdparam">opcode</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idp1123391996"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>opcode</code></em></span></dt><dd><p> 4 SCSI opcode 5 </p></dd></dl></div></div><div class="refsect1"><a name="idp1123393524"></a><h2>Description</h2><p> 6 Determine ATAPI command type from <em class="parameter"><code>opcode</code></em>. 7</p></div><div class="refsect1"><a name="idp1123394460"></a><h2>LOCKING</h2><p> 8 None. 9</p></div><div class="refsect1"><a name="idp1123395036"></a><h2>RETURNS</h2><p> 10 ATAPI_{READ|WRITE|READ_CD|PASS_THRU|MISC} 11</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-ata-dev-next.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="libataExt.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="API-ata-tf-to-fis.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">ata_dev_next</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">ata_tf_to_fis</span></td></tr></table></div></body></html> 12