ehci.h (213869) | ehci.h (228483) |
---|---|
1/* $FreeBSD: head/sys/dev/usb/controller/ehci.h 213869 2010-10-14 21:38:06Z hselasky $ */ | 1/* $FreeBSD: head/sys/dev/usb/controller/ehci.h 228483 2011-12-14 00:28:54Z hselasky $ */ |
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 --- 318 unchanged lines hidden (view full) --- 328 struct ehci_itd *sc_isoc_hs_p_last[EHCI_VIRTUAL_FRAMELIST_COUNT]; 329 void *sc_intr_hdl; 330 bus_size_t sc_io_size; 331 bus_space_tag_t sc_io_tag; 332 bus_space_handle_t sc_io_hdl; 333 334 uint32_t sc_terminate_self; /* TD short packet termination pointer */ 335 uint32_t sc_eintrs; | 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 --- 318 unchanged lines hidden (view full) --- 328 struct ehci_itd *sc_isoc_hs_p_last[EHCI_VIRTUAL_FRAMELIST_COUNT]; 329 void *sc_intr_hdl; 330 bus_size_t sc_io_size; 331 bus_space_tag_t sc_io_tag; 332 bus_space_handle_t sc_io_hdl; 333 334 uint32_t sc_terminate_self; /* TD short packet termination pointer */ 335 uint32_t sc_eintrs; |
336 uint32_t sc_cmd; /* shadow of cmd register during 337 * suspend */ | |
338 339 uint16_t sc_intr_stat[EHCI_VIRTUAL_FRAMELIST_COUNT]; 340 uint16_t sc_id_vendor; /* vendor ID for root hub */ 341 uint16_t sc_flags; /* chip specific flags */ 342#define EHCI_SCFLG_SETMODE 0x0001 /* set bridge mode again after init */ 343#define EHCI_SCFLG_FORCESPEED 0x0002 /* force speed */ 344#define EHCI_SCFLG_NORESTERM 0x0004 /* don't terminate reset sequence */ 345#define EHCI_SCFLG_BIGEDESC 0x0008 /* big-endian byte order descriptors */ --- 94 unchanged lines hidden (view full) --- 440} 441#endif 442 443usb_bus_mem_cb_t ehci_iterate_hw_softc; 444 445usb_error_t ehci_reset(ehci_softc_t *sc); 446usb_error_t ehci_init(ehci_softc_t *sc); 447void ehci_detach(struct ehci_softc *sc); | 336 337 uint16_t sc_intr_stat[EHCI_VIRTUAL_FRAMELIST_COUNT]; 338 uint16_t sc_id_vendor; /* vendor ID for root hub */ 339 uint16_t sc_flags; /* chip specific flags */ 340#define EHCI_SCFLG_SETMODE 0x0001 /* set bridge mode again after init */ 341#define EHCI_SCFLG_FORCESPEED 0x0002 /* force speed */ 342#define EHCI_SCFLG_NORESTERM 0x0004 /* don't terminate reset sequence */ 343#define EHCI_SCFLG_BIGEDESC 0x0008 /* big-endian byte order descriptors */ --- 94 unchanged lines hidden (view full) --- 438} 439#endif 440 441usb_bus_mem_cb_t ehci_iterate_hw_softc; 442 443usb_error_t ehci_reset(ehci_softc_t *sc); 444usb_error_t ehci_init(ehci_softc_t *sc); 445void ehci_detach(struct ehci_softc *sc); |
448void ehci_suspend(struct ehci_softc *sc); 449void ehci_resume(struct ehci_softc *sc); 450void ehci_shutdown(ehci_softc_t *sc); | |
451void ehci_interrupt(ehci_softc_t *sc); 452 453#endif /* _EHCI_H_ */ | 446void ehci_interrupt(ehci_softc_t *sc); 447 448#endif /* _EHCI_H_ */ |