Deleted Added
full compact
ehci_pci.c (236069) ehci_pci.c (236073)
1/*-
2 * Copyright (c) 1998 The NetBSD Foundation, Inc.
3 * All rights reserved.
4 *
5 * This code is derived from software contributed to The NetBSD Foundation
6 * by Lennart Augustsson (augustss@carlstedt.se) at
7 * Carlstedt Research & Technology.
8 *

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

24 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28 * POSSIBILITY OF SUCH DAMAGE.
29 */
30
31#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1998 The NetBSD Foundation, Inc.
3 * All rights reserved.
4 *
5 * This code is derived from software contributed to The NetBSD Foundation
6 * by Lennart Augustsson (augustss@carlstedt.se) at
7 * Carlstedt Research & Technology.
8 *

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

24 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28 * POSSIBILITY OF SUCH DAMAGE.
29 */
30
31#include <sys/cdefs.h>
32__FBSDID("$FreeBSD: head/sys/dev/usb/controller/ehci_pci.c 236069 2012-05-26 08:31:12Z marius $");
32__FBSDID("$FreeBSD: head/sys/dev/usb/controller/ehci_pci.c 236073 2012-05-26 08:43:51Z marius $");
33
34/*
35 * USB Enhanced Host Controller Driver, a.k.a. USB 2.0 controller.
36 *
37 * The EHCI 1.0 spec can be found at
38 * http://developer.intel.com/technology/usb/download/ehci-r10.pdf
39 * and the USB 2.0 spec at
40 * http://www.usb.org/developers/docs/usb_20.zip

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

238 uint32_t val;
239
240 if ((pci_get_device(self) == 0x3104) &&
241 ((pci_get_revid(self) & 0xf0) == 0x60)) {
242 /* Correct schedule sleep time to 10us */
243 val = pci_read_config(self, 0x4b, 1);
244 if (val & 0x20)
245 return;
33
34/*
35 * USB Enhanced Host Controller Driver, a.k.a. USB 2.0 controller.
36 *
37 * The EHCI 1.0 spec can be found at
38 * http://developer.intel.com/technology/usb/download/ehci-r10.pdf
39 * and the USB 2.0 spec at
40 * http://www.usb.org/developers/docs/usb_20.zip

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

238 uint32_t val;
239
240 if ((pci_get_device(self) == 0x3104) &&
241 ((pci_get_revid(self) & 0xf0) == 0x60)) {
242 /* Correct schedule sleep time to 10us */
243 val = pci_read_config(self, 0x4b, 1);
244 if (val & 0x20)
245 return;
246 pci_write_config(self, 0x4b, val | 0x20, 1);
246 val |= 0x20;
247 pci_write_config(self, 0x4b, val, 1);
247 device_printf(self, "VIA-quirk applied\n");
248 }
249}
250
251static int
252ehci_pci_attach(device_t self)
253{
254 ehci_softc_t *sc = device_get_softc(self);

--- 304 unchanged lines hidden ---
248 device_printf(self, "VIA-quirk applied\n");
249 }
250}
251
252static int
253ehci_pci_attach(device_t self)
254{
255 ehci_softc_t *sc = device_get_softc(self);

--- 304 unchanged lines hidden ---