Main description of the device/driver model

We follow a rather simplistic driver model here.

There is a

 struct device_d 
which describes a particular device present in the system.

On the other side a

 struct driver_d 
represents a driver present in the system.

Both structs find together via the members 'type' (int) and 'name' (char *). If both members match, the driver's probe function is called with the struct device_d as argument.

People familiar with the Linux platform bus will recognize this behaviour and in fact many things were stolen from there. Some selected members of the structs will be described in this document.


Generated on Fri Dec 25 14:13:15 2009 for barebox by  doxygen 1.5.6