]> git.karo-electronics.de Git - linux-beck.git/commitdiff
drm/nv04/disp: hide all the cruft away in its own little hole
authorBen Skeggs <bskeggs@redhat.com>
Thu, 21 Mar 2013 05:45:11 +0000 (15:45 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Fri, 26 Apr 2013 05:37:51 +0000 (15:37 +1000)
It'd be pretty awesome if someone would care enough to port this all
properly to a class interface, perhaps submitting a command stream to
the core via a sw object on PFIFO (emulating how EVO works basically,
and also what nvidia have done forever..)..

But, this seems unlikely given how old this hardware is now, so, lets
just hide it away.

There's a heap of other bits and pieces laying around that are still
tangled.  I'll (re)move them in pieces.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
24 files changed:
drivers/gpu/drm/nouveau/Makefile
drivers/gpu/drm/nouveau/dispnv04/Makefile [new file with mode: 0644]
drivers/gpu/drm/nouveau/dispnv04/arb.c [moved from drivers/gpu/drm/nouveau/nouveau_calc.c with 99% similarity]
drivers/gpu/drm/nouveau/dispnv04/crtc.c [moved from drivers/gpu/drm/nouveau/nv04_crtc.c with 99% similarity]
drivers/gpu/drm/nouveau/dispnv04/cursor.c [moved from drivers/gpu/drm/nouveau/nv04_cursor.c with 98% similarity]
drivers/gpu/drm/nouveau/dispnv04/dac.c [moved from drivers/gpu/drm/nouveau/nv04_dac.c with 99% similarity]
drivers/gpu/drm/nouveau/dispnv04/dfp.c [moved from drivers/gpu/drm/nouveau/nv04_dfp.c with 99% similarity]
drivers/gpu/drm/nouveau/dispnv04/disp.c [moved from drivers/gpu/drm/nouveau/nv04_display.c with 99% similarity]
drivers/gpu/drm/nouveau/dispnv04/disp.h [moved from drivers/gpu/drm/nouveau/nv04_display.h with 100% similarity]
drivers/gpu/drm/nouveau/dispnv04/hw.c [moved from drivers/gpu/drm/nouveau/nouveau_hw.c with 99% similarity]
drivers/gpu/drm/nouveau/dispnv04/hw.h [moved from drivers/gpu/drm/nouveau/nouveau_hw.h with 99% similarity]
drivers/gpu/drm/nouveau/dispnv04/nvreg.h [moved from drivers/gpu/drm/nouveau/nvreg.h with 100% similarity]
drivers/gpu/drm/nouveau/dispnv04/tvmodesnv17.c [moved from drivers/gpu/drm/nouveau/nv17_tv_modes.c with 99% similarity]
drivers/gpu/drm/nouveau/dispnv04/tvnv04.c [moved from drivers/gpu/drm/nouveau/nv04_tv.c with 99% similarity]
drivers/gpu/drm/nouveau/dispnv04/tvnv17.c [moved from drivers/gpu/drm/nouveau/nv17_tv.c with 99% similarity]
drivers/gpu/drm/nouveau/dispnv04/tvnv17.h [moved from drivers/gpu/drm/nouveau/nv17_tv.h with 100% similarity]
drivers/gpu/drm/nouveau/nouveau_bios.c
drivers/gpu/drm/nouveau/nouveau_bios.h
drivers/gpu/drm/nouveau/nouveau_connector.c
drivers/gpu/drm/nouveau/nouveau_display.c
drivers/gpu/drm/nouveau/nouveau_encoder.h
drivers/gpu/drm/nouveau/nv04_pm.c
drivers/gpu/drm/nouveau/nv40_pm.c
drivers/gpu/drm/nouveau/nv50_pm.c

index 0c65479c1b6f802b3c927beb28db071e5a60a4b8..1a8f6e9f55583258bc4a035ce71342e792d132c3 100644 (file)
@@ -225,9 +225,7 @@ nouveau-y += nouveau_connector.o nouveau_dp.o
 nouveau-y += nv04_fbcon.o nv50_fbcon.o nvc0_fbcon.o
 
 # drm/kms/nv04:nv50
-nouveau-y += nouveau_hw.o nouveau_calc.o
-nouveau-y += nv04_dac.o nv04_dfp.o nv04_tv.o nv17_tv.o nv17_tv_modes.o
-nouveau-y += nv04_crtc.o nv04_display.o nv04_cursor.o
+include $(src)/dispnv04/Makefile
 
 # drm/kms/nv50-
 nouveau-y += nv50_display.o
diff --git a/drivers/gpu/drm/nouveau/dispnv04/Makefile b/drivers/gpu/drm/nouveau/dispnv04/Makefile
new file mode 100644 (file)
index 0000000..ea3f5b8
--- /dev/null
@@ -0,0 +1,10 @@
+nouveau-y += dispnv04/arb.o
+nouveau-y += dispnv04/crtc.o
+nouveau-y += dispnv04/cursor.o
+nouveau-y += dispnv04/dac.o
+nouveau-y += dispnv04/dfp.o
+nouveau-y += dispnv04/disp.o
+nouveau-y += dispnv04/hw.o
+nouveau-y += dispnv04/tvmodesnv17.o
+nouveau-y += dispnv04/tvnv04.o
+nouveau-y += dispnv04/tvnv17.o
similarity index 99%
rename from drivers/gpu/drm/nouveau/nouveau_calc.c
rename to drivers/gpu/drm/nouveau/dispnv04/arb.c
index 6da576445b3d5c16d35132c088053f8514ffea5d..2e70462883e89efe2be217c37f85d1754d5426a3 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "nouveau_drm.h"
 #include "nouveau_reg.h"
-#include "nouveau_hw.h"
+#include "hw.h"
 
 /****************************************************************************\
 *                                                                            *
similarity index 99%
rename from drivers/gpu/drm/nouveau/nv04_crtc.c
rename to drivers/gpu/drm/nouveau/dispnv04/crtc.c
index 6578cd28c556425b3634517facb5d1cc5fc6aa41..0782bd2f1e04c4076c715c3bac9af271fa76348a 100644 (file)
 #include "nouveau_encoder.h"
 #include "nouveau_connector.h"
 #include "nouveau_crtc.h"
-#include "nouveau_hw.h"
+#include "hw.h"
 #include "nvreg.h"
 #include "nouveau_fbcon.h"
-#include "nv04_display.h"
+#include "disp.h"
 
 #include <subdev/bios/pll.h>
 #include <subdev/clock.h>
@@ -1070,4 +1070,3 @@ nv04_crtc_create(struct drm_device *dev, int crtc_num)
 
        return 0;
 }
-
similarity index 98%
rename from drivers/gpu/drm/nouveau/nv04_cursor.c
rename to drivers/gpu/drm/nouveau/dispnv04/cursor.c
index fe86f0de348f128a8f3de39e8943664289498a90..a810303169de97922016bcbf5206331dd8fbb53a 100644 (file)
@@ -3,7 +3,7 @@
 #include "nouveau_drm.h"
 #include "nouveau_reg.h"
 #include "nouveau_crtc.h"
-#include "nouveau_hw.h"
+#include "hw.h"
 
 static void
 nv04_cursor_show(struct nouveau_crtc *nv_crtc, bool update)
@@ -68,4 +68,3 @@ nv04_cursor_init(struct nouveau_crtc *crtc)
        crtc->cursor.show = nv04_cursor_show;
        return 0;
 }
-
similarity index 99%
rename from drivers/gpu/drm/nouveau/nv04_dac.c
rename to drivers/gpu/drm/nouveau/dispnv04/dac.c
index 64f7020fb605dcaff92163aa161d174ad0d77a23..434b920f6bd4d052dc1a50fc4be9d34f58d955c9 100644 (file)
@@ -31,7 +31,7 @@
 #include "nouveau_encoder.h"
 #include "nouveau_connector.h"
 #include "nouveau_crtc.h"
-#include "nouveau_hw.h"
+#include "hw.h"
 #include "nvreg.h"
 
 #include <subdev/bios/gpio.h>
similarity index 99%
rename from drivers/gpu/drm/nouveau/nv04_dfp.c
rename to drivers/gpu/drm/nouveau/dispnv04/dfp.c
index 7e24cdf1cb3944d1b343829182cf321b026d2869..93dd23ff00931c473af05dd8280aa6e2fb40369e 100644 (file)
@@ -32,7 +32,7 @@
 #include "nouveau_encoder.h"
 #include "nouveau_connector.h"
 #include "nouveau_crtc.h"
-#include "nouveau_hw.h"
+#include "hw.h"
 #include "nvreg.h"
 
 #include <drm/i2c/sil164.h>
similarity index 99%
rename from drivers/gpu/drm/nouveau/nv04_display.c
rename to drivers/gpu/drm/nouveau/dispnv04/disp.c
index ad48444c385c1781aca7e86ced7515214807d74d..4908d3fd048611a048051cbb5d5c27d56c6f9b60 100644 (file)
@@ -30,7 +30,7 @@
 
 #include "nouveau_drm.h"
 #include "nouveau_reg.h"
-#include "nouveau_hw.h"
+#include "hw.h"
 #include "nouveau_encoder.h"
 #include "nouveau_connector.h"
 
similarity index 99%
rename from drivers/gpu/drm/nouveau/nouveau_hw.c
rename to drivers/gpu/drm/nouveau/dispnv04/hw.c
index 617a06ffdb462e932dda33d24b1f7ad82890c6be..973056b86207d89f191e8e37c872d7f7d66ca9b2 100644 (file)
@@ -24,7 +24,7 @@
 
 #include <drm/drmP.h>
 #include "nouveau_drm.h"
-#include "nouveau_hw.h"
+#include "hw.h"
 
 #include <subdev/bios/pll.h>
 #include <subdev/clock.h>
similarity index 99%
rename from drivers/gpu/drm/nouveau/nouveau_hw.h
rename to drivers/gpu/drm/nouveau/dispnv04/hw.h
index 7dff1021fab4482651653147951da24b60ddf322..eeb70d912d99490e1833f9461107c0a42ec7dbd7 100644 (file)
@@ -24,7 +24,8 @@
 #define __NOUVEAU_HW_H__
 
 #include <drm/drmP.h>
-#include "nv04_display.h"
+#include "disp.h"
+#include "nvreg.h"
 
 #include <subdev/bios/pll.h>
 
similarity index 99%
rename from drivers/gpu/drm/nouveau/nv17_tv_modes.c
rename to drivers/gpu/drm/nouveau/dispnv04/tvmodesnv17.c
index 1cdfe2a5875d8f980c018c5cd222cccd2112a7b2..08c6f5e5061095f1d62f73676c7118c0e1ad4553 100644 (file)
@@ -29,8 +29,8 @@
 #include "nouveau_drm.h"
 #include "nouveau_encoder.h"
 #include "nouveau_crtc.h"
-#include "nouveau_hw.h"
-#include "nv17_tv.h"
+#include "hw.h"
+#include "tvnv17.h"
 
 char *nv17_tv_norm_names[NUM_TV_NORMS] = {
        [TV_NORM_PAL] = "PAL",
similarity index 99%
rename from drivers/gpu/drm/nouveau/nv04_tv.c
rename to drivers/gpu/drm/nouveau/dispnv04/tvnv04.c
index 4a69ccdef9b4baf751d6547614cb8a1056271891..bf13db4e86317191fcda44ada046dc35c1fad161 100644 (file)
@@ -30,7 +30,7 @@
 #include "nouveau_encoder.h"
 #include "nouveau_connector.h"
 #include "nouveau_crtc.h"
-#include "nouveau_hw.h"
+#include "hw.h"
 #include <drm/drm_crtc_helper.h>
 
 #include <drm/i2c/ch7006.h>
similarity index 99%
rename from drivers/gpu/drm/nouveau/nv17_tv.c
rename to drivers/gpu/drm/nouveau/dispnv04/tvnv17.c
index 977e42be20500d1b8f42b748f08c8691f74c9a01..acef48f4a4ea2c62c75172ae38fb7f85646d39fa 100644 (file)
@@ -31,8 +31,8 @@
 #include "nouveau_encoder.h"
 #include "nouveau_connector.h"
 #include "nouveau_crtc.h"
-#include "nouveau_hw.h"
-#include "nv17_tv.h"
+#include "hw.h"
+#include "tvnv17.h"
 
 #include <core/device.h>
 
index 50a6dd02f7c5cc45acfcb739fe233c2d56369cbd..6aa2137e093ab7770ae4ce31a135156a4c5f5d1f 100644 (file)
@@ -28,7 +28,7 @@
 
 #include "nouveau_drm.h"
 #include "nouveau_reg.h"
-#include "nouveau_hw.h"
+#include "dispnv04/hw.h"
 #include "nouveau_encoder.h"
 
 #include <linux/io-mapping.h>
index 7ccd28f11adf0405bb8bedfa3a465ba212a4c818..0067586eb015b51acb5796a26646a812e9b29df3 100644 (file)
@@ -24,8 +24,6 @@
 #ifndef __NOUVEAU_DISPBIOS_H__
 #define __NOUVEAU_DISPBIOS_H__
 
-#include "nvreg.h"
-
 #define DCB_MAX_NUM_ENTRIES 16
 #define DCB_MAX_NUM_I2C_ENTRIES 16
 #define DCB_MAX_NUM_GPIO_ENTRIES 32
index 4dd7ae2ac6c692b61e4f63a813bae7b49abcd808..4da776f344d70d205297df5e2d0fb351898e6d73 100644 (file)
@@ -32,7 +32,7 @@
 
 #include "nouveau_reg.h"
 #include "nouveau_drm.h"
-#include "nouveau_hw.h"
+#include "dispnv04/hw.h"
 #include "nouveau_acpi.h"
 
 #include "nouveau_display.h"
index 4610c3a29bbef4d626e5643960cd785950c7056b..7bf22d4a3d9679c1553e0b9846802abf11c729be 100644 (file)
@@ -28,7 +28,7 @@
 #include <drm/drm_crtc_helper.h>
 
 #include "nouveau_fbcon.h"
-#include "nouveau_hw.h"
+#include "dispnv04/hw.h"
 #include "nouveau_crtc.h"
 #include "nouveau_dma.h"
 #include "nouveau_gem.h"
index e24341229d5e0e6d3ed330a5895a478d32ccdf69..24660c0f713d636f07804e0125e4d9b3499fbe27 100644 (file)
@@ -30,7 +30,7 @@
 #include <subdev/bios/dcb.h>
 
 #include <drm/drm_encoder_slave.h>
-#include "nv04_display.h"
+#include "dispnv04/disp.h"
 
 #define NV_DPMS_CLEARED 0x80
 
index 2a0cc9d0614adfe9a0838ad83a7ada2034f1e40a..27afc0ea28b048083a872dae2d6578e57a86e4a3 100644 (file)
@@ -25,7 +25,7 @@
 #include <drm/drmP.h>
 #include "nouveau_drm.h"
 #include "nouveau_reg.h"
-#include "nouveau_hw.h"
+#include "dispnv04/hw.h"
 #include "nouveau_pm.h"
 
 #include <subdev/bios/pll.h>
index 3382064c7f33c6e55a7b4d310d2d972797d515b0..3af5bcd0b203f904440fe33445d8da4098cf0bb2 100644 (file)
@@ -26,7 +26,7 @@
 #include "nouveau_drm.h"
 #include "nouveau_bios.h"
 #include "nouveau_pm.h"
-#include "nouveau_hw.h"
+#include "dispnv04/hw.h"
 
 #include <subdev/bios/pll.h>
 #include <subdev/clock.h>
index 8bd5d2781baf00805ce99100422594d5aecfc395..69620e39c90c8b0531fa561b4e19490c8475e241 100644 (file)
@@ -25,7 +25,7 @@
 #include <drm/drmP.h>
 #include "nouveau_drm.h"
 #include "nouveau_bios.h"
-#include "nouveau_hw.h"
+#include "dispnv04/hw.h"
 #include "nouveau_pm.h"
 #include "nouveau_hwsq.h"