cmd_usb.c 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634
  1. /*
  2. * (C) Copyright 2001
  3. * Denis Peter, MPL AG Switzerland
  4. *
  5. * Most of this source has been derived from the Linux USB
  6. * project.
  7. *
  8. * See file CREDITS for list of people who contributed to this
  9. * project.
  10. *
  11. * This program is free software; you can redistribute it and/or
  12. * modify it under the terms of the GNU General Public License as
  13. * published by the Free Software Foundation; either version 2 of
  14. * the License, or (at your option) any later version.
  15. *
  16. * This program is distributed in the hope that it will be useful,
  17. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19. * GNU General Public License for more details.
  20. *
  21. * You should have received a copy of the GNU General Public License
  22. * along with this program; if not, write to the Free Software
  23. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  24. * MA 02111-1307 USA
  25. *
  26. */
  27. #include <common.h>
  28. #include <command.h>
  29. #include <asm/byteorder.h>
  30. #if (CONFIG_COMMANDS & CFG_CMD_USB)
  31. #include <usb.h>
  32. #ifdef CONFIG_USB_STORAGE
  33. static int usb_stor_curr_dev=-1; /* current device */
  34. #endif
  35. /* some display routines (info command) */
  36. char * usb_get_class_desc(unsigned char dclass)
  37. {
  38. switch(dclass) {
  39. case USB_CLASS_PER_INTERFACE:
  40. return("See Interface");
  41. case USB_CLASS_AUDIO:
  42. return("Audio");
  43. case USB_CLASS_COMM:
  44. return("Communication");
  45. case USB_CLASS_HID:
  46. return("Human Interface");
  47. case USB_CLASS_PRINTER:
  48. return("Printer");
  49. case USB_CLASS_MASS_STORAGE:
  50. return("Mass Storage");
  51. case USB_CLASS_HUB:
  52. return("Hub");
  53. case USB_CLASS_DATA:
  54. return("CDC Data");
  55. case USB_CLASS_VENDOR_SPEC:
  56. return("Vendor specific");
  57. default :
  58. return("");
  59. }
  60. }
  61. void usb_display_class_sub(unsigned char dclass,unsigned char subclass,unsigned char proto)
  62. {
  63. switch(dclass) {
  64. case USB_CLASS_PER_INTERFACE:
  65. printf("See Interface");
  66. break;
  67. case USB_CLASS_HID:
  68. printf("Human Interface, Subclass: ");
  69. switch(subclass) {
  70. case USB_SUB_HID_NONE:
  71. printf("None");
  72. break;
  73. case USB_SUB_HID_BOOT:
  74. printf("Boot ");
  75. switch(proto) {
  76. case USB_PROT_HID_NONE:
  77. printf("None");
  78. break;
  79. case USB_PROT_HID_KEYBOARD:
  80. printf("Keyboard");
  81. break;
  82. case USB_PROT_HID_MOUSE:
  83. printf("Mouse");
  84. break;
  85. default:
  86. printf("reserved");
  87. }
  88. break;
  89. default:
  90. printf("reserved");
  91. }
  92. break;
  93. case USB_CLASS_MASS_STORAGE:
  94. printf("Mass Storage, ");
  95. switch(subclass) {
  96. case US_SC_RBC:
  97. printf("RBC ");
  98. break;
  99. case US_SC_8020:
  100. printf("SFF-8020i (ATAPI)");
  101. break;
  102. case US_SC_QIC:
  103. printf("QIC-157 (Tape)");
  104. break;
  105. case US_SC_UFI:
  106. printf("UFI");
  107. break;
  108. case US_SC_8070:
  109. printf("SFF-8070");
  110. break;
  111. case US_SC_SCSI:
  112. printf("Transp. SCSI");
  113. break;
  114. default:
  115. printf("reserved");
  116. break;
  117. }
  118. printf(", ");
  119. switch(proto) {
  120. case US_PR_CB:
  121. printf("Command/Bulk");
  122. break;
  123. case US_PR_CBI:
  124. printf("Command/Bulk/Int");
  125. break;
  126. case US_PR_BULK:
  127. printf("Bulk only");
  128. break;
  129. default:
  130. printf("reserved");
  131. }
  132. break;
  133. default:
  134. printf("%s",usb_get_class_desc(dclass));
  135. }
  136. }
  137. void usb_display_string(struct usb_device *dev,int index)
  138. {
  139. char buffer[256];
  140. if (index!=0) {
  141. if (usb_string(dev,index,&buffer[0],256)>0);
  142. printf("String: \"%s\"",buffer);
  143. }
  144. }
  145. void usb_display_desc(struct usb_device *dev)
  146. {
  147. if (dev->descriptor.bDescriptorType==USB_DT_DEVICE) {
  148. printf("%d: %s, USB Revision %x.%x\n",dev->devnum,usb_get_class_desc(dev->config.if_desc[0].bInterfaceClass),
  149. (dev->descriptor.bcdUSB>>8) & 0xff,dev->descriptor.bcdUSB & 0xff);
  150. if (strlen(dev->mf) || strlen(dev->prod) || strlen(dev->serial))
  151. printf(" - %s %s %s\n",dev->mf,dev->prod,dev->serial);
  152. if (dev->descriptor.bDeviceClass) {
  153. printf(" - Class: ");
  154. usb_display_class_sub(dev->descriptor.bDeviceClass,dev->descriptor.bDeviceSubClass,dev->descriptor.bDeviceProtocol);
  155. printf("\n");
  156. }
  157. else {
  158. printf(" - Class: (from Interface) %s\n",usb_get_class_desc(dev->config.if_desc[0].bInterfaceClass));
  159. }
  160. printf(" - PacketSize: %d Configurations: %d\n",dev->descriptor.bMaxPacketSize0,dev->descriptor.bNumConfigurations);
  161. printf(" - Vendor: 0x%04x Product 0x%04x Version %d.%d\n",dev->descriptor.idVendor,dev->descriptor.idProduct,(dev->descriptor.bcdDevice>>8) & 0xff,dev->descriptor.bcdDevice & 0xff);
  162. }
  163. }
  164. void usb_display_conf_desc(struct usb_config_descriptor *config,struct usb_device *dev)
  165. {
  166. printf(" Configuration: %d\n",config->bConfigurationValue);
  167. printf(" - Interfaces: %d %s%s%dmA\n",config->bNumInterfaces,(config->bmAttributes & 0x40) ? "Self Powered " : "Bus Powered ",
  168. (config->bmAttributes & 0x20) ? "Remote Wakeup " : "",config->MaxPower*2);
  169. if (config->iConfiguration) {
  170. printf(" - ");
  171. usb_display_string(dev,config->iConfiguration);
  172. printf("\n");
  173. }
  174. }
  175. void usb_display_if_desc(struct usb_interface_descriptor *ifdesc,struct usb_device *dev)
  176. {
  177. printf(" Interface: %d\n",ifdesc->bInterfaceNumber);
  178. printf(" - Alternate Settings %d, Endpoints: %d\n",ifdesc->bAlternateSetting,ifdesc->bNumEndpoints);
  179. printf(" - Class ");
  180. usb_display_class_sub(ifdesc->bInterfaceClass,ifdesc->bInterfaceSubClass,ifdesc->bInterfaceProtocol);
  181. printf("\n");
  182. if (ifdesc->iInterface) {
  183. printf(" - ");
  184. usb_display_string(dev,ifdesc->iInterface);
  185. printf("\n");
  186. }
  187. }
  188. void usb_display_ep_desc(struct usb_endpoint_descriptor *epdesc)
  189. {
  190. printf(" - Endpoint %d %s ",epdesc->bEndpointAddress & 0xf,(epdesc->bEndpointAddress & 0x80) ? "In" : "Out");
  191. switch((epdesc->bmAttributes & 0x03))
  192. {
  193. case 0: printf("Control"); break;
  194. case 1: printf("Isochronous"); break;
  195. case 2: printf("Bulk"); break;
  196. case 3: printf("Interrupt"); break;
  197. }
  198. printf(" MaxPacket %d",epdesc->wMaxPacketSize);
  199. if ((epdesc->bmAttributes & 0x03)==0x3)
  200. printf(" Interval %dms",epdesc->bInterval);
  201. printf("\n");
  202. }
  203. /* main routine to diasplay the configs, interfaces and endpoints */
  204. void usb_display_config(struct usb_device *dev)
  205. {
  206. struct usb_config_descriptor *config;
  207. struct usb_interface_descriptor *ifdesc;
  208. struct usb_endpoint_descriptor *epdesc;
  209. int i,ii;
  210. config= &dev->config;
  211. usb_display_conf_desc(config,dev);
  212. for(i=0;i<config->no_of_if;i++) {
  213. ifdesc= &config->if_desc[i];
  214. usb_display_if_desc(ifdesc,dev);
  215. for(ii=0;ii<ifdesc->no_of_ep;ii++) {
  216. epdesc= &ifdesc->ep_desc[ii];
  217. usb_display_ep_desc(epdesc);
  218. }
  219. }
  220. printf("\n");
  221. }
  222. /* shows the device tree recursively */
  223. void usb_show_tree_graph(struct usb_device *dev,char *pre)
  224. {
  225. int i,index;
  226. int has_child,last_child,port;
  227. index=strlen(pre);
  228. printf(" %s",pre);
  229. /* check if the device has connected children */
  230. has_child=0;
  231. for(i=0;i<dev->maxchild;i++) {
  232. if (dev->children[i]!=NULL)
  233. has_child=1;
  234. }
  235. /* check if we are the last one */
  236. last_child=1;
  237. if (dev->parent!=NULL) {
  238. for(i=0;i<dev->parent->maxchild;i++) {
  239. /* search for children */
  240. if (dev->parent->children[i]==dev) {
  241. /* found our pointer, see if we have a little sister */
  242. port=i;
  243. while(i++<dev->parent->maxchild) {
  244. if (dev->parent->children[i]!=NULL) {
  245. /* found a sister */
  246. last_child=0;
  247. break;
  248. } /* if */
  249. } /* while */
  250. } /* device found */
  251. } /* for all children of the parent */
  252. printf("\b+-");
  253. /* correct last child */
  254. if (last_child) {
  255. pre[index-1]=' ';
  256. }
  257. } /* if not root hub */
  258. else
  259. printf(" ");
  260. printf("%d ",dev->devnum);
  261. pre[index++]=' ';
  262. pre[index++]= has_child ? '|' : ' ';
  263. pre[index]=0;
  264. printf(" %s (%s, %dmA)\n",usb_get_class_desc(dev->config.if_desc[0].bInterfaceClass),
  265. dev->slow ? "1.5MBit/s" : "12MBit/s",dev->config.MaxPower * 2);
  266. if (strlen(dev->mf) ||
  267. strlen(dev->prod) ||
  268. strlen(dev->serial))
  269. printf(" %s %s %s %s\n",pre,dev->mf,dev->prod,dev->serial);
  270. printf(" %s\n",pre);
  271. if (dev->maxchild>0) {
  272. for(i=0;i<dev->maxchild;i++) {
  273. if (dev->children[i]!=NULL) {
  274. usb_show_tree_graph(dev->children[i],pre);
  275. pre[index]=0;
  276. }
  277. }
  278. }
  279. }
  280. /* main routine for the tree command */
  281. void usb_show_tree(struct usb_device *dev)
  282. {
  283. char preamble[32];
  284. memset(preamble,0,32);
  285. usb_show_tree_graph(dev,&preamble[0]);
  286. }
  287. /******************************************************************************
  288. * usb boot command intepreter. Derived from diskboot
  289. */
  290. #ifdef CONFIG_USB_STORAGE
  291. int do_usbboot (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
  292. {
  293. char *boot_device = NULL;
  294. char *ep;
  295. int dev, part=1, rcode;
  296. ulong addr, cnt, checksum;
  297. disk_partition_t info;
  298. image_header_t *hdr;
  299. block_dev_desc_t *stor_dev;
  300. switch (argc) {
  301. case 1:
  302. addr = CFG_LOAD_ADDR;
  303. boot_device = getenv ("bootdevice");
  304. break;
  305. case 2:
  306. addr = simple_strtoul(argv[1], NULL, 16);
  307. boot_device = getenv ("bootdevice");
  308. break;
  309. case 3:
  310. addr = simple_strtoul(argv[1], NULL, 16);
  311. boot_device = argv[2];
  312. break;
  313. default:
  314. printf ("Usage:\n%s\n", cmdtp->usage);
  315. return 1;
  316. }
  317. if (!boot_device) {
  318. puts ("\n** No boot device **\n");
  319. return 1;
  320. }
  321. dev = simple_strtoul(boot_device, &ep, 16);
  322. stor_dev=usb_stor_get_dev(dev);
  323. if (stor_dev->type == DEV_TYPE_UNKNOWN) {
  324. printf ("\n** Device %d not available\n", dev);
  325. return 1;
  326. }
  327. if (stor_dev->block_read==NULL) {
  328. printf("storage device not initialized. Use usb scan\n");
  329. return 1;
  330. }
  331. if (*ep) {
  332. if (*ep != ':') {
  333. puts ("\n** Invalid boot device, use `dev[:part]' **\n");
  334. return 1;
  335. }
  336. part = simple_strtoul(++ep, NULL, 16);
  337. }
  338. if (get_partition_info (stor_dev, part, &info)) {
  339. /* try to boot raw .... */
  340. strncpy(&info.type[0], BOOT_PART_TYPE, sizeof(BOOT_PART_TYPE));
  341. strncpy(&info.name[0], "Raw", 4);
  342. info.start=0;
  343. info.blksz=0x200;
  344. info.size=2880;
  345. printf("error reading partinfo...try to boot raw\n");
  346. }
  347. if ((strncmp(info.type, BOOT_PART_TYPE, sizeof(info.type)) != 0) &&
  348. (strncmp(info.type, BOOT_PART_COMP, sizeof(info.type)) != 0)) {
  349. printf ("\n** Invalid partition type \"%.32s\""
  350. " (expect \"" BOOT_PART_TYPE "\")\n",
  351. info.type);
  352. return 1;
  353. }
  354. printf ("\nLoading from USB device %d, partition %d: "
  355. "Name: %.32s Type: %.32s\n",
  356. dev, part, info.name, info.type);
  357. debug ("First Block: %ld, # of blocks: %ld, Block Size: %ld\n",
  358. info.start, info.size, info.blksz);
  359. if (stor_dev->block_read(dev, info.start, 1, (ulong *)addr) != 1) {
  360. printf ("** Read error on %d:%d\n", dev, part);
  361. return 1;
  362. }
  363. hdr = (image_header_t *)addr;
  364. if (ntohl(hdr->ih_magic) != IH_MAGIC) {
  365. printf("\n** Bad Magic Number **\n");
  366. return 1;
  367. }
  368. checksum = ntohl(hdr->ih_hcrc);
  369. hdr->ih_hcrc = 0;
  370. if (crc32 (0, (char *)hdr, sizeof(image_header_t)) != checksum) {
  371. puts ("\n** Bad Header Checksum **\n");
  372. return 1;
  373. }
  374. hdr->ih_hcrc = htonl(checksum); /* restore checksum for later use */
  375. print_image_hdr (hdr);
  376. cnt = (ntohl(hdr->ih_size) + sizeof(image_header_t));
  377. cnt += info.blksz - 1;
  378. cnt /= info.blksz;
  379. cnt -= 1;
  380. if (stor_dev->block_read (dev, info.start+1, cnt,
  381. (ulong *)(addr+info.blksz)) != cnt) {
  382. printf ("\n** Read error on %d:%d\n", dev, part);
  383. return 1;
  384. }
  385. /* Loading ok, update default load address */
  386. load_addr = addr;
  387. flush_cache (addr, (cnt+1)*info.blksz);
  388. /* Check if we should attempt an auto-start */
  389. if (((ep = getenv("autostart")) != NULL) && (strcmp(ep,"yes") == 0)) {
  390. char *local_args[2];
  391. extern int do_bootm (cmd_tbl_t *, int, int, char *[]);
  392. local_args[0] = argv[0];
  393. local_args[1] = NULL;
  394. printf ("Automatic boot of image at addr 0x%08lX ...\n", addr);
  395. rcode=do_bootm (cmdtp, 0, 1, local_args);
  396. return rcode;
  397. }
  398. return 0;
  399. }
  400. #endif /* CONFIG_USB_STORAGE */
  401. /*********************************************************************************
  402. * usb command intepreter
  403. */
  404. int do_usb (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
  405. {
  406. int i;
  407. struct usb_device *dev = NULL;
  408. #ifdef CONFIG_USB_STORAGE
  409. block_dev_desc_t *stor_dev;
  410. #endif
  411. if ((strncmp(argv[1],"reset",5) == 0) ||
  412. (strncmp(argv[1],"start",5) == 0)){
  413. usb_stop();
  414. printf("(Re)start USB...\n");
  415. usb_init();
  416. return 0;
  417. }
  418. if (strncmp(argv[1],"stop",4) == 0) {
  419. #ifdef CONFIG_USB_KEYBOARD
  420. if (argc==2) {
  421. if (usb_kbd_deregister()!=0) {
  422. printf("USB not stopped: usbkbd still using USB\n");
  423. return 1;
  424. }
  425. }
  426. else { /* forced stop, switch console in to serial */
  427. console_assign(stdin,"serial");
  428. usb_kbd_deregister();
  429. }
  430. #endif
  431. printf("stopping USB..\n");
  432. usb_stop();
  433. return 0;
  434. }
  435. if (strncmp(argv[1],"tree",4) == 0) {
  436. printf("\nDevice Tree:\n");
  437. usb_show_tree(usb_get_dev_index(0));
  438. return 0;
  439. }
  440. if (strncmp(argv[1],"inf",3) == 0) {
  441. int d;
  442. if (argc==2) {
  443. for(d=0;d<USB_MAX_DEVICE;d++) {
  444. dev=usb_get_dev_index(d);
  445. if (dev==NULL)
  446. break;
  447. usb_display_desc(dev);
  448. usb_display_config(dev);
  449. }
  450. return 0;
  451. }
  452. else {
  453. int d;
  454. i=simple_strtoul(argv[2], NULL, 16);
  455. printf("config for device %d\n",i);
  456. for(d=0;d<USB_MAX_DEVICE;d++) {
  457. dev=usb_get_dev_index(d);
  458. if (dev==NULL)
  459. break;
  460. if (dev->devnum==i)
  461. break;
  462. }
  463. if (dev==NULL) {
  464. printf("*** NO Device avaiable ***\n");
  465. return 0;
  466. }
  467. else {
  468. usb_display_desc(dev);
  469. usb_display_config(dev);
  470. }
  471. }
  472. return 0;
  473. }
  474. #ifdef CONFIG_USB_STORAGE
  475. if (strncmp(argv[1],"scan",4) == 0) {
  476. printf("Scan for storage device:\n");
  477. usb_stor_curr_dev=usb_stor_scan(1);
  478. if (usb_stor_curr_dev==-1) {
  479. printf("No device found. Not initialized?\n");
  480. return 1;
  481. }
  482. return 0;
  483. }
  484. if (strncmp(argv[1],"part",4) == 0) {
  485. int devno, ok;
  486. for (ok=0, devno=0; devno<USB_MAX_STOR_DEV; ++devno) {
  487. stor_dev=usb_stor_get_dev(devno);
  488. if (stor_dev->type!=DEV_TYPE_UNKNOWN) {
  489. ok++;
  490. if (devno)
  491. printf("\n");
  492. printf("print_part of %x\n",devno);
  493. print_part(stor_dev);
  494. }
  495. }
  496. if (!ok) {
  497. printf("\nno USB devices available\n");
  498. return 1;
  499. }
  500. return 0;
  501. }
  502. if (strcmp(argv[1],"read") == 0) {
  503. if (usb_stor_curr_dev<0) {
  504. printf("no current device selected\n");
  505. return 1;
  506. }
  507. if (argc==5) {
  508. unsigned long addr = simple_strtoul(argv[2], NULL, 16);
  509. unsigned long blk = simple_strtoul(argv[3], NULL, 16);
  510. unsigned long cnt = simple_strtoul(argv[4], NULL, 16);
  511. unsigned long n;
  512. printf ("\nUSB read: device %d block # %ld, count %ld ... ",
  513. usb_stor_curr_dev, blk, cnt);
  514. stor_dev=usb_stor_get_dev(usb_stor_curr_dev);
  515. n = stor_dev->block_read(usb_stor_curr_dev, blk, cnt, (ulong *)addr);
  516. printf ("%ld blocks read: %s\n",n,(n==cnt) ? "OK" : "ERROR");
  517. if (n==cnt)
  518. return 0;
  519. return 1;
  520. }
  521. }
  522. if (strcmp(argv[1],"dev") == 0) {
  523. if (argc==3) {
  524. int dev = (int)simple_strtoul(argv[2], NULL, 10);
  525. printf ("\nUSB device %d: ", dev);
  526. if (dev >= USB_MAX_STOR_DEV) {
  527. printf("unknown device\n");
  528. return 1;
  529. }
  530. printf ("\n Device %d: ", dev);
  531. stor_dev=usb_stor_get_dev(dev);
  532. dev_print(stor_dev);
  533. if (stor_dev->type == DEV_TYPE_UNKNOWN) {
  534. return 1;
  535. }
  536. usb_stor_curr_dev = dev;
  537. printf("... is now current device\n");
  538. return 0;
  539. }
  540. else {
  541. printf ("\nUSB device %d: ", usb_stor_curr_dev);
  542. stor_dev=usb_stor_get_dev(usb_stor_curr_dev);
  543. dev_print(stor_dev);
  544. if (stor_dev->type == DEV_TYPE_UNKNOWN) {
  545. return 1;
  546. }
  547. return 0;
  548. }
  549. return 0;
  550. }
  551. #endif /* CONFIG_USB_STORAGE */
  552. printf ("Usage:\n%s\n", cmdtp->usage);
  553. return 1;
  554. }
  555. #endif /* (CONFIG_COMMANDS & CFG_CMD_USB) */
  556. #if (CONFIG_COMMANDS & CFG_CMD_USB)
  557. #ifdef CONFIG_USB_STORAGE
  558. U_BOOT_CMD(
  559. usb, 5, 1, do_usb,
  560. "usb - USB sub-system\n",
  561. "reset - reset (rescan) USB controller\n"
  562. "usb stop [f] - stop USB [f]=force stop\n"
  563. "usb tree - show USB device tree\n"
  564. "usb info [dev] - show available USB devices\n"
  565. "usb scan - (re-)scan USB bus for storage devices\n"
  566. "usb device [dev] - show or set current USB storage device\n"
  567. "usb part [dev] - print partition table of one or all USB storage devices\n"
  568. "usb read addr blk# cnt - read `cnt' blocks starting at block `blk#'\n"
  569. " to memory address `addr'\n"
  570. );
  571. U_BOOT_CMD(
  572. usbboot, 3, 1, do_usbboot,
  573. "usbboot - boot from USB device\n",
  574. "loadAddr dev:part\n"
  575. );
  576. #else
  577. U_BOOT_CMD(
  578. usb, 5, 1, do_usb,
  579. "usb - USB sub-system\n",
  580. "reset - reset (rescan) USB controller\n"
  581. "usb tree - show USB device tree\n"
  582. "usb info [dev] - show available USB devices\n"
  583. );
  584. #endif
  585. #endif