Add comments.
This commit is contained in:
parent
5a91238d5f
commit
98347a7628
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: usbdivar.h,v 1.42 1999/11/20 00:57:10 augustss Exp $ */
|
/* $NetBSD: usbdivar.h,v 1.43 2000/01/16 09:43:43 augustss Exp $ */
|
||||||
/* $FreeBSD: src/sys/dev/usb/usbdivar.h,v 1.11 1999/11/17 22:33:51 n_hibma Exp $ */
|
/* $FreeBSD: src/sys/dev/usb/usbdivar.h,v 1.11 1999/11/17 22:33:51 n_hibma Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -114,26 +114,26 @@ struct usbd_bus {
|
||||||
};
|
};
|
||||||
|
|
||||||
struct usbd_device {
|
struct usbd_device {
|
||||||
struct usbd_bus *bus;
|
struct usbd_bus *bus; /* our controller */
|
||||||
struct usbd_pipe *default_pipe;
|
struct usbd_pipe *default_pipe; /* pipe 0 */
|
||||||
u_int8_t address;
|
u_int8_t address; /* device addess */
|
||||||
u_int8_t depth;
|
u_int8_t config; /* current configuration # */
|
||||||
u_int8_t lowspeed;
|
u_int8_t depth; /* distance from root hub */
|
||||||
u_int16_t power;
|
u_int8_t lowspeed; /* lowspeed flag */
|
||||||
u_int8_t self_powered;
|
u_int8_t self_powered; /* flag for self powered */
|
||||||
int config;
|
u_int16_t power; /* mA the device uses */
|
||||||
int langid; /* language to use for strings */
|
int16_t langid; /* language for strings */
|
||||||
#define USBD_NOLANG (-1)
|
#define USBD_NOLANG (-1)
|
||||||
usb_event_cookie_t cookie; /* unique connection id */
|
usb_event_cookie_t cookie; /* unique connection id */
|
||||||
struct usbd_port *powersrc;
|
struct usbd_port *powersrc; /* upstream hub port, or 0 */
|
||||||
struct usbd_endpoint def_ep; /* for pipe 0 */
|
struct usbd_endpoint def_ep; /* for pipe 0 */
|
||||||
usb_endpoint_descriptor_t def_ep_desc; /* for pipe 0 */
|
usb_endpoint_descriptor_t def_ep_desc; /* for pipe 0 */
|
||||||
struct usbd_interface *ifaces;
|
struct usbd_interface *ifaces; /* array of all interfaces */
|
||||||
usb_device_descriptor_t ddesc;
|
usb_device_descriptor_t ddesc; /* device descriptor */
|
||||||
usb_config_descriptor_t *cdesc; /* full config descr */
|
usb_config_descriptor_t *cdesc; /* full config descr */
|
||||||
struct usbd_quirks *quirks;
|
struct usbd_quirks *quirks; /* device quirks, always set */
|
||||||
struct usbd_hub *hub; /* only if this is a hub */
|
struct usbd_hub *hub; /* only if this is a hub */
|
||||||
device_ptr_t *subdevs; /* sub-devices, 0 terminated */
|
device_ptr_t *subdevs; /* sub-devices, 0 terminated */
|
||||||
};
|
};
|
||||||
|
|
||||||
struct usbd_interface {
|
struct usbd_interface {
|
||||||
|
|
Loading…
Reference in New Issue