X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=include%2Fusb.h;h=80cb8467203047cc34d1d518ab114c8e2ac831eb;hb=6786ce1ce14feb4d02854a0c04bc0cce505be46e;hp=f032de8af93237e683b0bef7014b76bf6c03340d;hpb=185f812c419f1b4f0d10d9787d59cf9f11a2a600;p=platform%2Fkernel%2Fu-boot.git diff --git a/include/usb.h b/include/usb.h index f032de8..80cb846 100644 --- a/include/usb.h +++ b/include/usb.h @@ -163,7 +163,8 @@ struct int_queue; */ enum usb_init_type { USB_INIT_HOST, - USB_INIT_DEVICE + USB_INIT_DEVICE, + USB_INIT_UNKNOWN, }; /********************************************************************** @@ -808,21 +809,6 @@ struct dm_usb_ops { #define usb_get_emul_ops(dev) ((struct dm_usb_ops *)(dev)->driver->ops) /** - * usb_get_dev_index() - look up a device index number - * - * Look up devices using their index number (starting at 0). This works since - * in U-Boot device addresses are allocated starting at 1 with no gaps. - * - * TODO(sjg@chromium.org): Remove this function when usb_ether.c is modified - * to work better with driver model. - * - * @bus: USB bus to check - * @index: Index number of device to find (0=first). This is just the - * device address less 1. - */ -struct usb_device *usb_get_dev_index(struct udevice *bus, int index); - -/** * usb_setup_device() - set up a device ready for use * * @dev: USB device pointer. This need not be a real device - it is