Sophie

Sophie

distrib > Fedora > 18 > x86_64 > media > updates > by-pkgid > 1a595394b241504ff370a8d12ebfcea7 > files > 2188

kernel-doc-3.11.10-100.fc18.noarch.rpm

<?xml version="1.0" encoding="ANSI_X3.4-1968" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968" /><title>Composite Device Framework</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1" /><link rel="home" href="index.html" title="USB Gadget API for Linux" /><link rel="up" href="api.html" title="Chapter&#160;3.&#160;Kernel Mode Gadget API" /><link rel="prev" href="API-usb-copy-descriptors.html" title="usb_copy_descriptors" /><link rel="next" href="API-struct-usb-function.html" title="struct usb_function" /></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Composite Device Framework</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-usb-copy-descriptors.html">Prev</a>&#160;</td><th width="60%" align="center">Chapter&#160;3.&#160;Kernel Mode Gadget API</th><td width="20%" align="right">&#160;<a accesskey="n" href="API-struct-usb-function.html">Next</a></td></tr></table><hr /></div><div class="sect1"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="composite"></a>Composite Device Framework</h2></div></div></div><div class="toc"><dl class="toc"><dt><span class="refentrytitle"><a href="API-struct-usb-function.html"><span class="phrase">struct usb_function</span></a></span><span class="refpurpose"> &#8212; 
  describes one function of a configuration
 </span></dt><dt><span class="refentrytitle"><a href="API-struct-usb-configuration.html"><span class="phrase">struct usb_configuration</span></a></span><span class="refpurpose"> &#8212; 
     represents one gadget configuration
 </span></dt><dt><span class="refentrytitle"><a href="API-struct-usb-composite-driver.html"><span class="phrase">struct usb_composite_driver</span></a></span><span class="refpurpose"> &#8212; 
     groups configurations into a gadget
 </span></dt><dt><span class="refentrytitle"><a href="API-struct-usb-composite-dev.html"><span class="phrase">struct usb_composite_dev</span></a></span><span class="refpurpose"> &#8212; 
     represents one composite usb gadget
 </span></dt><dt><span class="refentrytitle"><a href="API-config-ep-by-speed.html"><span class="phrase">config_ep_by_speed</span></a></span><span class="refpurpose"> &#8212; 
  configures the given endpoint according to gadget speed.
 </span></dt><dt><span class="refentrytitle"><a href="API-usb-add-function.html"><span class="phrase">usb_add_function</span></a></span><span class="refpurpose"> &#8212; 
     add a function to a configuration
 </span></dt><dt><span class="refentrytitle"><a href="API-usb-function-deactivate.html"><span class="phrase">usb_function_deactivate</span></a></span><span class="refpurpose"> &#8212; 
     prevent function and gadget enumeration
 </span></dt><dt><span class="refentrytitle"><a href="API-usb-function-activate.html"><span class="phrase">usb_function_activate</span></a></span><span class="refpurpose"> &#8212; 
     allow function and gadget enumeration
 </span></dt><dt><span class="refentrytitle"><a href="API-usb-interface-id.html"><span class="phrase">usb_interface_id</span></a></span><span class="refpurpose"> &#8212; 
     allocate an unused interface ID
 </span></dt><dt><span class="refentrytitle"><a href="API-usb-add-config.html"><span class="phrase">usb_add_config</span></a></span><span class="refpurpose"> &#8212; 
     add a configuration to a device.
 </span></dt><dt><span class="refentrytitle"><a href="API-usb-string-id.html"><span class="phrase">usb_string_id</span></a></span><span class="refpurpose"> &#8212; 
     allocate an unused string ID
 </span></dt><dt><span class="refentrytitle"><a href="API-usb-string-ids-tab.html"><span class="phrase">usb_string_ids_tab</span></a></span><span class="refpurpose"> &#8212; 
     allocate unused string IDs in batch
 </span></dt><dt><span class="refentrytitle"><a href="API-usb-gstrings-attach.html"><span class="phrase">usb_gstrings_attach</span></a></span><span class="refpurpose"> &#8212; 
     attach gadget strings to a cdev and assign ids
 </span></dt><dt><span class="refentrytitle"><a href="API-usb-string-ids-n.html"><span class="phrase">usb_string_ids_n</span></a></span><span class="refpurpose"> &#8212; 
     allocate unused string IDs in batch
 </span></dt><dt><span class="refentrytitle"><a href="API-usb-composite-probe.html"><span class="phrase">usb_composite_probe</span></a></span><span class="refpurpose"> &#8212; 
     register a composite driver
 </span></dt><dt><span class="refentrytitle"><a href="API-usb-composite-unregister.html"><span class="phrase">usb_composite_unregister</span></a></span><span class="refpurpose"> &#8212; 
     unregister a composite driver
 </span></dt><dt><span class="refentrytitle"><a href="API-usb-composite-setup-continue.html"><span class="phrase">usb_composite_setup_continue</span></a></span><span class="refpurpose"> &#8212; 
     Continue with the control transfer
 </span></dt></dl></div><p>The core API is sufficient for writing drivers for composite
USB devices (with more than one function in a given configuration),
and also multi-configuration devices (also more than one function,
but not necessarily sharing a given configuration).
There is however an optional framework which makes it easier to
reuse and combine functions.
</p><p>Devices using this framework provide a <span class="emphasis"><em>struct
usb_composite_driver</em></span>, which in turn provides one or
more <span class="emphasis"><em>struct usb_configuration</em></span> instances.
Each such configuration includes at least one
<span class="emphasis"><em>struct usb_function</em></span>, which packages a user
visible role such as "network link" or "mass storage device".
Management functions may also exist, such as "Device Firmware
Upgrade".
</p></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-usb-copy-descriptors.html">Prev</a>&#160;</td><td width="20%" align="center"><a accesskey="u" href="api.html">Up</a></td><td width="40%" align="right">&#160;<a accesskey="n" href="API-struct-usb-function.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">usb_copy_descriptors</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">struct usb_function</span></td></tr></table></div></body></html>