V1 2 superio chips of the same type
Richard Smith
rsmith at bitworks.com
Thu May 6 20:09:01 CEST 2004
ron minnich wrote:
> On Thu, 6 May 2004, Richard Smith wrote:
>
>
>>How do I specify 2 superios in V1 that are the same chip only different
>>pnp bases using nsuperio?
>
>
> here's how it should work (example, two same part at 0x370 and 0x3f0):
>
> nsuperio SMC/fdc37b72x com1={1} port=0x370
> nsuperio SMC/fdc37b72x com1={1} port=0x3f0
Thats kinda what I though but here's the nsuperio.c that gets built
#include <pci.h>
extern struct superio_control superio_NSC_pc87351_control;
struct superio superio_NSC_pc87351= { &superio_NSC_pc87351_control,
.keyboard=1, .com1={1}, .com2={1}, .floppy=0, .lpt=0, .mouse=1,
.port=0x2f};
extern struct superio_control superio_NSC_pc87351_control;
struct superio superio_NSC_pc87351= { &superio_NSC_pc87351_control,
.keyboard=1, .com1={1}, .com2={1}, .floppy=0, .lpt=0, .mouse=1, .port=0x2f};
struct superio *all_superio[] = {&superio_NSC_pc87351,
&superio_NSC_pc87351,
};
unsigned long nsuperio = 2;
As you can see you end up with 2 structs that are the same name which
won't build.
More information about the coreboot
mailing list