ehci.h (198151) | ehci.h (199058) |
---|---|
1/* $FreeBSD: head/sys/dev/usb/controller/ehci.h 198151 2009-10-15 20:07:08Z thompsa $ */ | 1/* $FreeBSD: head/sys/dev/usb/controller/ehci.h 199058 2009-11-08 20:51:15Z thompsa $ */ |
2/*- 3 * Copyright (c) 2001 The NetBSD Foundation, Inc. 4 * All rights reserved. 5 * 6 * This code is derived from software contributed to The NetBSD Foundation 7 * by Lennart Augustsson (lennart@augustsson.net). 8 * 9 * Redistribution and use in source and binary forms, with or without --- 306 unchanged lines hidden (view full) --- 316 struct usb_hub_descriptor hubd; 317 uint8_t temp[128]; 318}; 319 320typedef struct ehci_softc { 321 struct ehci_hw_softc sc_hw; 322 struct usb_bus sc_bus; /* base device */ 323 struct usb_callout sc_tmo_pcd; | 2/*- 3 * Copyright (c) 2001 The NetBSD Foundation, Inc. 4 * All rights reserved. 5 * 6 * This code is derived from software contributed to The NetBSD Foundation 7 * by Lennart Augustsson (lennart@augustsson.net). 8 * 9 * Redistribution and use in source and binary forms, with or without --- 306 unchanged lines hidden (view full) --- 316 struct usb_hub_descriptor hubd; 317 uint8_t temp[128]; 318}; 319 320typedef struct ehci_softc { 321 struct ehci_hw_softc sc_hw; 322 struct usb_bus sc_bus; /* base device */ 323 struct usb_callout sc_tmo_pcd; |
324 struct usb_callout sc_tmo_poll; |
|
324 union ehci_hub_desc sc_hub_desc; 325 326 struct usb_device *sc_devices[EHCI_MAX_DEVICES]; 327 struct resource *sc_io_res; 328 struct resource *sc_irq_res; 329 struct ehci_qh *sc_async_p_last; 330 struct ehci_qh *sc_intr_p_last[EHCI_VIRTUAL_FRAMELIST_COUNT]; 331 struct ehci_sitd *sc_isoc_fs_p_last[EHCI_VIRTUAL_FRAMELIST_COUNT]; --- 11 unchanged lines hidden (view full) --- 343 uint16_t sc_id_vendor; /* vendor ID for root hub */ 344 uint16_t sc_flags; /* chip specific flags */ 345#define EHCI_SCFLG_SETMODE 0x0001 /* set bridge mode again after init */ 346#define EHCI_SCFLG_FORCESPEED 0x0002 /* force speed */ 347#define EHCI_SCFLG_NORESTERM 0x0004 /* don't terminate reset sequence */ 348#define EHCI_SCFLG_BIGEDESC 0x0008 /* big-endian byte order descriptors */ 349#define EHCI_SCFLG_BIGEMMIO 0x0010 /* big-endian byte order MMIO */ 350#define EHCI_SCFLG_TT 0x0020 /* transaction translator present */ | 325 union ehci_hub_desc sc_hub_desc; 326 327 struct usb_device *sc_devices[EHCI_MAX_DEVICES]; 328 struct resource *sc_io_res; 329 struct resource *sc_irq_res; 330 struct ehci_qh *sc_async_p_last; 331 struct ehci_qh *sc_intr_p_last[EHCI_VIRTUAL_FRAMELIST_COUNT]; 332 struct ehci_sitd *sc_isoc_fs_p_last[EHCI_VIRTUAL_FRAMELIST_COUNT]; --- 11 unchanged lines hidden (view full) --- 344 uint16_t sc_id_vendor; /* vendor ID for root hub */ 345 uint16_t sc_flags; /* chip specific flags */ 346#define EHCI_SCFLG_SETMODE 0x0001 /* set bridge mode again after init */ 347#define EHCI_SCFLG_FORCESPEED 0x0002 /* force speed */ 348#define EHCI_SCFLG_NORESTERM 0x0004 /* don't terminate reset sequence */ 349#define EHCI_SCFLG_BIGEDESC 0x0008 /* big-endian byte order descriptors */ 350#define EHCI_SCFLG_BIGEMMIO 0x0010 /* big-endian byte order MMIO */ 351#define EHCI_SCFLG_TT 0x0020 /* transaction translator present */ |
352#define EHCI_SCFLG_LOSTINTRBUG 0x0040 /* workaround for VIA / ATI chipsets */ |
|
351 352 uint8_t sc_offs; /* offset to operational registers */ 353 uint8_t sc_doorbell_disable; /* set on doorbell failure */ 354 uint8_t sc_noport; 355 uint8_t sc_addr; /* device address */ 356 uint8_t sc_conf; /* device configuration */ 357 uint8_t sc_isreset; 358 uint8_t sc_hub_idata[8]; --- 96 unchanged lines hidden --- | 353 354 uint8_t sc_offs; /* offset to operational registers */ 355 uint8_t sc_doorbell_disable; /* set on doorbell failure */ 356 uint8_t sc_noport; 357 uint8_t sc_addr; /* device address */ 358 uint8_t sc_conf; /* device configuration */ 359 uint8_t sc_isreset; 360 uint8_t sc_hub_idata[8]; --- 96 unchanged lines hidden --- |