Deleted Added
full compact
usb_template_modem.c (223467) usb_template_modem.c (228304)
1#include <sys/cdefs.h>
1#include <sys/cdefs.h>
2__FBSDID("$FreeBSD: head/sys/dev/usb/template/usb_template_modem.c 223467 2011-06-23 07:54:03Z hselasky $");
2__FBSDID("$FreeBSD: head/sys/dev/usb/template/usb_template_modem.c 228304 2011-12-06 08:08:52Z hselasky $");
3
4/*-
5 * Copyright (c) 2010 Hans Petter Selasky. All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
9 * are met:
10 * 1. Redistributions of source code must retain the above copyright

--- 82 unchanged lines hidden (view full) ---

93
94static const struct usb_temp_packet_size modem_intr_mps = {
95 .mps[USB_SPEED_LOW] = 8,
96 .mps[USB_SPEED_FULL] = 8,
97 .mps[USB_SPEED_HIGH] = 8,
98};
99
100static const struct usb_temp_interval modem_intr_interval = {
3
4/*-
5 * Copyright (c) 2010 Hans Petter Selasky. All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
9 * are met:
10 * 1. Redistributions of source code must retain the above copyright

--- 82 unchanged lines hidden (view full) ---

93
94static const struct usb_temp_packet_size modem_intr_mps = {
95 .mps[USB_SPEED_LOW] = 8,
96 .mps[USB_SPEED_FULL] = 8,
97 .mps[USB_SPEED_HIGH] = 8,
98};
99
100static const struct usb_temp_interval modem_intr_interval = {
101 .bInterval[USB_SPEED_LOW] = 10,
102 .bInterval[USB_SPEED_FULL] = 10,
103 .bInterval[USB_SPEED_HIGH] = 10 * 8,
101 .bInterval[USB_SPEED_LOW] = 8, /* 8ms */
102 .bInterval[USB_SPEED_FULL] = 8, /* 8ms */
103 .bInterval[USB_SPEED_HIGH] = 7, /* 8ms */
104};
105
106static const struct usb_temp_endpoint_desc modem_ep_0 = {
107 .pPacketSize = &modem_intr_mps,
108 .pIntervals = &modem_intr_interval,
109 .bEndpointAddress = UE_DIR_IN,
110 .bmAttributes = UE_INTERRUPT,
111};

--- 141 unchanged lines hidden ---
104};
105
106static const struct usb_temp_endpoint_desc modem_ep_0 = {
107 .pPacketSize = &modem_intr_mps,
108 .pIntervals = &modem_intr_interval,
109 .bEndpointAddress = UE_DIR_IN,
110 .bmAttributes = UE_INTERRUPT,
111};

--- 141 unchanged lines hidden ---