diskdevice.c
1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*
* 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.1.1.1 2002/05/29 01:09:11 blythe 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