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/drm2/drm_sarea.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 /**
    2  * \file drm_sarea.h
    3  * \brief SAREA definitions
    4  *
    5  * \author Michel D�zer <michel@daenzer.net>
    6  */
    7 
    8 /*-
    9  * Copyright 2002 Tungsten Graphics, Inc., Cedar Park, Texas.
   10  * All Rights Reserved.
   11  *
   12  * Permission is hereby granted, free of charge, to any person obtaining a
   13  * copy of this software and associated documentation files (the "Software"),
   14  * to deal in the Software without restriction, including without limitation
   15  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
   16  * and/or sell copies of the Software, and to permit persons to whom the
   17  * Software is furnished to do so, subject to the following conditions:
   18  *
   19  * The above copyright notice and this permission notice (including the next
   20  * paragraph) shall be included in all copies or substantial portions of the
   21  * Software.
   22  *
   23  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
   24  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
   25  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
   26  * TUNGSTEN GRAPHICS AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
   27  * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
   28  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
   29  * OTHER DEALINGS IN THE SOFTWARE.
   30  */
   31 
   32 #include <sys/cdefs.h>
   33 __FBSDID("$FreeBSD$");
   34 
   35 #ifndef _DRM_SAREA_H_
   36 #define _DRM_SAREA_H_
   37 
   38 #include <dev/drm2/drm.h>
   39 
   40 /* SAREA area needs to be at least a page */
   41 #if defined(__alpha__)
   42 #define SAREA_MAX                       0x2000U
   43 #elif defined(__mips__)
   44 #define SAREA_MAX                       0x4000U
   45 #else
   46 /* Intel 830M driver needs at least 8k SAREA */
   47 #define SAREA_MAX                       0x2000U
   48 #endif
   49 
   50 /** Maximum number of drawables in the SAREA */
   51 #define SAREA_MAX_DRAWABLES             256
   52 
   53 #define SAREA_DRAWABLE_CLAIMED_ENTRY    0x80000000
   54 
   55 /** SAREA drawable */
   56 struct drm_sarea_drawable {
   57         unsigned int stamp;
   58         unsigned int flags;
   59 };
   60 
   61 /** SAREA frame */
   62 struct drm_sarea_frame {
   63         unsigned int x;
   64         unsigned int y;
   65         unsigned int width;
   66         unsigned int height;
   67         unsigned int fullscreen;
   68 };
   69 
   70 /** SAREA */
   71 struct drm_sarea {
   72     /** first thing is always the DRM locking structure */
   73         struct drm_hw_lock lock;
   74     /** \todo Use readers/writer lock for drm_sarea::drawable_lock */
   75         struct drm_hw_lock drawable_lock;
   76         struct drm_sarea_drawable drawableTable[SAREA_MAX_DRAWABLES];   /**< drawables */
   77         struct drm_sarea_frame frame;   /**< frame */
   78         drm_context_t dummy_context;
   79 };
   80 
   81 #ifndef __KERNEL__
   82 typedef struct drm_sarea_drawable drm_sarea_drawable_t;
   83 typedef struct drm_sarea_frame drm_sarea_frame_t;
   84 typedef struct drm_sarea drm_sarea_t;
   85 #endif
   86 
   87 #endif                          /* _DRM_SAREA_H_ */

Cache object: 5899766e10bbd1e71ed45881c03b84ab


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