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/compat/darwin/darwin_commpage.h

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 /*      $NetBSD: darwin_commpage.h,v 1.7 2008/04/28 20:23:41 martin Exp $ */
    2 
    3 /*-
    4  * Copyright (c) 2004 The NetBSD Foundation, Inc.
    5  * All rights reserved.
    6  *
    7  * This code is derived from software contributed to The NetBSD Foundation
    8  * by Emmanuel Dreyfus
    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 #ifndef _DARWIN_COMMPAGE_H_
   33 #define _DARWIN_COMMPAGE_H_
   34 
   35 struct darwin_commpage {
   36         int dcp_signature;              /* 0/0x000 */
   37         char dcp_pad1[26];
   38         short dcp_version;              /* 30/0x01e */
   39         char dcp_cap;                   /* 32/0x020 */
   40         char dcp_ncpu;                  /* 33/0x021 */
   41         char dcp_pad2[2];
   42         char dcp_vector;                /* 36/0x024 */
   43         char dcp_64bit;                 /* 37/0x025 */
   44         short dcp_cachelinelen;         /* 38/0x026 */
   45         char dcp_pad3[24];
   46         long long dcp_2pow52;                   /* 64/0x040 */
   47         long long dcp_10pow6;                   /* 72/0x048 */
   48         char dcp_pad4[16];
   49         long long dcp_timebase;                 /* 96/0x060 */
   50         long long dcp_timestamp;                /* 104/0x068 */
   51         long long dcp_secpertick;               /* 112/0x070 */
   52         char dcp_pad5[392];
   53         char dcp_mach_absolute_time[32];        /* 512/0x200 */
   54         char dcp_spinlock_try[64];              /* 544/0x220 */
   55         char dcp_spinlock_lock[64];             /* 608/0x260 */
   56         char dcp_spinlock_unlock[32];           /* 672/0x2a0 */
   57         char dcp_pthread_getspecific[32];       /* 704/0x2c0 */
   58         char dcp_gettimeofday[512];             /* 736/0x2e0 */
   59         char dcp_sys_dcache_flush[64];          /* 1248/0x4e0 */
   60         char dcp_sys_icache_invalidate[96];     /* 1312/0x520 */
   61         char dcp_pthread_self[64];              /* 1408/0x580 */
   62         char dcp_spinlock_relinquish[64];       /* 1472/0x5c0 */
   63         char dcp_bzero[384];                    /* 1536/0x600 */
   64         char dcp_bcopy[32];                     /* 1920/0x780 */
   65         char dcp_memcpy[2144];                  /* 1952/0x7a0 */
   66         char dcp_bigcopy[1536];                 /* 4096/0x1000 */
   67 };
   68 
   69 int darwin_commpage_map(struct proc *);
   70 
   71 extern int darwin_commpage_mach_absolute_time[];
   72 extern int darwin_commpage_spinlock_try[];
   73 extern int darwin_commpage_spinlock_lock[];
   74 extern int darwin_commpage_spinlock_unlock[];
   75 extern int darwin_commpage_pthread_getspecific[];
   76 extern int darwin_commpage_gettimeofday[];
   77 extern int darwin_commpage_sys_dcache_flush[];
   78 extern int darwin_commpage_sys_icache_invalidate[];
   79 extern int darwin_commpage_pthread_self[];
   80 extern int darwin_commpage_spinlock_relinquish[];
   81 extern int darwin_commpage_bzero[];
   82 extern int darwin_commpage_bcopy[];
   83 extern int darwin_commpage_memcpy[];
   84 extern int darwin_commpage_bigcopy[];
   85 
   86 extern int darwin_commpage_mach_absolute_time_size[];
   87 extern int darwin_commpage_spinlock_try_size[];
   88 extern int darwin_commpage_spinlock_lock_size[];
   89 extern int darwin_commpage_spinlock_unlock_size[];
   90 extern int darwin_commpage_pthread_getspecific_size[];
   91 extern int darwin_commpage_gettimeofday_size[];
   92 extern int darwin_commpage_sys_dcache_flush_size[];
   93 extern int darwin_commpage_sys_icache_invalidate_size[];
   94 extern int darwin_commpage_pthread_self_size[];
   95 extern int darwin_commpage_spinlock_relinquish_size[];
   96 extern int darwin_commpage_bzero_size[];
   97 extern int darwin_commpage_bcopy_size[];
   98 extern int darwin_commpage_memcpy_size[];
   99 extern int darwin_commpage_bigcopy_size[];
  100 
  101 #endif /* _DARWIN_COMMPAGE_H_ */

Cache object: d790f3634874cc1665fadb343d8e4368


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