summaryrefslogtreecommitdiff
path: root/src/atibus.c
diff options
context:
space:
mode:
authorGeorge Sapountzis <gsap7@yahoo.gr>2007-01-28 00:19:15 +0200
committerGeorge Sapountzis <gsap7@yahoo.gr>2007-01-28 01:24:19 +0200
commit0abcb2b2c84a50e64bb6aa9e94760659ecf33add (patch)
tree754e64a8a051f23d17e5e06099d0131fa2b4f2e8 /src/atibus.c
parent817b4b5338dba4d8eb862f1f79ef0edb75aad7f4 (diff)
Clean pATI->Adapter and pATI->VGAAdapter.
- cull (pATI->Adapter != ATI_ADAPTER_MACH64) - treat pATI->VGAAdapter as Bool
Diffstat (limited to 'src/atibus.c')
-rw-r--r--src/atibus.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/atibus.c b/src/atibus.c
index a371dc4d..fd34c89f 100644
--- a/src/atibus.c
+++ b/src/atibus.c
@@ -27,7 +27,6 @@
#include <string.h>
#include "ati.h"
-#include "atiadapter.h"
#include "atibus.h"
#include "atichip.h"
#include "atimach64io.h"
@@ -66,7 +65,7 @@ ATIClaimResources
resRange Resources[2] = {{0, 0, 0}, _END};
/* Claim VGA and VGAWonder resources */
- if ((pATI->VGAAdapter != ATI_ADAPTER_NONE) && (Active))
+ if ((pATI->VGAAdapter) && (Active))
{
/*
* 18800-x's are the only ATI controllers that decode all ISA aliases
@@ -93,8 +92,7 @@ ATIClaimResources
return;
/* Claim Mach64 sparse I/O resources */
- if ((pATI->Adapter == ATI_ADAPTER_MACH64) &&
- (pATI->CPIODecoding == SPARSE_IO))
+ if ((pATI->CPIODecoding == SPARSE_IO))
{
Resources[0].type = ResShrIoSparse | ResBus;
Resources[0].rBase = pATI->CPIOBase;