Skip to content
Snippets Groups Projects
Select Git revision
1 result Searching

omap_hsmmc.c

Blame
  • Forked from Reform / reform-boundary-uboot
    Source project has a limited visibility.
    cmd_usb.c 17.87 KiB
    /*
     * (C) Copyright 2001
     * Denis Peter, MPL AG Switzerland
     *
     * Most of this source has been derived from the Linux USB
     * project.
     *
     * See file CREDITS for list of people who contributed to this
     * project.
     *
     * This program is free software; you can redistribute it and/or
     * modify it under the terms of the GNU General Public License as
     * published by the Free Software Foundation; either version 2 of
     * the License, or (at your option) any later version.
     *
     * This program is distributed in the hope that it will be useful,
     * but WITHOUT ANY WARRANTY; without even the implied warranty of
     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     * GNU General Public License for more details.
     *
     * You should have received a copy of the GNU General Public License
     * along with this program; if not, write to the Free Software
     * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
     * MA 02111-1307 USA
     *
     */
    
    #include <common.h>
    #include <command.h>
    #include <asm/byteorder.h>
    #include <part.h>
    #include <usb.h>
    
    #ifdef CONFIG_USB_STORAGE
    static int usb_stor_curr_dev = -1; /* current device */
    #endif
    
    /* some display routines (info command) */
    char *usb_get_class_desc(unsigned char dclass)
    {
    	switch (dclass) {
    	case USB_CLASS_PER_INTERFACE:
    		return "See Interface";
    	case USB_CLASS_AUDIO:
    		return "Audio";
    	case USB_CLASS_COMM:
    		return "Communication";
    	case USB_CLASS_HID:
    		return "Human Interface";
    	case USB_CLASS_PRINTER:
    		return "Printer";
    	case USB_CLASS_MASS_STORAGE:
    		return "Mass Storage";
    	case USB_CLASS_HUB:
    		return "Hub";
    	case USB_CLASS_DATA:
    		return "CDC Data";
    	case USB_CLASS_VENDOR_SPEC:
    		return "Vendor specific";
    	default:
    		return "";
    	}
    }
    
    void usb_display_class_sub(unsigned char dclass, unsigned char subclass,
    			   unsigned char proto)
    {
    	switch (dclass) {
    	case USB_CLASS_PER_INTERFACE:
    		printf("See Interface");