summaryrefslogtreecommitdiffstats
path: root/loader2/modules.h
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2002-11-26 19:59:19 +0000
committerJeremy Katz <katzj@redhat.com>2002-11-26 19:59:19 +0000
commit32d18cdb5603ba71a27661cc59d78bfaf43a36cc (patch)
treecbef628263c93aba4f3dbb99573f0dc538db714f /loader2/modules.h
parent48ad552b63a95aec286aba9cd91ec0a745152e95 (diff)
downloadanaconda-32d18cdb5603ba71a27661cc59d78bfaf43a36cc.tar.gz
anaconda-32d18cdb5603ba71a27661cc59d78bfaf43a36cc.tar.xz
anaconda-32d18cdb5603ba71a27661cc59d78bfaf43a36cc.zip
restructuring and clean up of some of the older unused code in the loader.
still a lot to do, but this gets to stage2 for cd, nfs, http, and ftp booting from either the cd initrd or the pxe initrd
Diffstat (limited to 'loader2/modules.h')
-rw-r--r--loader2/modules.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/loader2/modules.h b/loader2/modules.h
new file mode 100644
index 000000000..9e055ee84
--- /dev/null
+++ b/loader2/modules.h
@@ -0,0 +1,43 @@
+#ifndef H_MODULES
+#define H_MODULES
+
+#include "moduleinfo.h"
+#include "moduledeps.h"
+
+typedef struct moduleList_s * moduleList;
+
+struct loadedModuleInfo {
+ char * name;
+ char ** args;
+ int weLoaded;
+ int written;
+ char * path;
+ int firstDevNum, lastDevNum; /* only used for ethernet currently */
+ enum driverMajor major;
+ enum driverMinor minor;
+};
+
+struct extractedModule {
+ char * path;
+ char * location;
+};
+
+struct moduleList_s {
+ struct loadedModuleInfo mods[50];
+ int numModules;
+};
+
+int mlReadLoadedList(moduleList * mlp);
+int mlLoadModuleSet(const char * modNames,
+ moduleList modLoaded, moduleDeps modDeps,
+ moduleInfoSet modInfo, int flags);
+/* like mlLoadModuleSet but from an explicit location */
+/* JKFIXME: this is a hack */
+int mlLoadModuleSetLocation(const char * modNames,
+ moduleList modLoaded, moduleDeps modDeps,
+ moduleInfoSet modInfo, int flags,
+ struct moduleBallLocation * location);
+
+
+
+#endif