ttm_bo_util.c (273969) | ttm_bo_util.c (280183) |
---|---|
1/************************************************************************** 2 * 3 * Copyright (c) 2007-2009 VMware, Inc., Palo Alto, CA., USA 4 * All Rights Reserved. 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a 7 * copy of this software and associated documentation files (the 8 * "Software"), to deal in the Software without restriction, including --- 15 unchanged lines hidden (view full) --- 24 * USE OR OTHER DEALINGS IN THE SOFTWARE. 25 * 26 **************************************************************************/ 27/* 28 * Authors: Thomas Hellstrom <thellstrom-at-vmware-dot-com> 29 */ 30 31#include <sys/cdefs.h> | 1/************************************************************************** 2 * 3 * Copyright (c) 2007-2009 VMware, Inc., Palo Alto, CA., USA 4 * All Rights Reserved. 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a 7 * copy of this software and associated documentation files (the 8 * "Software"), to deal in the Software without restriction, including --- 15 unchanged lines hidden (view full) --- 24 * USE OR OTHER DEALINGS IN THE SOFTWARE. 25 * 26 **************************************************************************/ 27/* 28 * Authors: Thomas Hellstrom <thellstrom-at-vmware-dot-com> 29 */ 30 31#include <sys/cdefs.h> |
32__FBSDID("$FreeBSD: head/sys/dev/drm2/ttm/ttm_bo_util.c 273969 2014-11-02 14:08:54Z tijl $"); | 32__FBSDID("$FreeBSD: head/sys/dev/drm2/ttm/ttm_bo_util.c 280183 2015-03-17 18:50:33Z dumbbell $"); |
33 34#include <dev/drm2/drmP.h> 35#include <dev/drm2/ttm/ttm_bo_driver.h> 36#include <dev/drm2/ttm/ttm_placement.h> 37#include <sys/sf_buf.h> 38 39void ttm_bo_free_old_node(struct ttm_buffer_object *bo) 40{ --- 393 unchanged lines hidden (view full) --- 434 435 *new_obj = fbo; 436 return 0; 437} 438 439vm_memattr_t 440ttm_io_prot(uint32_t caching_flags) 441{ | 33 34#include <dev/drm2/drmP.h> 35#include <dev/drm2/ttm/ttm_bo_driver.h> 36#include <dev/drm2/ttm/ttm_placement.h> 37#include <sys/sf_buf.h> 38 39void ttm_bo_free_old_node(struct ttm_buffer_object *bo) 40{ --- 393 unchanged lines hidden (view full) --- 434 435 *new_obj = fbo; 436 return 0; 437} 438 439vm_memattr_t 440ttm_io_prot(uint32_t caching_flags) 441{ |
442#if defined(__i386__) || defined(__amd64__) | 442#if defined(__i386__) || defined(__amd64__) || defined(__powerpc__) |
443 if (caching_flags & TTM_PL_FLAG_WC) 444 return (VM_MEMATTR_WRITE_COMBINING); 445 else 446 /* 447 * We do not support i386, look at the linux source 448 * for the reason of the comment. 449 */ 450 return (VM_MEMATTR_UNCACHEABLE); --- 217 unchanged lines hidden --- | 443 if (caching_flags & TTM_PL_FLAG_WC) 444 return (VM_MEMATTR_WRITE_COMBINING); 445 else 446 /* 447 * We do not support i386, look at the linux source 448 * for the reason of the comment. 449 */ 450 return (VM_MEMATTR_UNCACHEABLE); --- 217 unchanged lines hidden --- |