simos_interface.h

来自「一个用在mips体系结构中的操作系统」· C头文件 代码 · 共 41 行

H
41
字号
/* * Copyright (C) 1996-1998 by the Board of Trustees *    of Leland Stanford Junior University. *  * This file is part of the SimOS distribution.  * See LICENSE file for terms of the license.  * *//***************************************************************** * interface.h *  * Author: $author$ * Date: $date$ ***************************************************************** * Simple implementation of DMA transfer: * * During the DMA transfer, each line generates a call to the memory system, * either a GET (DMARead) or a GETX (DMAWrite). The line will then be owned * owned by the requesting processor (the one that initiated the IO operation. * Unlike calls to the memory system initiated by the CPU, the line does not  * end up in the cache hierarchy. * *******************************************************************/#ifndef DISKMODEL_INTERFACE#define DISKMODEL_INTERFACEtypedef void (*dmaRoutine_t)( int len , SimTime, void (*done)(int), int);typedef void (*doneRoutine_t) ( int );extern void DiskModelInit(int maxNumDisk, double scaling);extern void DiskModelRequest(int machine, int diskNum, int sector,                             int nsectors, int iswrite,                              dmaRoutine_t  dmaRoutine,                              doneRoutine_t doneRoutine , int doneArg);extern void AdvanceTime(void);#endif 

⌨️ 快捷键说明

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