summaryrefslogtreecommitdiffstats
path: root/loader/devices.h
blob: d20e54bd9640d1b6d88c9ae4145e78ae03eaf1e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef H_DEVICES
#define H_DEVICES

#include "../isys/isys.h"
#include "modules.h"

struct driverDiskInfo {
    char * device;	/* may be null */
    char * mntDevice;
    char * fs;
    char * title;
};

int devDeviceMenu(enum driverMajor type, moduleInfoSet modInfo, 
		  moduleList modLoaded, moduleDeps * modDepsPtr, 
		  char * ddDevice, int flags, char ** moduleName);
int devLoadDriverDisk(moduleInfoSet modInfo, moduleList modLoaded,
		      moduleDeps *modDepsPtr, int flags, int cancelNotBack,
		      int askForExistence, char * device);
int devInitDriverDisk(moduleInfoSet modInfo, moduleList modLoaded, 
		      moduleDeps *modDepsPtr, int flags, char * mntPoint,
		      struct driverDiskInfo * ddi);
void ddReadDriverDiskModInfo(moduleInfoSet modInfo);

void ejectFloppy(void);
char * extractModule(struct driverDiskInfo * location, char * modName);

#endif