Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb Make sure to read the full hub descriptor (inclu...
details: https://anonhg.NetBSD.org/src/rev/5b1b51f45e93
branches: trunk
changeset: 485194:5b1b51f45e93
user: augustss <augustss%NetBSD.org@localhost>
date: Fri Apr 21 18:57:40 2000 +0000
description:
Make sure to read the full hub descriptor (including the deprecated field).
diffstat:
sys/dev/usb/usb.h | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (21 lines):
diff -r d2b909172248 -r 5b1b51f45e93 sys/dev/usb/usb.h
--- a/sys/dev/usb/usb.h Fri Apr 21 18:37:20 2000 +0000
+++ b/sys/dev/usb/usb.h Fri Apr 21 18:57:40 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: usb.h,v 1.45 2000/04/21 16:01:31 augustss Exp $ */
+/* $NetBSD: usb.h,v 1.46 2000/04/21 18:57:40 augustss Exp $ */
/* $FreeBSD: src/sys/dev/usb/usb.h,v 1.14 1999/11/17 22:33:46 n_hibma Exp $ */
/*
@@ -298,9 +298,9 @@
uByte DeviceRemovable[32]; /* max 255 ports */
#define UHD_NOT_REMOV(desc, i) \
(((desc)->DeviceRemovable[(i)/8] >> ((i) % 8)) & 1)
- /* deprecated uByte PortPowerCtrlMask[]; */
+ /* deprecated */ uByte PortPowerCtrlMask[1];
} usb_hub_descriptor_t;
-#define USB_HUB_DESCRIPTOR_SIZE 8
+#define USB_HUB_DESCRIPTOR_SIZE 9 /* includes deprecated PortPowerCtrlMask */
typedef struct {
uWord wStatus;
Home |
Main Index |
Thread Index |
Old Index