File: ltcg.h

package info (click to toggle)
linux 3.14.12-1~bpo70%2B1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy-backports
  • size: 666,320 kB
  • sloc: ansic: 11,822,312; asm: 273,382; xml: 46,774; perl: 44,603; makefile: 29,283; sh: 7,245; python: 6,582; cpp: 5,100; yacc: 4,233; lex: 2,167; awk: 737; pascal: 231; lisp: 218; sed: 30
file content (40 lines) | stat: -rw-r--r-- 1,290 bytes parent folder | download | duplicates (4)
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
#ifndef __NOUVEAU_LTCG_H__
#define __NOUVEAU_LTCG_H__

#include <core/subdev.h>
#include <core/device.h>

struct nouveau_mm_node;

struct nouveau_ltcg {
	struct nouveau_subdev base;

	int  (*tags_alloc)(struct nouveau_ltcg *, u32 count,
	                   struct nouveau_mm_node **);
	void (*tags_free)(struct nouveau_ltcg *, struct nouveau_mm_node **);
	void (*tags_clear)(struct nouveau_ltcg *, u32 first, u32 count);
};

static inline struct nouveau_ltcg *
nouveau_ltcg(void *obj)
{
	return (void *)nv_device(obj)->subdev[NVDEV_SUBDEV_LTCG];
}

#define nouveau_ltcg_create(p,e,o,d)                                           \
	nouveau_subdev_create_((p), (e), (o), 0, "PLTCG", "level2",            \
			       sizeof(**d), (void **)d)
#define nouveau_ltcg_destroy(p)                                                \
	nouveau_subdev_destroy(&(p)->base)
#define nouveau_ltcg_init(p)                                                   \
	nouveau_subdev_init(&(p)->base)
#define nouveau_ltcg_fini(p,s)                                                 \
	nouveau_subdev_fini(&(p)->base, (s))

#define _nouveau_ltcg_dtor _nouveau_subdev_dtor
#define _nouveau_ltcg_init _nouveau_subdev_init
#define _nouveau_ltcg_fini _nouveau_subdev_fini

extern struct nouveau_oclass nvc0_ltcg_oclass;

#endif