Deleted Added
sdiff udiff text old ( 227849 ) new ( 228483 )
full compact
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/mips/rmi/xls_ehci.c 228483 2011-12-14 00:28:54Z hselasky $");
33
34#include "opt_bus.h"
35
36#include <sys/stdint.h>
37#include <sys/stddef.h>
38#include <sys/param.h>
39#include <sys/queue.h>
40#include <sys/types.h>

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

64#include <dev/usb/usb_util.h>
65
66#include <dev/usb/usb_controller.h>
67#include <dev/usb/usb_bus.h>
68#include <dev/usb/controller/ehci.h>
69#include <dev/usb/controller/ehcireg.h>
70#include <mips/rmi/pic.h>
71
72static device_attach_t ehci_xls_attach;
73static device_detach_t ehci_xls_detach;
74
75static const char *xlr_usb_dev_desc = "RMI XLR USB 2.0 controller";
76static const char *xlr_vendor_desc = "RMI Corp";
77
78static int
79ehci_xls_probe(device_t self)
80{
81 /* TODO see if usb is enabled on the board */
82 device_set_desc(self, xlr_usb_dev_desc);

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

201 return (0);
202}
203
204static device_method_t ehci_methods[] = {
205 /* Device interface */
206 DEVMETHOD(device_probe, ehci_xls_probe),
207 DEVMETHOD(device_attach, ehci_xls_attach),
208 DEVMETHOD(device_detach, ehci_xls_detach),
209 DEVMETHOD(device_suspend, bus_generic_suspend),
210 DEVMETHOD(device_resume, bus_generic_resume),
211 DEVMETHOD(device_shutdown, bus_generic_shutdown),
212
213 DEVMETHOD_END
214};
215
216static driver_t ehci_driver = {
217 .name = "ehci",
218 .methods = ehci_methods,
219 .size = sizeof(struct ehci_softc),
220};
221
222static devclass_t ehci_devclass;
223
224DRIVER_MODULE(ehci, iodi, ehci_driver, ehci_devclass, 0, 0);
225MODULE_DEPEND(ehci, usb, 1, 1, 1);