ahci: set controller id
Fill the controller id in the drive struct with the port number so we
get a sane boot menu ordering with multiple hard disks attached.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
diff --git a/src/ahci.c b/src/ahci.c
index 4ccee86..e2b2dbf 100644
--- a/src/ahci.c
+++ b/src/ahci.c
@@ -345,6 +345,7 @@
}
port->drive.type = DTYPE_AHCI;
+ port->drive.cntl_id = pnr;
port->drive.removable = (buffer[0] & 0x80) ? 1 : 0;
port->drive.desc = malloc_tmp(MAXDESCSIZE);
if (!port->drive.desc) {