From: Gerd Hoffmann Date: Thu, 9 Dec 2010 07:39:48 +0000 (+0100) Subject: ahci: set controller id X-Git-Tag: rel-0.6.2~48 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=0e6f6366bc1645c151811c575d667a7676c5d53f;p=seabios.git 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 --- 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 @@ 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) {