Import backup from 2004-07-09

This commit is contained in:
josh committed 2017-07-25 22:23:47 -04:00
1 parent f3fe4ef3b8
commit 0729754659
76 files changed
+470 -7676

No files matched your search

-9
View File
@@ -1,9 +0,0 @@
//fdc.c
//Author: Josh Holtrop
//Created: 10/30/03
//Modified: 02/26/04
#include "fdc.h"
-23
View File
@@ -1,23 +0,0 @@
//fdc.h
//Author: Josh Holtrop
//Date: 10/30/03
//Modified: 02/26/04
#ifndef __HOS_FDC__
#define __HOS_FDC__ __HOS_FDC__
#include "sys/io.h"
#define FDC_DOR 0x3f2
#define FDC_MSR 0x3f4
//inline void fdc_sendDOR(byte dor);
static inline void fdc_sendDOR(byte dor)
{
outportb(FDC_DOR, dor);
}
#endif
-22
View File
@@ -1,22 +0,0 @@
// loop.c
// Author: Josh Holtrop
// Date: 03/16/04
// Provides a loop-back device for mounting files on existing volumes as new volumes
#include "hos_defines.h"
#include "loop.h"
#include "fs/vfs.h"
int loop_readSector(LoopDevice *ld, dword sector, byte *buffer)
{
return vfs_readFileBlock(ld->vol, ld->filePath, sector * LOOP_SECTOR_SIZE, buffer, LOOP_SECTOR_SIZE);
}
int loop_writeSector(LoopDevice *ld, dword sector, byte *buffer)
{
return vfs_writeFileBlock(ld->vol, ld->filePath, sector * LOOP_SECTOR_SIZE, buffer, LOOP_SECTOR_SIZE);
}
-22
View File
@@ -1,22 +0,0 @@
// loop.h
// Author: Josh Holtrop
// Date: 03/16/04
// Provides a loop-back device for mounting files on existing volumes as new volumes
#ifndef __HOS_LOOP__
#define __HOS_LOOP__ __HOS_LOOP__
#include "hos_includes.h"
typedef struct
{
Volume *vol;
char filePath[256];
} LoopDevice;
int loop_readSector(LoopDevice *ld, dword sector, byte *buffer);
int loop_writeSector(LoopDevice *ld, dword sector, byte *buffer);
#endif
-7
View File
@@ -1,7 +0,0 @@
// rd.c
// Author: Josh Holtrop
// Date: 03/11/04
#include "rd.h"
-12
View File
@@ -1,12 +0,0 @@
// rd.h
// Author: Josh Holtrop
// Date: 03/11/04
#ifndef __HOS_RD__
#define __HOS_RD__ __HOS_RD__
#endif