From: John Hodge Date: Wed, 8 Aug 2012 10:34:10 +0000 (+0800) Subject: Modules/NVidia - Stub driver (not compiled) X-Git-Tag: rel0.15~706^2~52 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=822dfd584c48dd1baf5f64f8397dc220adef9cfa;p=tpg%2Facess2.git Modules/NVidia - Stub driver (not compiled) --- diff --git a/KernelLand/Modules/Display/NVidia/main.c b/KernelLand/Modules/Display/NVidia/main.c new file mode 100644 index 00000000..7ebbca39 --- /dev/null +++ b/KernelLand/Modules/Display/NVidia/main.c @@ -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 +#include +#include +#include +#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 index 00000000..e69de29b diff --git a/KernelLand/Modules/Display/NVidia/regs.h b/KernelLand/Modules/Display/NVidia/regs.h new file mode 100644 index 00000000..6c6fd56b --- /dev/null +++ b/KernelLand/Modules/Display/NVidia/regs.h @@ -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 +