Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
5132f377
Commit
5132f377
authored
Mar 08, 2012
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nve0/fifo: initial implementation
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
d0f3c7e4
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
477 additions
and
5 deletions
+477
-5
drivers/gpu/drm/nouveau/Makefile
drivers/gpu/drm/nouveau/Makefile
+1
-0
drivers/gpu/drm/nouveau/nouveau_drv.h
drivers/gpu/drm/nouveau/nouveau_drv.h
+9
-1
drivers/gpu/drm/nouveau/nouveau_state.c
drivers/gpu/drm/nouveau/nouveau_state.c
+8
-4
drivers/gpu/drm/nouveau/nve0_fifo.c
drivers/gpu/drm/nouveau/nve0_fifo.c
+459
-0
No files found.
drivers/gpu/drm/nouveau/Makefile
View file @
5132f377
...
...
@@ -17,6 +17,7 @@ nouveau-y := nouveau_drv.o nouveau_state.o nouveau_channel.o nouveau_mem.o \
nv04_fb.o nv10_fb.o nv20_fb.o nv30_fb.o nv40_fb.o
\
nv50_fb.o nvc0_fb.o
\
nv04_fifo.o nv10_fifo.o nv40_fifo.o nv50_fifo.o nvc0_fifo.o
\
nve0_fifo.o
\
nv04_graph.o nv10_graph.o nv20_graph.o
\
nv40_graph.o nv50_graph.o nvc0_graph.o
\
nv40_grctx.o nv50_grctx.o nvc0_grctx.o
\
...
...
drivers/gpu/drm/nouveau/nouveau_drv.h
View file @
5132f377
...
...
@@ -70,7 +70,7 @@ struct nouveau_mem;
#define MAX_NUM_DCB_ENTRIES 16
#define NOUVEAU_MAX_CHANNEL_NR
128
#define NOUVEAU_MAX_CHANNEL_NR
4096
#define NOUVEAU_MAX_TILE_NR 15
struct
nouveau_mem
{
...
...
@@ -1260,6 +1260,14 @@ extern void nvc0_fifo_destroy_context(struct nouveau_channel *);
extern
int
nvc0_fifo_load_context
(
struct
nouveau_channel
*
);
extern
int
nvc0_fifo_unload_context
(
struct
drm_device
*
);
/* nve0_fifo.c */
extern
int
nve0_fifo_init
(
struct
drm_device
*
);
extern
void
nve0_fifo_takedown
(
struct
drm_device
*
);
extern
int
nve0_fifo_channel_id
(
struct
drm_device
*
);
extern
int
nve0_fifo_create_context
(
struct
nouveau_channel
*
);
extern
void
nve0_fifo_destroy_context
(
struct
nouveau_channel
*
);
extern
int
nve0_fifo_unload_context
(
struct
drm_device
*
);
/* nv04_graph.c */
extern
int
nv04_graph_create
(
struct
drm_device
*
);
extern
int
nv04_graph_object_new
(
struct
nouveau_channel
*
,
int
,
u32
,
u16
);
...
...
drivers/gpu/drm/nouveau/nouveau_state.c
View file @
5132f377
...
...
@@ -496,13 +496,17 @@ static int nouveau_init_engine_ptrs(struct drm_device *dev)
engine
->
timer
.
takedown
=
nv04_timer_takedown
;
engine
->
fb
.
init
=
nvc0_fb_init
;
engine
->
fb
.
takedown
=
nvc0_fb_takedown
;
engine
->
fifo
.
channels
=
0
;
engine
->
fifo
.
init
=
n
ouveau_stub
_init
;
engine
->
fifo
.
takedown
=
n
ouveau_stub
_takedown
;
engine
->
fifo
.
channels
=
4096
;
engine
->
fifo
.
init
=
n
ve0_fifo
_init
;
engine
->
fifo
.
takedown
=
n
ve0_fifo
_takedown
;
engine
->
fifo
.
disable
=
nvc0_fifo_disable
;
engine
->
fifo
.
enable
=
nvc0_fifo_enable
;
engine
->
fifo
.
reassign
=
nvc0_fifo_reassign
;
engine
->
fifo
.
unload_context
=
nouveau_stub_init
;
engine
->
fifo
.
channel_id
=
nve0_fifo_channel_id
;
engine
->
fifo
.
create_context
=
nve0_fifo_create_context
;
engine
->
fifo
.
destroy_context
=
nve0_fifo_destroy_context
;
engine
->
fifo
.
load_context
=
nvc0_fifo_load_context
;
engine
->
fifo
.
unload_context
=
nve0_fifo_unload_context
;
engine
->
display
.
early_init
=
nouveau_stub_init
;
engine
->
display
.
late_takedown
=
nouveau_stub_takedown
;
engine
->
display
.
create
=
nvd0_display_create
;
...
...
drivers/gpu/drm/nouveau/nve0_fifo.c
0 → 100644
View file @
5132f377
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment