diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2013-03-08 10:14:05 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-03-08 11:33:26 +0100 |
commit | a2063d101598686490ce990e74dd20c72c309720 (patch) | |
tree | 30ced9fd1ed3980645f94884e972a243007bfed7 /include/ata_drive.h | |
parent | d80505569d30b1856e4e96deb23522bc8babd472 (diff) | |
download | barebox-a2063d101598686490ce990e74dd20c72c309720.tar.gz barebox-a2063d101598686490ce990e74dd20c72c309720.tar.xz |
ata: add ata logical device to defer probe
ata device usually take a long time to spin up, so it makes sense
to only spend this time when the device is actually used.
This adds a logical ata device and attaches a 'probe' parameter
to it, similar to what MMC does.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/ata_drive.h')
-rw-r--r-- | include/ata_drive.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/ata_drive.h b/include/ata_drive.h index 1996321012..876aa74970 100644 --- a/include/ata_drive.h +++ b/include/ata_drive.h @@ -89,9 +89,11 @@ struct ata_port_operations { struct ata_port { struct ata_port_operations *ops; struct device_d *dev; + struct device_d class_dev; void *drvdata; struct block_device blk; uint16_t *id; + int initialized; }; int ide_port_register(struct device_d *, struct ata_ioports *); |