Deleted Added
full compact
ohci.h (204632) ohci.h (228483)
1/* $FreeBSD: head/sys/dev/usb/controller/ohci.h 204632 2010-03-03 10:18:03Z joel $ */
1/* $FreeBSD: head/sys/dev/usb/controller/ohci.h 228483 2011-12-14 00:28:54Z hselasky $ */
2/*-
3 * Copyright (c) 1998 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) at
8 * Carlstedt Research & Technology.
9 *

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

236 struct ohci_ed *sc_intr_p_last[OHCI_NO_EDS];
237 void *sc_intr_hdl;
238 device_t sc_dev;
239 bus_size_t sc_io_size;
240 bus_space_tag_t sc_io_tag;
241 bus_space_handle_t sc_io_hdl;
242
243 uint32_t sc_eintrs; /* enabled interrupts */
2/*-
3 * Copyright (c) 1998 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) at
8 * Carlstedt Research & Technology.
9 *

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

236 struct ohci_ed *sc_intr_p_last[OHCI_NO_EDS];
237 void *sc_intr_hdl;
238 device_t sc_dev;
239 bus_size_t sc_io_size;
240 bus_space_tag_t sc_io_tag;
241 bus_space_handle_t sc_io_hdl;
242
243 uint32_t sc_eintrs; /* enabled interrupts */
244 uint32_t sc_control; /* Preserved during suspend/standby */
245 uint32_t sc_intre;
246
247 uint16_t sc_intr_stat[OHCI_NO_EDS];
248 uint16_t sc_id_vendor;
249
250 uint8_t sc_noport;
251 uint8_t sc_addr; /* device address */
252 uint8_t sc_conf; /* device configuration */
253 uint8_t sc_hub_idata[32];
254
255 char sc_vendor[16];
256
257} ohci_softc_t;
258
259usb_bus_mem_cb_t ohci_iterate_hw_softc;
260
261usb_error_t ohci_init(ohci_softc_t *sc);
262void ohci_detach(struct ohci_softc *sc);
244
245 uint16_t sc_intr_stat[OHCI_NO_EDS];
246 uint16_t sc_id_vendor;
247
248 uint8_t sc_noport;
249 uint8_t sc_addr; /* device address */
250 uint8_t sc_conf; /* device configuration */
251 uint8_t sc_hub_idata[32];
252
253 char sc_vendor[16];
254
255} ohci_softc_t;
256
257usb_bus_mem_cb_t ohci_iterate_hw_softc;
258
259usb_error_t ohci_init(ohci_softc_t *sc);
260void ohci_detach(struct ohci_softc *sc);
263void ohci_suspend(ohci_softc_t *sc);
264void ohci_resume(ohci_softc_t *sc);
265void ohci_interrupt(ohci_softc_t *sc);
266
267#endif /* _OHCI_H_ */
261void ohci_interrupt(ohci_softc_t *sc);
262
263#endif /* _OHCI_H_ */