summaryrefslogtreecommitdiff
path: root/hw/kdrive/sis530/sisstub.c
diff options
context:
space:
mode:
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