1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>ata_std_bios_param</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="libataScsiInt.html" title="Chapter&#160;6.&#160;libata SCSI translation/emulation"><link rel="prev" href="libataScsiInt.html" title="Chapter&#160;6.&#160;libata SCSI translation/emulation"><link rel="next" href="API-ata-scsi-unlock-native-capacity.html" title="ata_scsi_unlock_native_capacity"></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">ata_std_bios_param</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="libataScsiInt.html">Prev</a>&#160;</td><th width="60%" align="center">Chapter&#160;6.&#160;libata SCSI translation/emulation</th><td width="20%" align="right">&#160;<a accesskey="n" href="API-ata-scsi-unlock-native-capacity.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-ata-std-bios-param"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>ata_std_bios_param &#8212; 
2  generic bios head/sector/cylinder calculator used by sd.
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">ata_std_bios_param </b>(</code></td><td>struct scsi_device * <var class="pdparam">sdev</var>, </td></tr><tr><td>&#160;</td><td>struct block_device * <var class="pdparam">bdev</var>, </td></tr><tr><td>&#160;</td><td>sector_t <var class="pdparam">capacity</var>, </td></tr><tr><td>&#160;</td><td>int <var class="pdparam">geom[]</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer">&#160;</div></div></div><div class="refsect1"><a name="idp1124391436"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>sdev</code></em></span></dt><dd><p>
4     SCSI device for which BIOS geometry is to be determined
5    </p></dd><dt><span class="term"><em class="parameter"><code>bdev</code></em></span></dt><dd><p>
6     block device associated with <em class="parameter"><code>sdev</code></em>
7    </p></dd><dt><span class="term"><em class="parameter"><code>capacity</code></em></span></dt><dd><p>
8     capacity of SCSI device
9    </p></dd><dt><span class="term"><em class="parameter"><code>geom[]</code></em></span></dt><dd><p>
10     location to which geometry will be output
11    </p></dd></dl></div></div><div class="refsect1"><a name="idp1124396524"></a><h2>Description</h2><p>
12   Generic bios head/sector/cylinder calculator
13   used by sd. Most BIOSes nowadays expect a XXX/255/16  (CHS)
14   mapping. Some situations may arise where the disk is not
15   bootable if this is not used.
16</p></div><div class="refsect1"><a name="idp1124397332"></a><h2>LOCKING</h2><p>
17   Defined by the SCSI layer.  We don't really care.
18</p></div><div class="refsect1"><a name="idp1124397988"></a><h2>RETURNS</h2><p>
19   Zero.
20</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="libataScsiInt.html">Prev</a>&#160;</td><td width="20%" align="center"><a accesskey="u" href="libataScsiInt.html">Up</a></td><td width="40%" align="right">&#160;<a accesskey="n" href="API-ata-scsi-unlock-native-capacity.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Chapter&#160;6.&#160;libata SCSI translation/emulation&#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">ata_scsi_unlock_native_capacity</span></td></tr></table></div></body></html>
21