Skip to content

Commit

Permalink
drm/nouveau: implement module init functions in nouveau_drm.c
Browse files Browse the repository at this point in the history
These currently just call the existing ones in nouveau_drv.c, but will be
extended in upcoming commits.  This needed to be separated from the current
code as there will be some header clashes until things are ported.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
  • Loading branch information
Ben Skeggs committed Oct 3, 2012
1 parent 9274f4a commit 9458029
Show file tree
Hide file tree
Showing 28 changed files with 381 additions and 91 deletions.
3 changes: 2 additions & 1 deletion drivers/gpu/drm/nouveau/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ nouveau-y += core/engine/mpeg/nv50.o
nouveau-y += core/engine/ppp/nv98.o
nouveau-y += core/engine/vp/nv84.o

nouveau-y += nouveau_drv.o nouveau_state.o nouveau_channel.o nouveau_mem.o \
nouveau-y += nouveau_drm.o \
nouveau_drv.o nouveau_state.o nouveau_channel.o nouveau_mem.o \
nouveau_gpuobj.o nouveau_irq.o nouveau_notifier.o \
nouveau_sgdma.o nouveau_dma.o nouveau_util.o \
nouveau_bo.o nouveau_fence.o nouveau_gem.o nouveau_ttm.o \
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpu/drm/nouveau/core/engine/graph/nv04.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

#include "drmP.h"
#include "drm.h"
#include "nouveau_drm.h"
#include <nouveau_drm.h>
#include "nouveau_drv.h"
#include "nouveau_hw.h"
#include "nouveau_util.h"
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpu/drm/nouveau/core/engine/graph/nv10.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

#include "drmP.h"
#include "drm.h"
#include "nouveau_drm.h"
#include <nouveau_drm.h>
#include "nouveau_drv.h"
#include "nouveau_util.h"

Expand Down
2 changes: 1 addition & 1 deletion drivers/gpu/drm/nouveau/core/engine/graph/nv20.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "drmP.h"
#include "drm.h"
#include "nouveau_drv.h"
#include "nouveau_drm.h"
#include <nouveau_drm.h>

/*
* NV20
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpu/drm/nouveau/core/subdev/fb/nv04.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "drmP.h"
#include "drm.h"
#include "nouveau_drv.h"
#include "nouveau_drm.h"
#include <nouveau_drm.h>

int
nv04_fb_vram_init(struct drm_device *dev)
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpu/drm/nouveau/core/subdev/fb/nv10.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "drmP.h"
#include "drm.h"
#include "nouveau_drv.h"
#include "nouveau_drm.h"
#include <nouveau_drm.h>

void
nv10_fb_init_tile_region(struct drm_device *dev, int i, uint32_t addr,
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpu/drm/nouveau/core/subdev/fb/nv20.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "drmP.h"
#include "drm.h"
#include "nouveau_drv.h"
#include "nouveau_drm.h"
#include <nouveau_drm.h>

static struct drm_mm_node *
nv20_fb_alloc_tag(struct drm_device *dev, uint32_t size)
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpu/drm/nouveau/core/subdev/fb/nv30.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include "drmP.h"
#include "drm.h"
#include "nouveau_drv.h"
#include "nouveau_drm.h"
#include <nouveau_drm.h>

void
nv30_fb_init_tile_region(struct drm_device *dev, int i, uint32_t addr,
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpu/drm/nouveau/core/subdev/fb/nv40.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "drmP.h"
#include "drm.h"
#include "nouveau_drv.h"
#include "nouveau_drm.h"
#include <nouveau_drm.h>

void
nv40_fb_set_tile_region(struct drm_device *dev, int i)
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpu/drm/nouveau/core/subdev/fb/nv50.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "drmP.h"
#include "drm.h"
#include "nouveau_drv.h"
#include "nouveau_drm.h"
#include <nouveau_drm.h>
#include <engine/fifo.h>

struct nv50_fb_priv {
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpu/drm/nouveau/core/subdev/fb/nvc0.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include "drmP.h"
#include "drm.h"
#include "nouveau_drv.h"
#include "nouveau_drm.h"
#include <nouveau_drm.h>

struct nvc0_fb_priv {
struct page *r100c10_page;
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpu/drm/nouveau/core/subdev/mc/nv04.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "drmP.h"
#include "drm.h"
#include "nouveau_drv.h"
#include "nouveau_drm.h"
#include <nouveau_drm.h>

int
nv04_mc_init(struct drm_device *dev)
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpu/drm/nouveau/core/subdev/mc/nv40.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "drmP.h"
#include "drm.h"
#include "nouveau_drv.h"
#include "nouveau_drm.h"
#include <nouveau_drm.h>

int
nv40_mc_init(struct drm_device *dev)
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpu/drm/nouveau/core/subdev/timer/nv04.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "drmP.h"
#include "drm.h"
#include "nouveau_drv.h"
#include "nouveau_drm.h"
#include <nouveau_drm.h>
#include "nouveau_hw.h"

int
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpu/drm/nouveau/nouveau_acpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include "drm_sarea.h"
#include "drm_crtc_helper.h"
#include "nouveau_drv.h"
#include "nouveau_drm.h"
#include <nouveau_drm.h>
#include "nv50_display.h"
#include "nouveau_connector.h"

Expand Down
2 changes: 1 addition & 1 deletion drivers/gpu/drm/nouveau/nouveau_backlight.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

#include "drmP.h"
#include "nouveau_drv.h"
#include "nouveau_drm.h"
#include <nouveau_drm.h>
#include "nouveau_reg.h"
#include "nouveau_encoder.h"

Expand Down
2 changes: 1 addition & 1 deletion drivers/gpu/drm/nouveau/nouveau_bo.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#include "drmP.h"
#include "ttm/ttm_page_alloc.h"

#include "nouveau_drm.h"
#include <nouveau_drm.h>
#include "nouveau_drv.h"
#include "nouveau_dma.h"
#include <core/mm.h>
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpu/drm/nouveau/nouveau_channel.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include "drmP.h"
#include "drm.h"
#include "nouveau_drv.h"
#include "nouveau_drm.h"
#include <nouveau_drm.h>
#include "nouveau_dma.h"
#include <engine/fifo.h>
#include <core/ramht.h>
Expand Down
Loading

0 comments on commit 9458029

Please sign in to comment.