driveio.h

来自「format命令的源代码」· C头文件 代码 · 共 41 行

H
41
字号
/*
// Program:  Format
// Version:  0.90
// Written By:  Brian E. Reifsnyder
// Copyright:  2002 under the terms of the GNU GPL, Version 2
*/


#ifdef DIO
  #define DIOEXTERN   /* */
#else
  #define DIOEXTERN   extern
#endif


typedef unsigned long ULONG;
typedef unsigned long  __uint32;
typedef unsigned short __uint16;


/* Integers converted from long numbers */
DIOEXTERN int integer1;
DIOEXTERN int integer2;


/* Buffers */
DIOEXTERN unsigned char sector_buffer[512];
DIOEXTERN unsigned char huge_sector_buffer[(512*32)];

/* The following lines were taken from partsize.c, written by Tom Ehlert. */
DIOEXTERN char secbuffer[512];


DIOEXTERN void Clear_Huge_Sector_Buffer();
DIOEXTERN void Clear_Sector_Buffer();
DIOEXTERN int Drive_IO(int command,unsigned long sector_number,int number_of_sectors);
DIOEXTERN void Enable_Disk_Access();

DIOEXTERN unsigned int FAT32_AbsReadWrite(char DosDrive, int count, ULONG sector, void *buffer, unsigned ReadOrWrite);
DIOEXTERN unsigned int TE_AbsReadWrite(char DosDrive, int count, ULONG sector, void *buffer, unsigned ReadOrWrite);

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?