summaryrefslogtreecommitdiffstats
path: root/loader/devices.h
blob: a4305c61a4bb6a9d2aaa572dfde9a819ba120b0f (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 ddReadDriverDiskModInfo(moduleInfoSet modInfo);
void ejectFloppy(void);
void eject(char * deviceName);

#endif