blob: fdf7942bb0ff6573691af2b615a59ab227a8081c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
/*
* Copyright © 2010 Jerome Glisse <glisse@freedesktop.org>
*
* This file is free software; you can redistribute it and/or modify
* it under the terms of version 2 of the GNU General Public License
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#ifndef R600_ATOM_H
#define R600_ATOM_H
#include "r600_atom_kernel.h"
#include "list.h"
struct radeon_device;
/* public API */
struct drm_radeon_atom {
u32 type;
u32 id;
void *data;
};
struct r600_state_container {
void *data;
u32 nbo;
struct radeon_bo *bo[32];
};
/* R600 */
extern void r600_shader_disassemble(u32 *bytecode, u32 ndwords);
extern int r600_atoms_init(struct radeon_device *rdev);
extern void r600_atoms_release(struct radeon_device *rdev);
extern struct radeon_atom *r600_atom_create(struct radeon_device *rdev, struct drm_radeon_atom *patom);
extern int r600_batches_flush(struct radeon_device *rdev);
#endif
|