1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>USB 2.0 Chapter 9 Types and Constants</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 3. Kernel Mode Gadget API"><link rel="prev" href="api.html" title="Chapter 3. Kernel Mode Gadget API"><link rel="next" href="API-usb-speed-string.html" title="usb_speed_string"></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">USB 2.0 Chapter 9 Types and Constants</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="api.html">Prev</a> </td><th width="60%" align="center">Chapter 3. Kernel Mode Gadget API</th><td width="20%" align="right"> <a accesskey="n" href="API-usb-speed-string.html">Next</a></td></tr></table><hr></div><div class="sect1"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="ch9"></a>USB 2.0 Chapter 9 Types and Constants</h2></div></div></div><div class="toc"><dl class="toc"><dt><span class="refentrytitle"><a href="API-usb-speed-string.html"><span class="phrase">usb_speed_string</span></a></span><span class="refpurpose"> — 2 Returns human readable-name of the speed. 3 </span></dt><dt><span class="refentrytitle"><a href="API-usb-state-string.html"><span class="phrase">usb_state_string</span></a></span><span class="refpurpose"> — 4 Returns human readable name for the state. 5 </span></dt></dl></div><p>Gadget drivers 6rely on common USB structures and constants 7defined in the 8<code class="filename"><linux/usb/ch9.h></code> 9header file, which is standard in Linux 2.6 kernels. 10These are the same types and constants used by host 11side drivers (and usbcore). 12</p></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="api.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="api.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="API-usb-speed-string.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Chapter 3. Kernel Mode Gadget API </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">usb_speed_string</span></td></tr></table></div></body></html> 13