summaryrefslogtreecommitdiff
path: root/hw/kdrive/sis530/sisstub.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2000-08-09 17:52:45 +0000
committerKeith Packard <keithp@keithp.com>2000-08-09 17:52:45 +0000
commit4223801110c8d5873dd668880dff411765dfc18d (patch)
tree63f077f073cbdb46252d993f3ce8597b8b6b435b /hw/kdrive/sis530/sisstub.c
parent325fb002e8832a05361516bbaf19d1e8b67a3486 (diff)
Add overlay support for savage. Make sis setup code work on nIcxf-4_0_1b
Diffstat (limited to 'hw/kdrive/sis530/sisstub.c')
-rw-r--r--hw/kdrive/sis530/sisstub.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/hw/kdrive/sis530/sisstub.c b/hw/kdrive/sis530/sisstub.c
index 2d014aef4..a0d28821e 100644
--- a/hw/kdrive/sis530/sisstub.c
+++ b/hw/kdrive/sis530/sisstub.c
@@ -26,12 +26,19 @@
#include "sis.h"
+static const int sisCards[] = { 0x6306, 0x0200 };
+
+#define numSisCards (sizeof (sisCards) / sizeof (sisCards[0]))
+
void
InitCard (char *name)
{
KdCardAttr attr;
- if (LinuxFindPci (0x1039, 0x6306, 0, &attr))
- KdCardInfoAdd (&sisFuncs, &attr, 0);
+ int i;
+
+ for (i = 0; i < numSisCards; i++)
+ if (LinuxFindPci (0x1039, sisCards[i], 0, &attr))
+ KdCardInfoAdd (&sisFuncs, &attr, (void *) sisCards[i]);
}
void