summaryrefslogtreecommitdiff
path: root/r600_winsys.h
blob: 9897b51bb50d5c3cc6814cbaad965ad8d056984e (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
/*
 * 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_WINSYS_H
#define R600_WINSYS_H

#include "r600_atom_kernel.h"

/* opaque structure */
struct radeon_device *rdev;
struct radeon_atom *atom;

struct r600_request {
	u32			type;
	void			*data;
	u32			nbo;
	struct radeon_bo	*bo[32];
};

extern int r600_batches_queue(struct radeon_device*, struct r600_request*);
extern int r600_batches_flush(struct radeon_device*);
extern struct radeon_atom *r600_atom_create(struct radeon_device*, struct r600_request*);
extern int r600_atoms_init(struct radeon_device *rdev);
extern void r600_atoms_release(struct radeon_device *rdev);

/* core functions */
extern int radeon_device_init(struct radeon_device **rdev, struct radeon_bo_manager *bom, int fd);
extern void radeon_device_release(struct radeon_device *rdev);

#endif