transfer.h
来自「XOSL 多操作系统管理工具 源代码 多系统引导工具」· C头文件 代码 · 共 50 行
H
50 行
/*
* Extended Operating System Loader (XOSL)
* Copyright (c) 1999 by Geurt Vos
*
* This code is distributed under GNU General Public License (GPL)
*
* The full text of the license can be found in the GPL.TXT file,
* or at http://www.gnu.org
*/
#ifndef __transfer__
#define __transfer__
#include <defs.h>
#define Scratchpad ( (void *)0x90008000 )
//#define Scratchpad ( (void *)0x00008000 )
#define DISK_READ 0x0200
#define DISK_WRITE 0x0300
#define DISK_VERIFY 0x0400
typedef struct {
int PacketSize;
int SectorCount;
void *TransferBuffer;
unsigned long SectorLow;
unsigned long SectorHigh;
} TLBAPacket;
class CDiskAccess {
public:
CDiskAccess();
~CDiskAccess();
// conventional stuff
int DriveCount(int Fixed);
int Transfer(int Action, unsigned short SectCyl,
unsigned short DrvHead, void *Buffer, int Count);
int GetDriveInfo(int Drive, int &Heads, int &Sectors);
int CopyFromScratchpad(void *Buffer, int Sectors);
int CopyToScratchpad(const void *Buffer, int Sectors);
// lba stuff
int LBAAccessAvail(int Drive);
int LBATransfer(int Action, int Drive, const TLBAPacket &LBAPacket);
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?