Download OS-9 Porting Guide

Transcript
13
Creating RBF Drivers and Descriptors
Table 13-6 RBF Drive Information Structure (continued)
Name
Description
v_fd_free_list
List of Free FD Block Structures
This field points to the list of free file
descriptor block structures.
v_blks_rsrc_lk
Free Block List Lock Descriptor
Lock descriptor structure for locking the
free block list.
v_blks_list
List of Free Block Buffers
This field points to the list of free block
buffers used for buffering data blocks.
v_reserved
Reserved for Future Enhancements
Disk Device Options
This section describes the definitions of the device options for RBF-type
devices. The structure definition of the device options is shown here.
This structure is defined in the header file rbf.h. IOMAN copies the
device options from the device descriptor module into the logical unit
static storage when the device is attached.
typedef struct rbf_lu_opts {
u_char
lu_stp,
lu_tfm,
lu_lun,
lu_ctrlrid;
u_int32
lu_totcyls;
u_int32
lu_reserved[4];
} rbf_lu_opts, *Rbf_lu_opts;
250
/*
/*
/*
/*
/*
/*
step rate */
DMA transfer mode */
drive logical unit number*/
controller ID */
total number of cylinders */
reserved for future expansion */
OS-9 Porting Guide