1254885Sdumbbell/*
2254885Sdumbbell * Copyright 2009 Advanced Micro Devices, Inc.
3254885Sdumbbell * Copyright 2009 Red Hat Inc.
4254885Sdumbbell * Copyright 2012 Alcatel-Lucent, Inc.
5254885Sdumbbell *
6254885Sdumbbell * Permission is hereby granted, free of charge, to any person obtaining a
7254885Sdumbbell * copy of this software and associated documentation files (the "Software"),
8254885Sdumbbell * to deal in the Software without restriction, including without limitation
9254885Sdumbbell * the rights to use, copy, modify, merge, publish, distribute, sublicense,
10254885Sdumbbell * and/or sell copies of the Software, and to permit persons to whom the
11254885Sdumbbell * Software is furnished to do so, subject to the following conditions:
12254885Sdumbbell *
13254885Sdumbbell * The above copyright notice and this permission notice (including the next
14254885Sdumbbell * paragraph) shall be included in all copies or substantial portions of the
15254885Sdumbbell * Software.
16254885Sdumbbell *
17254885Sdumbbell * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18254885Sdumbbell * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19254885Sdumbbell * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
20254885Sdumbbell * THE COPYRIGHT HOLDER(S) AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
21254885Sdumbbell * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
22254885Sdumbbell * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23254885Sdumbbell * DEALINGS IN THE SOFTWARE.
24254885Sdumbbell *
25254885Sdumbbell */
26254885Sdumbbell
27254885Sdumbbell#ifndef __RADEON_BLIT_COMMON_H__
28254885Sdumbbell
29254885Sdumbbell#include <sys/cdefs.h>
30254885Sdumbbell__FBSDID("$FreeBSD$");
31254885Sdumbbell
32254885Sdumbbell#define DI_PT_RECTLIST        0x11
33254885Sdumbbell#define DI_INDEX_SIZE_16_BIT  0x0
34254885Sdumbbell#define DI_SRC_SEL_AUTO_INDEX 0x2
35254885Sdumbbell
36254885Sdumbbell#define FMT_8                 0x1
37254885Sdumbbell#define FMT_5_6_5             0x8
38254885Sdumbbell#define FMT_8_8_8_8           0x1a
39254885Sdumbbell#define COLOR_8               0x1
40254885Sdumbbell#define COLOR_5_6_5           0x8
41254885Sdumbbell#define COLOR_8_8_8_8         0x1a
42254885Sdumbbell
43254885Sdumbbell#define RECT_UNIT_H           32
44254885Sdumbbell#define RECT_UNIT_W           (RADEON_GPU_PAGE_SIZE / 4 / RECT_UNIT_H)
45254885Sdumbbell
46254885Sdumbbell#define __RADEON_BLIT_COMMON_H__
47254885Sdumbbell#endif
48