usb_device.h (190180) | usb_device.h (190181) |
---|---|
1/* $FreeBSD: head/sys/dev/usb/usb_device.h 190180 2009-03-20 21:48:11Z thompsa $ */ | 1/* $FreeBSD: head/sys/dev/usb/usb_device.h 190181 2009-03-20 21:50:54Z thompsa $ */ |
2/*- 3 * Copyright (c) 2008 Hans Petter Selasky. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright 9 * notice, this list of conditions and the following disclaimer. --- 72 unchanged lines hidden (view full) --- 82 uint8_t uq_power_claim:1; /* set if power claim quirk is present */ 83}; 84 85/* 86 * The following structure is used for power-save purposes. The data 87 * in this structure is protected by the USB BUS lock. 88 */ 89struct usb2_power_save { | 2/*- 3 * Copyright (c) 2008 Hans Petter Selasky. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright 9 * notice, this list of conditions and the following disclaimer. --- 72 unchanged lines hidden (view full) --- 82 uint8_t uq_power_claim:1; /* set if power claim quirk is present */ 83}; 84 85/* 86 * The following structure is used for power-save purposes. The data 87 * in this structure is protected by the USB BUS lock. 88 */ 89struct usb2_power_save { |
90 int last_xfer_time; /* copy of "ticks" */ 91 uint32_t type_refs[4]; /* transfer reference count */ 92 uint32_t read_refs; /* data read references */ 93 uint32_t write_refs; /* data write references */ | 90 usb2_ticks_t last_xfer_time; /* copy of "ticks" */ 91 usb2_size_t type_refs[4]; /* transfer reference count */ 92 usb2_size_t read_refs; /* data read references */ 93 usb2_size_t write_refs; /* data write references */ |
94 uint8_t suspended; /* set if USB device is suspended */ 95}; 96 97/* 98 * The following structure defines an USB device. There exists one of 99 * these structures for every USB device. 100 */ 101struct usb2_device { --- 21 unchanged lines hidden (view full) --- 123 struct usb2_pipe *pipe_curr; /* current clear stall pipe */ 124 struct usb2_fifo *fifo[USB_FIFO_MAX]; 125 126 char ugen_name[20]; /* name of ugenX.X device */ 127 struct usb2_symlink *ugen_symlink; /* our generic symlink */ 128 129 LIST_HEAD(,usb2_fs_privdata) pd_list; 130 | 94 uint8_t suspended; /* set if USB device is suspended */ 95}; 96 97/* 98 * The following structure defines an USB device. There exists one of 99 * these structures for every USB device. 100 */ 101struct usb2_device { --- 21 unchanged lines hidden (view full) --- 123 struct usb2_pipe *pipe_curr; /* current clear stall pipe */ 124 struct usb2_fifo *fifo[USB_FIFO_MAX]; 125 126 char ugen_name[20]; /* name of ugenX.X device */ 127 struct usb2_symlink *ugen_symlink; /* our generic symlink */ 128 129 LIST_HEAD(,usb2_fs_privdata) pd_list; 130 |
131 uint32_t plugtime; /* copy of "ticks" */ | 131 usb2_ticks_t plugtime; /* copy of "ticks" */ |
132 133 uint16_t refcount; 134#define USB_DEV_REF_MAX 0xffff 135 136 uint16_t power; /* mA the device uses */ 137 uint16_t langid; /* language for strings */ 138 139 uint8_t address; /* device addess */ --- 59 unchanged lines hidden --- | 132 133 uint16_t refcount; 134#define USB_DEV_REF_MAX 0xffff 135 136 uint16_t power; /* mA the device uses */ 137 uint16_t langid; /* language for strings */ 138 139 uint8_t address; /* device addess */ --- 59 unchanged lines hidden --- |