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
devinit.h
Go to the documentation of this file.
1
#ifndef __NOUVEAU_DEVINIT_H__
2
#define __NOUVEAU_DEVINIT_H__
3
4
#include <
core/subdev.h
>
5
#include <
core/device.h
>
6
7
struct
nouveau_devinit
{
8
struct
nouveau_subdev
base
;
9
bool
post
;
10
void
(*
meminit
)(
struct
nouveau_devinit
*);
11
};
12
13
static
inline
struct
nouveau_devinit
*
14
nouveau_devinit
(
void
*obj)
15
{
16
return
(
void
*)nv_device(obj)->subdev[
NVDEV_SUBDEV_DEVINIT
];
17
}
18
19
#define nouveau_devinit_create(p,e,o,d) \
20
nouveau_devinit_create_((p), (e), (o), sizeof(**d), (void **)d)
21
#define nouveau_devinit_destroy(p) \
22
nouveau_subdev_destroy(&(p)->base)
23
24
int
nouveau_devinit_create_
(
struct
nouveau_object
*,
struct
nouveau_object
*,
25
struct
nouveau_oclass
*,
int
,
void
**);
26
int
nouveau_devinit_init
(
struct
nouveau_devinit
*);
27
int
nouveau_devinit_fini
(
struct
nouveau_devinit
*,
bool
suspend
);
28
29
extern
struct
nouveau_oclass
nv04_devinit_oclass
;
30
extern
struct
nouveau_oclass
nv05_devinit_oclass
;
31
extern
struct
nouveau_oclass
nv10_devinit_oclass
;
32
extern
struct
nouveau_oclass
nv1a_devinit_oclass
;
33
extern
struct
nouveau_oclass
nv20_devinit_oclass
;
34
extern
struct
nouveau_oclass
nv50_devinit_oclass
;
35
36
void
nv04_devinit_dtor
(
struct
nouveau_object
*);
37
int
nv04_devinit_init
(
struct
nouveau_object
*);
38
int
nv04_devinit_fini
(
struct
nouveau_object
*,
bool
);
39
40
#endif
Generated on Thu Jan 10 2013 13:32:42 for Linux Kernel by
1.8.2