summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/usb_hub.h
diff options
context:
space:
mode:
authorthompsa <thompsa@FreeBSD.org>2009-05-21 00:04:17 +0000
committerthompsa <thompsa@FreeBSD.org>2009-05-21 00:04:17 +0000
commit6493599dffcf59452030c317e21e1777f4087498 (patch)
tree3eff09d6b64c2439f2bb8e9d4a3aad08d336b07d /sys/dev/usb/usb_hub.h
parentb9afde5728c1d132c1a6fcaf299551d590daed53 (diff)
downloadFreeBSD-src-6493599dffcf59452030c317e21e1777f4087498.zip
FreeBSD-src-6493599dffcf59452030c317e21e1777f4087498.tar.gz
- rename usb2_mode to usb_mode [1]
- change variable types to use the enum Submitted by: Hans Petter Selasky [1]
Diffstat (limited to 'sys/dev/usb/usb_hub.h')
-rw-r--r--sys/dev/usb/usb_hub.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/usb/usb_hub.h b/sys/dev/usb/usb_hub.h
index 0c8905d..74df2b9 100644
--- a/sys/dev/usb/usb_hub.h
+++ b/sys/dev/usb/usb_hub.h
@@ -34,8 +34,7 @@ struct usb2_port {
uint8_t restartcnt;
#define USB_RESTART_MAX 5
uint8_t device_index; /* zero means not valid */
- uint8_t usb2_mode:1; /* current USB mode */
- uint8_t unused:7;
+ enum usb_hc_mode usb_mode; /* host or device mode */
};
/*
OpenPOWER on IntegriCloud