The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/dev/hfa/hfa_sbus.c

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /*-
    2  * Copyright (c) 2002 Matthew N. Dodd <winter@jurai.net>
    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
    9  *    notice, this list of conditions and the following disclaimer.
   10  * 2. Redistributions in binary form must reproduce the above copyright
   11  *    notice, this list of conditions and the following disclaimer in the
   12  *    documentation and/or other materials provided with the distribution.
   13  *
   14  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
   15  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   16  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   17  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
   18  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   19  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   20  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   21  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   22  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   23  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   24  * SUCH DAMAGE.
   25  */
   26 /*-
   27  * ===================================
   28  * HARP  |  Host ATM Research Platform
   29  * ===================================
   30  *
   31  * This Host ATM Research Platform ("HARP") file (the "Software") is
   32  * made available by Network Computing Services, Inc. ("NetworkCS")
   33  * "AS IS".  NetworkCS does not provide maintenance, improvements or
   34  * support of any kind.
   35  *
   36  * NETWORKCS MAKES NO WARRANTIES OR REPRESENTATIONS, EXPRESS OR IMPLIED,
   37  * INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY
   38  * AND FITNESS FOR A PARTICULAR PURPOSE, AS TO ANY ELEMENT OF THE
   39  * SOFTWARE OR ANY SUPPORT PROVIDED IN CONNECTION WITH THIS SOFTWARE.
   40  * In no event shall NetworkCS be responsible for any damages, including
   41  * but not limited to consequential damages, arising from or relating to
   42  * any use of the Software or related support.
   43  *
   44  * Copyright 1994-1998 Network Computing Services, Inc.
   45  *
   46  * Copies of this Software may be made, however, the above copyright
   47  * notice must be reproduced on all copies.
   48  */
   49 
   50 #include <sys/cdefs.h>
   51 __FBSDID("$FreeBSD: releng/5.3/sys/dev/hfa/hfa_sbus.c 119418 2003-08-24 17:55:58Z obrien $");
   52 
   53 #include <sys/param.h>
   54 #include <sys/systm.h>
   55 #include <sys/socket.h>
   56 #include <sys/socketvar.h>
   57 #include <sys/kernel.h>
   58 #include <sys/lock.h>
   59 #include <sys/malloc.h>
   60 #include <sys/socket.h>
   61 #include <sys/sysctl.h>
   62 
   63 #include <sys/bus.h>
   64 #include <sys/conf.h>
   65 
   66 #include <sys/module.h>
   67 #include <machine/bus.h>
   68 #include <machine/ofw_machdep.h>
   69 #include <machine/resource.h>
   70 
   71 #include <sys/rman.h> 
   72 
   73 #include <dev/ofw/openfirm.h>
   74 
   75 #include <sparc64/sbus/sbusreg.h>
   76 #include <sparc64/sbus/sbusvar.h>
   77 
   78 #include <net/if.h>
   79 #include <netatm/port.h>
   80 #include <netatm/queue.h>
   81 #include <netatm/atm.h>
   82 #include <netatm/atm_sys.h>
   83 #include <netatm/atm_sap.h>
   84 #include <netatm/atm_cm.h>
   85 #include <netatm/atm_if.h>
   86 #include <netatm/atm_stack.h>
   87 #include <netatm/atm_pcb.h>
   88 #include <netatm/atm_var.h>
   89 
   90 #include <dev/hfa/fore.h>
   91 #include <dev/hfa/fore_aali.h>
   92 #include <dev/hfa/fore_slave.h>
   93 #include <dev/hfa/fore_stats.h>
   94 #include <dev/hfa/fore_var.h>
   95 #include <dev/hfa/fore_include.h>
   96 
   97 #include <dev/hfa/hfa_freebsd.h>
   98 
   99 static int hfa_sbus_probe(device_t);
  100 static int hfa_sbus_attach(device_t);
  101 
  102 static int
  103 hfa_sbus_probe (device_t dev)
  104 {
  105 
  106         return (ENXIO);
  107 }
  108 
  109 static int
  110 hfa_sbus_attach (device_t dev)
  111 {
  112 
  113         return (ENXIO);
  114 }
  115 
  116 static device_method_t hfa_sbus_methods[] = {
  117         DEVMETHOD(device_probe,         hfa_sbus_probe),
  118         DEVMETHOD(device_attach,        hfa_sbus_attach),
  119 
  120         DEVMETHOD(device_detach,        hfa_detach),
  121 
  122         { 0, 0 }
  123 };
  124 
  125 static driver_t hfa_sbus_driver = {
  126         "hfa",
  127         hfa_sbus_methods,
  128         sizeof(struct hfa_softc)
  129 };
  130 
  131 DRIVER_MODULE(hfa, sbus, hfa_sbus_driver, hfa_devclass, 0, 0);
  132 MODULE_DEPEND(hfa, hfa, 1, 1, 1);
  133 MODULE_DEPEND(hfa, sbus, 1, 1, 1);

Cache object: 1a552645f1c3f0dde12f651e66ff3926


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.