1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-20 11:11:24 +00:00

MFNetBSD:

revision 1.94
    date: 2001/11/20 13:50:07;  author: augustss;  state: Exp;  lines: +16 -9
    Update for new speed handling.
This commit is contained in:
Josef Karthauser 2002-04-25 12:37:55 +00:00
parent fdab7c18dc
commit cafee33353
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=95442

View File

@ -1,4 +1,4 @@
/* $NetBSD: usb_subr.c,v 1.92 2001/11/16 01:57:47 augustss Exp $ */
/* $NetBSD: usb_subr.c,v 1.94 2001/11/20 13:50:07 augustss Exp $ */
/* $FreeBSD$ */
/*
@ -933,6 +933,7 @@ usbd_new_device(device_ptr_t parent, usbd_bus_handle bus, int depth,
int speed, int port, struct usbd_port *up)
{
usbd_device_handle dev;
struct usbd_device *hub;
usb_device_descriptor_t *dd;
usbd_status err;
int addr;
@ -969,8 +970,14 @@ usbd_new_device(device_ptr_t parent, usbd_bus_handle bus, int depth,
dev->ddesc.bMaxPacketSize = 0;
dev->depth = depth;
dev->powersrc = up;
dev->langid = USBD_NOLANG;
dev->myhub = up->parent;
for (hub = up->parent;
hub != NULL && hub->speed != USB_SPEED_HIGH;
hub = hub->myhub)
;
dev->myhighhub = hub;
dev->speed = speed;
dev->langid = USBD_NOLANG;
dev->cookie.cookie = ++usb_cookie_no;
/* Establish the default pipe. */