#ifndef __DISK_H__ #define __DISK_H__ #define BLOCK_SIZE 4096 #define DISK_SIZE (1024*1024*16) #define MAX_BLOCK (DISK_SIZE/BLOCK_SIZE) /* keeps track of the number of read and writes */ extern unsigned numwrites; extern unsigned numreads; /* ReadBlock - read block from disk into physical memory */ /* WriteBlock - write block from phys memory unto disk */ void ReadBlock(unsigned block, unsigned long paddress); void WriteBlock(unsigned block, unsigned long paddress); #endif