* Add gitattributes to handle line endings. * Import the unmodified LTEMM source. From https://www.lo-tech.co.uk/wiki/LTEMM.EXE. * Add DOSBox and TASM for build. * Add build script for LTEMM. * Modity LTEMM driver for XTMax. * Import the unmodified SDPP source. From https://forum.vcfed.org/index.php?threads/sd-card-to-parallel-port-driver-for-msdos-ver-1-1.42008/. * Add Borland C++ 3.1 (Minimal) for build. * Add build script for SDPP. * Modify SDPP driver for XTMax. * Commit pre-built binaries for LTEMM and SDPP. * Reorganize the drivers into a new folder.
23 lines
597 B
C
23 lines
597 B
C
/* sd.h - SD card driver glue */
|
|
|
|
#ifndef _SD_H
|
|
#define _SD_H
|
|
|
|
#include "integer.h"
|
|
#include "driver.h"
|
|
|
|
#define BLOCKSIZE 512
|
|
|
|
extern DWORD partition_offset;
|
|
|
|
/* SDInitialize - establish two way communications with the drive */
|
|
BOOLEAN SDInitialize (BYTE unit, BYTE partno, bpb_t *bpb);
|
|
/* SDRead - read one 512 byte logical block from the tape */
|
|
int SDRead (WORD, DWORD, BYTE far *, WORD count);
|
|
/* SDWrite - write one 512 byte logical block to the tape */
|
|
int SDWrite (WORD, DWORD, BYTE far *, WORD count);
|
|
/* SDMediaCheck - check if media changed */
|
|
BOOLEAN SDMediaCheck (BYTE unit);
|
|
|
|
#endif
|