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/sparc64/sbus/sbusvar.h

Version: -  FREEBSD  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-2  -  FREEBSD-11-1  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-4  -  FREEBSD-10-3  -  FREEBSD-10-2  -  FREEBSD-10-1  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-3  -  FREEBSD-9-2  -  FREEBSD-9-1  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-4  -  FREEBSD-8-3  -  FREEBSD-8-2  -  FREEBSD-8-1  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-4  -  FREEBSD-7-3  -  FREEBSD-7-2  -  FREEBSD-7-1  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-4  -  FREEBSD-6-3  -  FREEBSD-6-2  -  FREEBSD-6-1  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-5  -  FREEBSD-5-4  -  FREEBSD-5-3  -  FREEBSD-5-2  -  FREEBSD-5-1  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  linux-2.6  -  linux-2.4.22  -  MK83  -  MK84  -  PLAN9  -  DFBSD  -  NETBSD  -  NETBSD5  -  NETBSD4  -  NETBSD3  -  NETBSD20  -  OPENBSD  -  xnu-517  -  xnu-792  -  xnu-792.6.70  -  xnu-1228  -  xnu-1456.1.26  -  xnu-1699.24.8  -  xnu-2050.18.24  -  OPENSOLARIS  -  minix-3-1-1 
SearchContext: -  none  -  3  -  10 

    1 /*-
    2  * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
    3  *
    4  * Copyright (c) 1998 The NetBSD Foundation, Inc.
    5  * All rights reserved.
    6  *
    7  * This code is derived from software contributed to The NetBSD Foundation
    8  * by Paul Kranenburg.
    9  *
   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 NETBSD FOUNDATION, INC. AND CONTRIBUTORS
   20  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
   21  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
   22  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
   23  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
   24  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
   25  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
   26  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
   27  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
   28  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
   29  * POSSIBILITY OF SUCH DAMAGE.
   30  */
   31 /*-
   32  * Copyright (c) 1992, 1993
   33  *      The Regents of the University of California.  All rights reserved.
   34  *
   35  * This software was developed by the Computer Systems Engineering group
   36  * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and
   37  * contributed to Berkeley.
   38  *
   39  * All advertising materials mentioning features or use of this software
   40  * must display the following acknowledgement:
   41  *      This product includes software developed by the University of
   42  *      California, Lawrence Berkeley Laboratory.
   43  *
   44  * Redistribution and use in source and binary forms, with or without
   45  * modification, are permitted provided that the following conditions
   46  * are met:
   47  * 1. Redistributions of source code must retain the above copyright
   48  *    notice, this list of conditions and the following disclaimer.
   49  * 2. Redistributions in binary form must reproduce the above copyright
   50  *    notice, this list of conditions and the following disclaimer in the
   51  *    documentation and/or other materials provided with the distribution.
   52  * 3. Neither the name of the University nor the names of its contributors
   53  *    may be used to endorse or promote products derived from this software
   54  *    without specific prior written permission.
   55  *
   56  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   57  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   58  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   59  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   60  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   61  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   62  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   63  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   64  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   65  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   66  * SUCH DAMAGE.
   67  *
   68  *      from: @(#)sbusvar.h     8.1 (Berkeley) 6/11/93
   69  *      from: NetBSD: sbusvar.h,v 1.15 2008/04/28 20:23:36 martin Exp
   70  *
   71  * $FreeBSD: stable/12/sys/sparc64/sbus/sbusvar.h 326262 2017-11-27 15:10:39Z pfg $
   72  */
   73 
   74 #ifndef _SPARC64_SBUS_SBUSVAR_H_
   75 #define _SPARC64_SBUS_SBUSVAR_H_
   76 
   77 /*
   78  * Macros for probe order
   79  */
   80 #define SBUS_ORDER_FIRST        10
   81 #define SBUS_ORDER_NORMAL       20
   82 
   83 /*
   84  * PROM-reported DMA burst sizes for the SBus
   85  */
   86 #define SBUS_BURST_1            (1 << 0)
   87 #define SBUS_BURST_2            (1 << 1)
   88 #define SBUS_BURST_4            (1 << 2)
   89 #define SBUS_BURST_8            (1 << 3)
   90 #define SBUS_BURST_16           (1 << 4)
   91 #define SBUS_BURST_32           (1 << 5)
   92 #define SBUS_BURST_64           (1 << 6)
   93 #define SBUS_BURST_MASK         ((1 << SBUS_BURST_SIZE) - 1)
   94 #define SBUS_BURST_SIZE         16
   95 #define SBUS_BURST64_MASK       (SBUS_BURST_MASK << SBUS_BURST64_SHIFT)
   96 #define SBUS_BURST64_SHIFT      16
   97 
   98 /* Used if no burst sizes are specified for the bus. */
   99 #define SBUS_BURST_DEF \
  100         (SBUS_BURST_1 | SBUS_BURST_2 | SBUS_BURST_4 | SBUS_BURST_8 |    \
  101         SBUS_BURST_16 | SBUS_BURST_32 | SBUS_BURST_64)
  102 #define SBUS_BURST64_DEF \
  103         (SBUS_BURST_8 | SBUS_BURST_16 | SBUS_BURST_32 | SBUS_BURST_64)
  104 
  105 enum sbus_device_ivars {
  106         SBUS_IVAR_BURSTSZ,
  107         SBUS_IVAR_CLOCKFREQ,
  108         SBUS_IVAR_IGN,
  109         SBUS_IVAR_SLOT,
  110 };
  111 
  112 /*
  113  * Simplified accessors for sbus devices
  114  */
  115 #define SBUS_ACCESSOR(var, ivar, type) \
  116         __BUS_ACCESSOR(sbus, var, SBUS, ivar, type)
  117 
  118 SBUS_ACCESSOR(burstsz,          BURSTSZ,        int)
  119 SBUS_ACCESSOR(clockfreq,        CLOCKFREQ,      int)
  120 SBUS_ACCESSOR(ign,              IGN,            int)
  121 SBUS_ACCESSOR(slot,             SLOT,           int)
  122 
  123 #undef SBUS_ACCESSOR
  124 
  125 #endif /* _SPARC64_SBUS_SBUSVAR_H_ */

Cache object: 55e381f7b6c58d5570ab2f232c94ed51


[ 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.