From b60299721a30ae09b1da03b1acbe4557d265a530 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Tue, 30 Aug 2005 10:07:12 +0000 Subject: support for alternate modules (allows to load both ahci and ata_piix) --- mdk-stage1/probing.c | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) (limited to 'mdk-stage1/probing.c') diff --git a/mdk-stage1/probing.c b/mdk-stage1/probing.c index 88c634cbc..ecc45e9b9 100644 --- a/mdk-stage1/probing.c +++ b/mdk-stage1/probing.c @@ -238,6 +238,34 @@ void probing_detect_devices() already_detected_devices = 1; } +#ifndef DISABLE_MEDIAS +static const char * get_alternate_module(const char * name) +{ + struct alternate_mapping { + const char * a; + const char * b; + }; + static struct alternate_mapping mappings[] = { + { "ahci", "ata_piix" }, + }; + int mappings_nb = sizeof(mappings) / sizeof(struct alternate_mapping); + int i; + + for (i=0; i