summaryrefslogtreecommitdiffstats
path: root/loader/devices.h
blob: e7b63b82cd5384e4b05c64d87aa4db215c8a5cf9 (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
#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 ejectFloppy(void);
char * extractModule(struct driverDiskInfo * location, char * modName);

#endif