1/* 2 * Copyright 2009 Advanced Micro Devices, Inc. 3 * Copyright 2009 Red Hat Inc. 4 * Copyright 2012 Alcatel-Lucent, Inc. 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a 7 * copy of this software and associated documentation files (the "Software"), 8 * to deal in the Software without restriction, including without limitation 9 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 10 * and/or sell copies of the Software, and to permit persons to whom the 11 * Software is furnished to do so, subject to the following conditions: 12 * 13 * The above copyright notice and this permission notice (including the next 14 * paragraph) shall be included in all copies or substantial portions of the 15 * Software. 16 * 17 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 20 * THE COPYRIGHT HOLDER(S) AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR 21 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 22 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 23 * DEALINGS IN THE SOFTWARE. 24 * 25 */ 26 27#ifndef __RADEON_BLIT_COMMON_H__ 28 29#include <sys/cdefs.h> 30__FBSDID("$FreeBSD$"); 31 32#define DI_PT_RECTLIST 0x11 33#define DI_INDEX_SIZE_16_BIT 0x0 34#define DI_SRC_SEL_AUTO_INDEX 0x2 35 36#define FMT_8 0x1 37#define FMT_5_6_5 0x8 38#define FMT_8_8_8_8 0x1a 39#define COLOR_8 0x1 40#define COLOR_5_6_5 0x8 41#define COLOR_8_8_8_8 0x1a 42 43#define RECT_UNIT_H 32 44#define RECT_UNIT_W (RADEON_GPU_PAGE_SIZE / 4 / RECT_UNIT_H) 45 46#define __RADEON_BLIT_COMMON_H__ 47#endif 48