From fd9026936fa7b68ead2e603f5bfcaf3501bee3e5 Mon Sep 17 00:00:00 2001 From: Rudolf Cornelissen Date: Mon, 8 Nov 2004 15:59:28 +0000 Subject: [PATCH] removed nvidia specific AGP programming. Skeleton driver should now be functional (running it here ;-). MTR-WC and AGP are up, giving you fastest possible framebuffer access. setup a VESA file for the mode you are going to work in; startup failsafe videomode, set this same mode for ALL workspaces. add cardID recognition in kerneldriver and accelerant, make sure mapping is doing the correct area, and reboot with driver. Have fun :) git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9864 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/accelerants/skeleton/engine/agp.c | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/add-ons/accelerants/skeleton/engine/agp.c b/src/add-ons/accelerants/skeleton/engine/agp.c index adce533bac..ec45a59725 100644 --- a/src/add-ons/accelerants/skeleton/engine/agp.c +++ b/src/add-ons/accelerants/skeleton/engine/agp.c @@ -21,20 +21,20 @@ status_t eng_agp_setup(void) /* first try to enable FW support on our card if user requested this * ('unsupported' tweak!) * This has no effect on PCI cards. */ - if (si->settings.unhide_fw) - { - uint32 reg; +// if (si->settings.unhide_fw) +// { +// uint32 reg; - LOG(4, ("AGP: STRAPINFO2 contains $%08x\n", ENG_RG32(RG32_NVSTRAPINFO2))); +// LOG(4, ("AGP: STRAPINFO2 contains $%08x\n", ENG_RG32(RG32_NVSTRAPINFO2))); - LOG(4, ("AGP: attempting to enable fastwrite support..\n")); +// LOG(4, ("AGP: attempting to enable fastwrite support..\n")); /* 'force' FW support */ - reg = (ENG_RG32(RG32_NVSTRAPINFO2) & ~0x00000800); +// reg = (ENG_RG32(RG32_NVSTRAPINFO2) & ~0x00000800); /* enable strapinfo overwrite */ - ENG_RG32(RG32_NVSTRAPINFO2) = (reg | 0x80000000); +// ENG_RG32(RG32_NVSTRAPINFO2) = (reg | 0x80000000); - LOG(4, ("AGP: STRAPINFO2 now contains $%08x\n", ENG_RG32(RG32_NVSTRAPINFO2))); - } +// LOG(4, ("AGP: STRAPINFO2 now contains $%08x\n", ENG_RG32(RG32_NVSTRAPINFO2))); +// } /* set the magic number so the skeleton kerneldriver knows we're for real */ nca.magic = nai.magic = SKEL_PRIVATE_DATA_MAGIC; @@ -97,7 +97,7 @@ status_t eng_agp_setup(void) LOG(4,("AGP: the graphicscard this accelerant controls is PCI type.\n")); /* make sure card is set for PCI access */ - CFGW(AGPCMD, 0x00000000); +// CFGW(AGPCMD, 0x00000000); return B_ERROR; } @@ -129,7 +129,7 @@ status_t eng_agp_setup(void) eng_agp_list_active(nca.cmd | (eng_ai.interface.agp_stat & AGP_rate_rev)); /* extra check */ - LOG(4,("AGP: graphics card AGPCMD register readback $%08x\n", CFGR(AGPCMD))); +// LOG(4,("AGP: graphics card AGPCMD register readback $%08x\n", CFGR(AGPCMD))); return B_OK; }