1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>Chapter&#160;5.&#160;libata Core Internals</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="index.html" title="libATA Developer's Guide"><link rel="prev" href="API-sata-lpm-ignore-phy-events.html" title="sata_lpm_ignore_phy_events"><link rel="next" href="API-ata-dev-phys-link.html" title="ata_dev_phys_link"></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">Chapter&#160;5.&#160;libata Core Internals</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-sata-lpm-ignore-phy-events.html">Prev</a>&#160;</td><th width="60%" align="center">&#160;</th><td width="20%" align="right">&#160;<a accesskey="n" href="API-ata-dev-phys-link.html">Next</a></td></tr></table><hr></div><div class="chapter"><div class="titlepage"><div><div><h1 class="title"><a name="libataInt"></a>Chapter&#160;5.&#160;libata Core Internals</h1></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl class="toc"><dt><span class="refentrytitle"><a href="API-ata-dev-phys-link.html"><span class="phrase">ata_dev_phys_link</span></a></span><span class="refpurpose"> &#8212; 
2  find physical link for a device
3 </span></dt><dt><span class="refentrytitle"><a href="API-ata-force-cbl.html"><span class="phrase">ata_force_cbl</span></a></span><span class="refpurpose"> &#8212; 
4     force cable type according to libata.force
5 </span></dt><dt><span class="refentrytitle"><a href="API-ata-force-link-limits.html"><span class="phrase">ata_force_link_limits</span></a></span><span class="refpurpose"> &#8212; 
6     force link limits according to libata.force
7 </span></dt><dt><span class="refentrytitle"><a href="API-ata-force-xfermask.html"><span class="phrase">ata_force_xfermask</span></a></span><span class="refpurpose"> &#8212; 
8     force xfermask according to libata.force
9 </span></dt><dt><span class="refentrytitle"><a href="API-ata-force-horkage.html"><span class="phrase">ata_force_horkage</span></a></span><span class="refpurpose"> &#8212; 
10     force horkage according to libata.force
11 </span></dt><dt><span class="refentrytitle"><a href="API-ata-rwcmd-protocol.html"><span class="phrase">ata_rwcmd_protocol</span></a></span><span class="refpurpose"> &#8212; 
12     set taskfile r/w commands and protocol
13 </span></dt><dt><span class="refentrytitle"><a href="API-ata-tf-read-block.html"><span class="phrase">ata_tf_read_block</span></a></span><span class="refpurpose"> &#8212; 
14     Read block address from ATA taskfile
15 </span></dt><dt><span class="refentrytitle"><a href="API-ata-build-rw-tf.html"><span class="phrase">ata_build_rw_tf</span></a></span><span class="refpurpose"> &#8212; 
16     Build ATA taskfile for given read/write request
17 </span></dt><dt><span class="refentrytitle"><a href="API-ata-read-native-max-address.html"><span class="phrase">ata_read_native_max_address</span></a></span><span class="refpurpose"> &#8212; 
18     Read native max address
19 </span></dt><dt><span class="refentrytitle"><a href="API-ata-set-max-sectors.html"><span class="phrase">ata_set_max_sectors</span></a></span><span class="refpurpose"> &#8212; 
20     Set max sectors
21 </span></dt><dt><span class="refentrytitle"><a href="API-ata-hpa-resize.html"><span class="phrase">ata_hpa_resize</span></a></span><span class="refpurpose"> &#8212; 
22     Resize a device with an HPA set
23 </span></dt><dt><span class="refentrytitle"><a href="API-ata-dump-id.html"><span class="phrase">ata_dump_id</span></a></span><span class="refpurpose"> &#8212; 
24     IDENTIFY DEVICE info debugging output
25 </span></dt><dt><span class="refentrytitle"><a href="API-ata-exec-internal-sg.html"><span class="phrase">ata_exec_internal_sg</span></a></span><span class="refpurpose"> &#8212; 
26     execute libata internal command
27 </span></dt><dt><span class="refentrytitle"><a href="API-ata-exec-internal.html"><span class="phrase">ata_exec_internal</span></a></span><span class="refpurpose"> &#8212; 
28     execute libata internal command
29 </span></dt><dt><span class="refentrytitle"><a href="API-ata-pio-mask-no-iordy.html"><span class="phrase">ata_pio_mask_no_iordy</span></a></span><span class="refpurpose"> &#8212; 
30     Return the non IORDY mask
31 </span></dt><dt><span class="refentrytitle"><a href="API-ata-dev-read-id.html"><span class="phrase">ata_dev_read_id</span></a></span><span class="refpurpose"> &#8212; 
32     Read ID data from the specified device
33 </span></dt><dt><span class="refentrytitle"><a href="API-ata-dev-configure.html"><span class="phrase">ata_dev_configure</span></a></span><span class="refpurpose"> &#8212; 
34     Configure the specified ATA/ATAPI device
35 </span></dt><dt><span class="refentrytitle"><a href="API-ata-bus-probe.html"><span class="phrase">ata_bus_probe</span></a></span><span class="refpurpose"> &#8212; 
36     Reset and probe ATA bus
37 </span></dt><dt><span class="refentrytitle"><a href="API-sata-print-link-status.html"><span class="phrase">sata_print_link_status</span></a></span><span class="refpurpose"> &#8212; 
38     Print SATA link status
39 </span></dt><dt><span class="refentrytitle"><a href="API-sata-down-spd-limit.html"><span class="phrase">sata_down_spd_limit</span></a></span><span class="refpurpose"> &#8212; 
40     adjust SATA spd limit downward
41 </span></dt><dt><span class="refentrytitle"><a href="API-sata-set-spd-needed.html"><span class="phrase">sata_set_spd_needed</span></a></span><span class="refpurpose"> &#8212; 
42     is SATA spd configuration needed
43 </span></dt><dt><span class="refentrytitle"><a href="API-ata-down-xfermask-limit.html"><span class="phrase">ata_down_xfermask_limit</span></a></span><span class="refpurpose"> &#8212; 
44     adjust dev xfer masks downward
45 </span></dt><dt><span class="refentrytitle"><a href="API-ata-wait-ready.html"><span class="phrase">ata_wait_ready</span></a></span><span class="refpurpose"> &#8212; 
46     wait for link to become ready
47 </span></dt><dt><span class="refentrytitle"><a href="API-ata-dev-same-device.html"><span class="phrase">ata_dev_same_device</span></a></span><span class="refpurpose"> &#8212; 
48     Determine whether new ID matches configured device
49 </span></dt><dt><span class="refentrytitle"><a href="API-ata-dev-reread-id.html"><span class="phrase">ata_dev_reread_id</span></a></span><span class="refpurpose"> &#8212; 
50     Re-read IDENTIFY data
51 </span></dt><dt><span class="refentrytitle"><a href="API-ata-dev-revalidate.html"><span class="phrase">ata_dev_revalidate</span></a></span><span class="refpurpose"> &#8212; 
52     Revalidate ATA device
53 </span></dt><dt><span class="refentrytitle"><a href="API-ata-is-40wire.html"><span class="phrase">ata_is_40wire</span></a></span><span class="refpurpose"> &#8212; 
54     check drive side detection
55 </span></dt><dt><span class="refentrytitle"><a href="API-cable-is-40wire.html"><span class="phrase">cable_is_40wire</span></a></span><span class="refpurpose"> &#8212; 
56     40/80/SATA decider
57 </span></dt><dt><span class="refentrytitle"><a href="API-ata-dev-xfermask.html"><span class="phrase">ata_dev_xfermask</span></a></span><span class="refpurpose"> &#8212; 
58     Compute supported xfermask of the given device
59 </span></dt><dt><span class="refentrytitle"><a href="API-ata-dev-set-xfermode.html"><span class="phrase">ata_dev_set_xfermode</span></a></span><span class="refpurpose"> &#8212; 
60     Issue SET FEATURES - XFER MODE command
61 </span></dt><dt><span class="refentrytitle"><a href="API-ata-dev-init-params.html"><span class="phrase">ata_dev_init_params</span></a></span><span class="refpurpose"> &#8212; 
62     Issue INIT DEV PARAMS command
63 </span></dt><dt><span class="refentrytitle"><a href="API-ata-sg-clean.html"><span class="phrase">ata_sg_clean</span></a></span><span class="refpurpose"> &#8212; 
64     Unmap DMA memory associated with command
65 </span></dt><dt><span class="refentrytitle"><a href="API-atapi-check-dma.html"><span class="phrase">atapi_check_dma</span></a></span><span class="refpurpose"> &#8212; 
66     Check whether ATAPI DMA can be supported
67 </span></dt><dt><span class="refentrytitle"><a href="API-ata-sg-setup.html"><span class="phrase">ata_sg_setup</span></a></span><span class="refpurpose"> &#8212; 
68     DMA-map the scatter-gather table associated with a command.
69 </span></dt><dt><span class="refentrytitle"><a href="API-swap-buf-le16.html"><span class="phrase">swap_buf_le16</span></a></span><span class="refpurpose"> &#8212; 
70     swap halves of 16-bit words in place
71 </span></dt><dt><span class="refentrytitle"><a href="API-ata-qc-new-init.html"><span class="phrase">ata_qc_new_init</span></a></span><span class="refpurpose"> &#8212; 
72     Request an available ATA command, and initialize it
73 </span></dt><dt><span class="refentrytitle"><a href="API-ata-qc-free.html"><span class="phrase">ata_qc_free</span></a></span><span class="refpurpose"> &#8212; 
74     free unused ata_queued_cmd
75 </span></dt><dt><span class="refentrytitle"><a href="API-ata-qc-issue.html"><span class="phrase">ata_qc_issue</span></a></span><span class="refpurpose"> &#8212; 
76     issue taskfile to device
77 </span></dt><dt><span class="refentrytitle"><a href="API-ata-phys-link-online.html"><span class="phrase">ata_phys_link_online</span></a></span><span class="refpurpose"> &#8212; 
78     test whether the given link is online
79 </span></dt><dt><span class="refentrytitle"><a href="API-ata-phys-link-offline.html"><span class="phrase">ata_phys_link_offline</span></a></span><span class="refpurpose"> &#8212; 
80     test whether the given link is offline
81 </span></dt><dt><span class="refentrytitle"><a href="API-ata-dev-init.html"><span class="phrase">ata_dev_init</span></a></span><span class="refpurpose"> &#8212; 
82     Initialize an ata_device structure
83 </span></dt><dt><span class="refentrytitle"><a href="API-ata-link-init.html"><span class="phrase">ata_link_init</span></a></span><span class="refpurpose"> &#8212; 
84     Initialize an ata_link structure
85 </span></dt><dt><span class="refentrytitle"><a href="API-sata-link-init-spd.html"><span class="phrase">sata_link_init_spd</span></a></span><span class="refpurpose"> &#8212; 
86     Initialize link-&gt;sata_spd_limit
87 </span></dt><dt><span class="refentrytitle"><a href="API-ata-port-alloc.html"><span class="phrase">ata_port_alloc</span></a></span><span class="refpurpose"> &#8212; 
88     allocate and initialize basic ATA port resources
89 </span></dt><dt><span class="refentrytitle"><a href="API-ata-finalize-port-ops.html"><span class="phrase">ata_finalize_port_ops</span></a></span><span class="refpurpose"> &#8212; 
90     finalize ata_port_operations
91 </span></dt><dt><span class="refentrytitle"><a href="API-ata-port-detach.html"><span class="phrase">ata_port_detach</span></a></span><span class="refpurpose"> &#8212; 
92     Detach ATA port in prepration of device removal
93 </span></dt></dl></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-sata-lpm-ignore-phy-events.html">Prev</a>&#160;</td><td width="20%" align="center">&#160;</td><td width="40%" align="right">&#160;<a accesskey="n" href="API-ata-dev-phys-link.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">sata_lpm_ignore_phy_events</span>&#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_dev_phys_link</span></td></tr></table></div></body></html>
94