usb_template.c (227461) | usb_template.c (228304) |
---|---|
1/* $FreeBSD: head/sys/dev/usb/template/usb_template.c 227461 2011-11-12 08:16:45Z hselasky $ */ | 1/* $FreeBSD: head/sys/dev/usb/template/usb_template.c 228304 2011-12-06 08:08:52Z hselasky $ */ |
2/*- 3 * Copyright (c) 2007 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. --- 245 unchanged lines hidden (view full) --- 255 break; 256 case UE_INTERRUPT: 257 switch (temp->usb_speed) { 258 case USB_SPEED_LOW: 259 case USB_SPEED_FULL: 260 ed->bInterval = 1; /* 1 ms */ 261 break; 262 default: | 2/*- 3 * Copyright (c) 2007 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. --- 245 unchanged lines hidden (view full) --- 255 break; 256 case UE_INTERRUPT: 257 switch (temp->usb_speed) { 258 case USB_SPEED_LOW: 259 case USB_SPEED_FULL: 260 ed->bInterval = 1; /* 1 ms */ 261 break; 262 default: |
263 ed->bInterval = 8; /* 8*125 us */ | 263 ed->bInterval = 4; /* 1 ms */ |
264 break; 265 } 266 break; 267 default: /* UE_ISOCHRONOUS */ 268 switch (temp->usb_speed) { 269 case USB_SPEED_LOW: 270 case USB_SPEED_FULL: 271 ed->bInterval = 1; /* 1 ms */ --- 1103 unchanged lines hidden --- | 264 break; 265 } 266 break; 267 default: /* UE_ISOCHRONOUS */ 268 switch (temp->usb_speed) { 269 case USB_SPEED_LOW: 270 case USB_SPEED_FULL: 271 ed->bInterval = 1; /* 1 ms */ --- 1103 unchanged lines hidden --- |