Linux Kernel
3.7.1
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
drivers
gpu
drm
nouveau
core
include
subdev
mc.h
Go to the documentation of this file.
1
#ifndef __NOUVEAU_MC_H__
2
#define __NOUVEAU_MC_H__
3
4
#include <
core/subdev.h
>
5
#include <
core/device.h
>
6
7
struct
nouveau_mc_intr
{
8
u32
stat
;
9
u32
unit
;
10
};
11
12
struct
nouveau_mc
{
13
struct
nouveau_subdev
base
;
14
const
struct
nouveau_mc_intr
*
intr_map
;
15
};
16
17
static
inline
struct
nouveau_mc
*
18
nouveau_mc
(
void
*obj)
19
{
20
return
(
void
*)nv_device(obj)->subdev[
NVDEV_SUBDEV_MC
];
21
}
22
23
#define nouveau_mc_create(p,e,o,d) \
24
nouveau_subdev_create_((p), (e), (o), 0, "PMC", "master", \
25
sizeof(**d), (void **)d)
26
#define nouveau_mc_destroy(p) \
27
nouveau_subdev_destroy(&(p)->base)
28
#define nouveau_mc_init(p) \
29
nouveau_subdev_init(&(p)->base)
30
#define nouveau_mc_fini(p,s) \
31
nouveau_subdev_fini(&(p)->base, (s))
32
33
#define _nouveau_mc_dtor _nouveau_subdev_dtor
34
#define _nouveau_mc_init _nouveau_subdev_init
35
#define _nouveau_mc_fini _nouveau_subdev_fini
36
37
extern
struct
nouveau_oclass
nv04_mc_oclass
;
38
extern
struct
nouveau_oclass
nv44_mc_oclass
;
39
extern
struct
nouveau_oclass
nv50_mc_oclass
;
40
extern
struct
nouveau_oclass
nv98_mc_oclass
;
41
extern
struct
nouveau_oclass
nvc0_mc_oclass
;
42
43
void
nouveau_mc_intr
(
struct
nouveau_subdev
*);
44
45
extern
const
struct
nouveau_mc_intr
nv04_mc_intr
[];
46
int
nv04_mc_init
(
struct
nouveau_object
*);
47
int
nv50_mc_init
(
struct
nouveau_object
*);
48
49
#endif
Generated on Thu Jan 10 2013 13:10:52 for Linux Kernel by
1.8.2