drm/radeon: Import the Radeon KMS driver from FreeBSD
[dragonfly.git] / sys / dev / drm / radeon / radeon_blit_common.h
CommitLineData
926deccb
FT
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 * $FreeBSD: head/sys/dev/drm2/radeon/radeon_blit_common.h 254885 2013-08-25 19:37:15Z dumbbell $
26 */
27
28#ifndef __RADEON_BLIT_COMMON_H__
29
30#define DI_PT_RECTLIST 0x11
31#define DI_INDEX_SIZE_16_BIT 0x0
32#define DI_SRC_SEL_AUTO_INDEX 0x2
33
34#define FMT_8 0x1
35#define FMT_5_6_5 0x8
36#define FMT_8_8_8_8 0x1a
37#define COLOR_8 0x1
38#define COLOR_5_6_5 0x8
39#define COLOR_8_8_8_8 0x1a
40
41#define RECT_UNIT_H 32
42#define RECT_UNIT_W (RADEON_GPU_PAGE_SIZE / 4 / RECT_UNIT_H)
43
44#define __RADEON_BLIT_COMMON_H__
45#endif