Changeset f8afb9f in rtems-libbsd


Ignore:
Timestamp:
Nov 15, 2013, 2:22:33 PM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, c1e05b9ea378b2971e3d7704779112b4bc4296da, freebsd-9.3, 4a77611a223ea883fb548679b516d326a020d447
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)
Message:

ehci_mpc83xx.c: Update due to API changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rtemsbsd/sys/dev/usb/controller/ehci_mpc83xx.c

    re2ab984 rf8afb9f  
    11/*
    2  * Copyright (c) 2009-2012 embedded brains GmbH.  All rights reserved.
     2 * Copyright (c) 2009-2013 embedded brains GmbH.  All rights reserved.
    33 *
    44 *  embedded brains GmbH
    5  *  Obere Lagerstr. 30
     5 *  Dornierstr. 4
    66 *  82178 Puchheim
    77 *  Germany
    88 *  <rtems@embedded-brains.de>
    99 *
    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.
    1330 */
    1431
    1532#include <machine/rtems-bsd-kernel-space.h>
     33#include <machine/rtems-bsd-support.h>
    1634
    1735#include <bsp.h>
     
    7088static device_attach_t ehci_mpc83xx_attach;
    7189static 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 int
    76 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 int
    91 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 
    10290
    10391static int
     
    263251        DEVMETHOD(device_attach, ehci_mpc83xx_attach),
    264252        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),
    267255        DEVMETHOD(device_shutdown, bus_generic_shutdown),
    268256
Note: See TracChangeset for help on using the changeset viewer.