Changeset f8afb9f in rtems-libbsd for rtemsbsd/sys
- Timestamp:
- 11/15/13 14:22:33 (10 years ago)
- Branches:
- 4.11, 5, 5-freebsd-12, 6-freebsd-12, freebsd-9.3, master
- Children:
- 19704a0
- Parents:
- e2ab984
- git-author:
- Sebastian Huber <sebastian.huber@…> (11/15/13 14:22:33)
- git-committer:
- Sebastian Huber <sebastian.huber@…> (12/04/13 12:44:04)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
rtemsbsd/sys/dev/usb/controller/ehci_mpc83xx.c
re2ab984 rf8afb9f 1 1 /* 2 * Copyright (c) 2009-201 2embedded brains GmbH. All rights reserved.2 * Copyright (c) 2009-2013 embedded brains GmbH. All rights reserved. 3 3 * 4 4 * embedded brains GmbH 5 * Obere Lagerstr. 305 * Dornierstr. 4 6 6 * 82178 Puchheim 7 7 * Germany 8 8 * <rtems@embedded-brains.de> 9 9 * 10 * The license and distribution terms for this file may be 11 * found in the file LICENSE in this distribution or at 12 * http://www.rtems.com/license/LICENSE. 10 * Redistribution and use in source and binary forms, with or without 11 * modification, are permitted provided that the following conditions 12 * are met: 13 * 1. Redistributions of source code must retain the above copyright 14 * notice, this list of conditions and the following disclaimer. 15 * 2. Redistributions in binary form must reproduce the above copyright 16 * notice, this list of conditions and the following disclaimer in the 17 * documentation and/or other materials provided with the distribution. 18 * 19 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 20 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 21 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 22 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 23 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 24 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29 * SUCH DAMAGE. 13 30 */ 14 31 15 32 #include <machine/rtems-bsd-kernel-space.h> 33 #include <machine/rtems-bsd-support.h> 16 34 17 35 #include <bsp.h> … … 70 88 static device_attach_t ehci_mpc83xx_attach; 71 89 static device_detach_t ehci_mpc83xx_detach; 72 static device_suspend_t ehci_mpc83xx_suspend;73 static device_resume_t ehci_mpc83xx_resume;74 75 static int76 ehci_mpc83xx_suspend(device_t self)77 {78 ehci_softc_t *e = device_get_softc(self);79 int eno = bus_generic_suspend(self);80 81 if (eno != 0) {82 return (eno);83 }84 85 ehci_suspend(e);86 87 return (0);88 }89 90 static int91 ehci_mpc83xx_resume(device_t self)92 {93 ehci_softc_t *e = device_get_softc(self);94 95 ehci_resume(e);96 97 bus_generic_resume(self);98 99 return (0);100 }101 102 90 103 91 static int … … 263 251 DEVMETHOD(device_attach, ehci_mpc83xx_attach), 264 252 DEVMETHOD(device_detach, ehci_mpc83xx_detach), 265 DEVMETHOD(device_suspend, ehci_mpc83xx_suspend),266 DEVMETHOD(device_resume, ehci_mpc83xx_resume),253 DEVMETHOD(device_suspend,bus_generic_suspend), 254 DEVMETHOD(device_resume, bus_generic_resume), 267 255 DEVMETHOD(device_shutdown, bus_generic_shutdown), 268 256
Note: See TracChangeset
for help on using the changeset viewer.