[SeaBIOS] [PATCH 4/4] ahci: set controller id

Gerd Hoffmann kraxel at redhat.com
Wed Dec 8 11:24:14 CET 2010


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 at redhat.com>
---
 src/ahci.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/ahci.c b/src/ahci.c
index 17bd522..fde8034 100644
--- a/src/ahci.c
+++ b/src/ahci.c
@@ -342,6 +342,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) {
-- 
1.7.1




More information about the SeaBIOS mailing list