LCOV - code coverage report
Current view: top level - dev/pci/drm - drm_cache.h (source / functions) Hit Total Coverage
Test: 6.4 Lines: 0 2 0.0 %
Date: 2018-10-19 03:25:38 Functions: 0 1 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /*      $OpenBSD: drm_cache.h,v 1.4 2018/04/25 01:27:46 jsg Exp $       */
       2             : /**************************************************************************
       3             :  *
       4             :  * Copyright 2009 Red Hat Inc.
       5             :  * All Rights Reserved.
       6             :  *
       7             :  * Permission is hereby granted, free of charge, to any person obtaining a
       8             :  * copy of this software and associated documentation files (the
       9             :  * "Software"), to deal in the Software without restriction, including
      10             :  * without limitation the rights to use, copy, modify, merge, publish,
      11             :  * distribute, sub license, and/or sell copies of the Software, and to
      12             :  * permit persons to whom the Software is furnished to do so, subject to
      13             :  * the following conditions:
      14             :  *
      15             :  * The above copyright notice and this permission notice (including the
      16             :  * next paragraph) shall be included in all copies or substantial portions
      17             :  * of the Software.
      18             :  *
      19             :  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
      20             :  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
      21             :  * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
      22             :  * THE COPYRIGHT HOLDERS, AUTHORS AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM,
      23             :  * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
      24             :  * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
      25             :  * USE OR OTHER DEALINGS IN THE SOFTWARE.
      26             :  *
      27             :  *
      28             :  **************************************************************************/
      29             : /*
      30             :  * Authors:
      31             :  * Dave Airlie <airlied@redhat.com>
      32             :  */
      33             : 
      34             : #ifndef _DRM_CACHE_H_
      35             : #define _DRM_CACHE_H_
      36             : 
      37             : #ifdef notyet
      38             : void drm_clflush_pages(struct page *pages[], unsigned long num_pages);
      39             : #endif
      40             : 
      41           0 : static inline bool drm_arch_can_wc_memory(void)
      42             : {
      43             : #if defined(__powerpc__)
      44             :         return false;
      45             : #elif defined(__mips__)
      46             :         return false;
      47             : #else
      48           0 :         return true;
      49             : #endif
      50             : }
      51             : 
      52             : #endif

Generated by: LCOV version 1.13