[coreboot] Drivers vs. Objects

Stefan Reinauer stepan at coresystems.de
Thu Sep 24 08:52:49 CEST 2009

Myles Watson wrote:
> Drivers and objects seem interchangeable to me except that drivers get
> registered and checked against devices that are found during
> enumeration, that weren't mentioned in devicetree.cb.  Either one
> seems to get linked into the correct place if the device is mentioned
> in the device tree.
> Are there other differences?  Should I2C devices use objects, since
> you can't scan for them?

Some structures defined in the code are put in an extra section in the
binary for enumeration. Those are:

#define __console    __attribute__((used, __section__
#define __cpu_driver __attribute__
#define __pci_driver __attribute__

All others don't need to be "drivers"


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/
Registergericht: Amtsgericht Freiburg • HRB 7656
Geschäftsführer: Stefan Reinauer • Ust-IdNr.: DE245674866

More information about the coreboot mailing list