Import backup from 2004-03-12
This commit is contained in:
1 parent
302538b8ff
commit
ab576bf18f
27 files changed
+1839
-139
No files matched your search
@@ -0,0 +1,7 @@
|
||||
// fat12.c
|
||||
// Author: Josh Holtrop
|
||||
// Date: 03/11/04
|
||||
|
||||
#include "fat12.h"
|
||||
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
// fat12.h
|
||||
// Author: Josh Holtrop
|
||||
// Date: 03/11/04
|
||||
|
||||
#ifndef __HOS_FAT12__
|
||||
#define __HOS_FAT12__ __HOS_FAT12__
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
// vfs.c
|
||||
// Author: Josh Holtrop
|
||||
// Date: 03/11/04
|
||||
|
||||
#include "vfs.h"
|
||||
#include "hos_defines.h"
|
||||
|
||||
Volume *firstVolume = 0;
|
||||
|
||||
void vfs_init()
|
||||
{
|
||||
dword initrdLoaded = *(byte *)BOOT_HASRD;
|
||||
|
||||
}
|
||||
|
||||
|
||||
Volume *vfs_newVolume()
|
||||
{
|
||||
Volume *vol = malloc(sizeof(Volume));
|
||||
vfs_getLastVolume()->link = vol;
|
||||
return vol;
|
||||
}
|
||||
|
||||
|
||||
Volume *vfs_getLastVolume()
|
||||
{
|
||||
Volume *vol = firstVolume;
|
||||
while (vol)
|
||||
vol = vol->link;
|
||||
return vol;
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
// vfs.h
|
||||
// Author: Josh Holtrop
|
||||
// Date: 03/11/04
|
||||
|
||||
#ifndef __HOS_VFS__
|
||||
#define __HOS_VFS__ __HOS_VFS__
|
||||
|
||||
#include "hos_defines.h"
|
||||
|
||||
typedef struct
|
||||
{
|
||||
void *diskDevice;
|
||||
int deviceType;
|
||||
char label[12];
|
||||
void *link;
|
||||
} Volume;
|
||||
|
||||
enum VFS_DISK_TYPES {VFS_RD, VFS_FD, VFS_HD, VFS_NUM_DISK_TYPES};
|
||||
|
||||
void vfs_init();
|
||||
Volume *vfs_newVolume();
|
||||
Volume *vfs_getLastVolume();
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
Reference in new issue
Block a user