Modules/NVidia - Stub driver (not compiled)
authorJohn Hodge <[email protected]>
Wed, 8 Aug 2012 10:34:10 +0000 (18:34 +0800)
committerJohn Hodge <[email protected]>
Wed, 8 Aug 2012 10:34:10 +0000 (18:34 +0800)
KernelLand/Modules/Display/NVidia/main.c [new file with mode: 0644]
KernelLand/Modules/Display/NVidia/regs.c [new file with mode: 0644]
KernelLand/Modules/Display/NVidia/regs.h [new file with mode: 0644]

diff --git a/KernelLand/Modules/Display/NVidia/main.c b/KernelLand/Modules/Display/NVidia/main.c
new file mode 100644 (file)
index 0000000..7ebbca3
--- /dev/null
@@ -0,0 +1,35 @@
+/*
+ * Acess2 NVidia Graphics Driver
+ * - By John Hodge (thePowersGang)
+ * 
+ * main.c
+ * - Driver Core
+ *
+ * Reference: linux/drivers/video/nvidia
+ */
+#define DEBUG  1
+#define VERSION VER2(0,1)
+#include <acess.h>
+#include <modules.h>
+#include <fs_devfs.h>
+#include <drv_pci.h>
+#include "regs.h"
+
+// === PROTOTYPES ===
+ int   NV_Install(char **Arguments);
+ int   NV_Cleanup(void);
+
+// === GLOBALS ===
+MODULE_DEFINE(0, Video_NVidia, VERSION, NV_Install, NV_Cleanup, NULL);
+
+// === CODE ===
+int NV_Install(char **Arguments)
+{
+       return MODERR_NOTNEEDED;
+}
+
+int NV_Cleanup(void)
+{
+       return 0;
+}
+
diff --git a/KernelLand/Modules/Display/NVidia/regs.c b/KernelLand/Modules/Display/NVidia/regs.c
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/KernelLand/Modules/Display/NVidia/regs.h b/KernelLand/Modules/Display/NVidia/regs.h
new file mode 100644 (file)
index 0000000..6c6fd56
--- /dev/null
@@ -0,0 +1,43 @@
+/*
+ * Acess2 NVidia Graphics Driver
+ * - By John Hodge (thePowersGang)
+ * 
+ * regs.h
+ * - Register definitions
+ */
+#ifndef _NVIDIA__REGS_H_
+#define _NVIDIA__REGS_H_
+
+// CRT Controller Registers
+enum eNVRegs_CRTC
+{
+       NUM_CRTC_REGS
+};
+
+// Attribute Controller registers
+enum eNVRegs_ATC
+{
+       NUM_ATC_REGS
+};
+
+enum eNVRegs_GRC
+{
+       NUM_GRC_REGS
+};
+
+// Sequencer registers
+enum eNVRegs_SEQ
+{
+       NUM_SEQ_REGS
+};
+
+struct sNVRegDump
+{
+       Uint8   atc_regs[NUM_ATC_REGS];
+       Uint8   crtc_regs[NUM_CRTC_REGS];
+       Uint8   gra_regs[NUM_GRC_REGS];
+       Uint8   seq_regs[NUM_SEQ_REGS];
+};
+
+#endif
+

UCC git Repository :: git.ucc.asn.au