diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2010-12-09 08:39:48 +0100 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2010-12-12 14:02:23 -0500 |
commit | 0e6f6366bc1645c151811c575d667a7676c5d53f (patch) | |
tree | 3e92549f018261dfd508776a3852a5d5e567cc7d | |
parent | 1e924bb7ec2fbf3f81d86fb5478ba4002a1ef0c6 (diff) | |
download | seabios-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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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) { |