1/*- 2 * Copyright (c) 2001 M. Warner Losh 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 15 unchanged lines hidden (view full) --- 24 * SUCH DAMAGE. 25 * 26 * This code is based on ugen.c and ulpt.c developed by Lennart Augustsson. 27 * This code includes software developed by the NetBSD Foundation, Inc. and 28 * its contributors. 29 */ 30 31#include <sys/cdefs.h> |
32__FBSDID("$FreeBSD: head/sys/dev/usb/misc/ufm.c 212122 2010-09-01 23:47:53Z thompsa $"); |
33 34 35#include <sys/stdint.h> 36#include <sys/stddef.h> 37#include <sys/param.h> 38#include <sys/queue.h> 39#include <sys/types.h> 40#include <sys/systm.h> --- 71 unchanged lines hidden (view full) --- 112static driver_t ufm_driver = { 113 .name = "ufm", 114 .methods = ufm_methods, 115 .size = sizeof(struct ufm_softc), 116}; 117 118DRIVER_MODULE(ufm, uhub, ufm_driver, ufm_devclass, NULL, 0); 119MODULE_DEPEND(ufm, usb, 1, 1, 1); |
120MODULE_VERSION(ufm, 1); |
121 122static int 123ufm_probe(device_t dev) 124{ 125 struct usb_attach_arg *uaa = device_get_ivars(dev); 126 127 if (uaa->usb_mode != USB_MODE_HOST) { 128 return (ENXIO); --- 205 unchanged lines hidden --- |