aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2010-12-09 08:39:48 +0100
committerKevin O'Connor <kevin@koconnor.net>2010-12-12 14:02:23 -0500
commit0e6f6366bc1645c151811c575d667a7676c5d53f (patch)
tree3e92549f018261dfd508776a3852a5d5e567cc7d
parent1e924bb7ec2fbf3f81d86fb5478ba4002a1ef0c6 (diff)
downloadseabios-0e6f6366bc1645c151811c575d667a7676c5d53f.tar.gz
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>
-rw-r--r--src/ahci.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ahci.c b/src/ahci.c
index 4ccee86b..e2b2dbf5 100644
--- a/src/ahci.c
+++ b/src/ahci.c
@@ -345,6 +345,7 @@ ahci_port_init(struct ahci_ctrl_s *ctrl, u32 pnr)
}
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) {