From 1d2aeb840055aa7686e2330200519fb2d580f151 Mon Sep 17 00:00:00 2001 From: Rudolf Cornelissen Date: Mon, 12 Jul 2004 19:08:43 +0000 Subject: [PATCH] agp now fully works with the agp busmanager module: still some finetuning needed though.. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8386 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/kernel/bus_managers/agp/agp.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/add-ons/kernel/bus_managers/agp/agp.cpp b/src/add-ons/kernel/bus_managers/agp/agp.cpp index 8f1d76389e..292f4c0ead 100644 --- a/src/add-ons/kernel/bus_managers/agp/agp.cpp +++ b/src/add-ons/kernel/bus_managers/agp/agp.cpp @@ -350,6 +350,11 @@ static void check_capabilities(uint32 agp_stat, uint32 *command) if (!(agp_stat & AGP_3_8x)) *command &= ~AGP_3_8x; if (!(agp_stat & AGP_3_4x)) *command &= ~AGP_3_4x; } + /* if no AGP mode is supported at all, nothing remains: + * devices exist that have the AGP style + * connector with AGP style registers, but not the features! + * (confirmed Matrox Millenium II AGP for instance) */ + if (!(agp_stat & AGP_rates)) *command = 0x00000000; /* block sideband adressing if not supported */ if (!(agp_stat & AGP_SBA)) *command &= ~AGP_SBA;