diskdevice.c

来自「一个用在mips体系结构中的操作系统」· C语言 代码 · 共 50 行

C
50
字号
/* * 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.  * *//* @TITLE "diskdevice.c: Simulate a disk device"*//*  * diskdevice - this file just includes the appropriate diskdevice-*.c, *   depending on the configuration flags.  * * exported functions: *   DiskDeviceInit *   DiskDeviceDone *   DiskDeviceTransfer *   DiskDeviceStart *   DiskDeviceFinish *   DiskDeviceSync *   DiskDeviceShape * * David Kotz 1994 *//* $Id: diskdevice.c,v 1.4 1998/02/10 00:36:35 bosch Exp $ */#include "diskmodel.param"/* for EV_DISKSTATE events */#define DISKSTATE_IDLE 0#define DISKSTATE_CONTROL 1#define DISKSTATE_MOVE 2#define DISKSTATE_XFER 3/* for EV_BUSSTATE events */#define BUSSTATE_IDLE 0#define BUSSTATE_GRAB  1#define BUSSTATE_COMMAND  2#define BUSSTATE_DATA  3#ifdef MODEL_DISK# include "diskdevice-model.c"#endif#ifdef TRIVIAL_DISK# include "diskdevice-trivial.c"#endif 

⌨️ 快捷键说明

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