diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2024-03-04 19:59:08 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2024-03-05 16:28:05 +0100 |
commit | 46ba653ef10e66340f68d4bba4d631f754702064 (patch) | |
tree | 3937d8919c59cc545547c3d46e6959640a6d8928 /include/ata_drive.h | |
parent | aca95e86e163d1c3b981d1aba51208ed42bb332b (diff) | |
download | barebox-46ba653ef10e66340f68d4bba4d631f754702064.tar.gz barebox-46ba653ef10e66340f68d4bba4d631f754702064.tar.xz |
block: record block device type
Software running under EFI can query the type of a block device. For
barebox to be able to report this, start assigning types to all block
devices it can create. No functional change yet.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.barebox.org/20240304190038.3486881-24-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/ata_drive.h')
-rw-r--r-- | include/ata_drive.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/ata_drive.h b/include/ata_drive.h index 47b7482686..e840d89f4a 100644 --- a/include/ata_drive.h +++ b/include/ata_drive.h @@ -134,8 +134,9 @@ struct ata_port { void *drvdata; struct block_device blk; uint16_t *id; - int lba48; - int initialized; + bool lba48; + bool initialized; + bool ahci; int probe; }; |