📄 diskdevice.c
字号:
/* * 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -