[LinuxBIOS] string comparison with macros?

Stefan Reinauer stepan at coresystems.de
Thu May 31 01:33:40 CEST 2007


* Corey Osgood <corey_osgood at verizon.net> [070530 21:45]:
> i82801 models by using a config option, in Options.lb. The config option
> is "I82801_MODEL", and it would expect some short string (AA, AB, CA,

Why is that a config option? That's simply different components, but
nothing a user would configure.

> #if I82801_MODEL == "AA"
> #define I82801_PCI    0x2418    /* D30:F0, PCI Interface Hub */
> #define I82801_LPC    0x2410    /* D31:F0, LPC Interface Bridge */
> #define I82801_IDE    0x2411    /* D31:F1, IDE Controller */
> #define I82801_USB1    0x2412    /* D31:F2, USB Controller */
> #define I82801_SMBUS    0x2413    /* D31:F3, SMBUS Controller */
> #define I82801_AC97    0x2415    /* D31:F5, AC'97 Audio Controller */
> #define I82801_MC97    0x2416    /* D31:F6, AC'97 Modem Controller */
> #endif

What about 
#define I82801AA_PCI 0x2418
#define I82801AA_LPC 0x2410
[..]

-- 
coresystems GmbH • Brahmsstr. 16 • D-79104 Freiburg i. Br.
      Tel.: +49 761 7668825 • Fax: +49 761 7664613
Email: info at coresystems.dehttp://www.coresystems.de/




More information about the coreboot mailing list