driver_d Struct Reference


Data Fields

char name [MAX_DRIVER_NAME]
void(* remove )(struct device_d *)
void * type_data

Field Documentation

char name[MAX_DRIVER_NAME]

The name of this driver.

Used to match to the corresponding device.

int(* probe)(struct device_d *)

Called if an instance of a device is found.

void(* remove)(struct device_d *)

Called if an instance of a device is gone.

void* type_data

This is somewhat redundant with the type data in struct device.

Currently the filesystem implementation uses this field while ethernet drivers use the same field in struct device. Probably one of both should be removed.


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