diff options
author | Keith Packard <keithp@keithp.com> | 2000-08-09 17:52:45 +0000 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2000-08-09 17:52:45 +0000 |
commit | 4223801110c8d5873dd668880dff411765dfc18d (patch) | |
tree | 63f077f073cbdb46252d993f3ce8597b8b6b435b /hw/kdrive/sis530/sisstub.c | |
parent | 325fb002e8832a05361516bbaf19d1e8b67a3486 (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.c | 11 |
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 |