config.c revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2, or (at
* your option) any later version.
*/
#include "grub.h"
#include "pci.h"
#include "isa.h"
#include "nic.h"
#ifdef CONFIG_PCI
{
/*
* NIC probing is in pci device order, followed by the
* link order of the drivers. A driver that matches
* on vendor and device id will supersede a driver
* that matches on pci class.
*
* If you want to probe for another device behind the same pci
* device just increment index. And the previous probe call
* will be repeated.
*/
}
for(;;) {
}
break;
#if 0
/* FIXME the romaddr code needs a total rethought to be useful */
continue;
}
#endif
dev->type_index++;
}
/* FIXME how do I handle dev->index + PROBE_AGAIN?? */
return PROBE_WORKED;
}
putchar('\n');
}
return PROBE_FAILED;
}
#endif
#ifdef CONFIG_ISA
{
/*
* NIC probing is in the order the drivers were linked togeter.
* If for some reason you want to change the order,
* just change the order you list the drivers in.
*/
}
for(;;)
{
}
break;
continue;
dev->type_index++;
}
/* FIXME how do I handle dev->index + PROBE_AGAIN?? */
/* driver will fill in vendor and device IDs */
return PROBE_WORKED;
}
putchar('\n');
}
return PROBE_FAILED;
}
#else
#endif
static const char *driver_name[] = {
"nic",
"disk",
"floppy",
};
{
const char *type_name;
EnterFunction("probe");
type_name = "";
}
}
}
}
}
}
}
LeaveFunction("probe");
}
{
}
}