![]() |
|
|||
0001 /* SPDX-License-Identifier: GPL-2.0 OR MIT */ 0002 /************************************************************************** 0003 * 0004 * Copyright 2021 VMware, Inc., Palo Alto, CA., USA 0005 * 0006 * Permission is hereby granted, free of charge, to any person obtaining a 0007 * copy of this software and associated documentation files (the 0008 * "Software"), to deal in the Software without restriction, including 0009 * without limitation the rights to use, copy, modify, merge, publish, 0010 * distribute, sub license, and/or sell copies of the Software, and to 0011 * permit persons to whom the Software is furnished to do so, subject to 0012 * the following conditions: 0013 * 0014 * The above copyright notice and this permission notice (including the 0015 * next paragraph) shall be included in all copies or substantial portions 0016 * of the Software. 0017 * 0018 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 0019 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 0020 * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL 0021 * THE COPYRIGHT HOLDERS, AUTHORS AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, 0022 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 0023 * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE 0024 * USE OR OTHER DEALINGS IN THE SOFTWARE. 0025 * 0026 **************************************************************************/ 0027 0028 #ifndef _VMWGFX_DEVCAPS_H_ 0029 #define _VMWGFX_DEVCAPS_H_ 0030 0031 #include "vmwgfx_drv.h" 0032 0033 #include "device_include/svga_reg.h" 0034 0035 int vmw_devcaps_create(struct vmw_private *vmw); 0036 void vmw_devcaps_destroy(struct vmw_private *vmw); 0037 uint32_t vmw_devcaps_size(const struct vmw_private *vmw, bool gb_aware); 0038 int vmw_devcaps_copy(struct vmw_private *vmw, bool gb_aware, 0039 void *dst, uint32_t dst_size); 0040 0041 static inline uint32_t vmw_devcap_get(struct vmw_private *vmw, 0042 uint32_t devcap) 0043 { 0044 bool gb_objects = !!(vmw->capabilities & SVGA_CAP_GBOBJECTS); 0045 if (gb_objects) 0046 return vmw->devcaps[devcap]; 0047 return 0; 0048 } 0049 0050 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |