VIRTUTECH CONFIDENTIAL    Previous - Up - Next

i82077

Provided by
82077
Class Hierarchy
conf-objectlog-objecti82077
Interfaces Implemented
log_object, event_poster, io_memory
Description
The 82077 device implements the functionality of the 82077 floppy controller together with up to four disk drives. There can usually be two floppy controllers in a PC system, the first and the secondary. While a controller can have four drives connected to it, most BIOSes only support two drives.

Attributes

Attributes inherited from class conf-object
attributes, classname, component, iface, name, object_id, queue
Attributes inherited from class log-object
access_count, log_buffer, log_buffer_last, log_buffer_size, log_group_mask, log_groups, log_level, log_type_mask
Attribute List
cmd
Optional attribute; read/write access; type: [i{17}].

(b0, ..., b16). Current command.

cmd_id
Optional attribute; read/write access; type: Integer.

Currently executing command.

cmd_len
Optional attribute; read/write access; type: Integer.

Actual length of current command.

command_busy
Optional attribute; read/write access; type: Integer.

Command busy (main status bit 4).

cur_cmd_len
Optional attribute; read/write access; type: Integer.

Number of command bytes received.

cur_res_pos
Optional attribute; read/write access; type: Integer.

Current result read position.

direction_cpu
Optional attribute; read/write access; type: Integer.

Data transfer direction (main status bit 6).

dma_channel
Required attribute; read/write access; type: Integer.

DMA channel.

dma_dev
Required attribute; read/write access; type: Object.

DMA device, implementing the common-dma interface.

dma_enabled
Optional attribute; read/write access; type: Integer.

DMA enable flag.

drive_select
Optional attribute; read/write access; type: Integer.

Currently selected drive.

drives
Optional attribute; read/write access; type: [o]|[oo]|[ooo]|[oooo]|n.

((drive)*). List of up to four floppy drives.

enabled
Optional attribute; read/write access; type: Integer.

Controller enable flag.

fifo_enabled
Optional attribute; read/write access; type: Integer.

FIFO enable flag.

fifo_threshold
Optional attribute; read/write access; type: Integer.

FIFO threshold.

head_load
Optional attribute; read/write access; type: Integer.

Head load time.

head_unload
Optional attribute; read/write access; type: Integer.

Head unload time.

implied_seek
Optional attribute; read/write access; type: Integer.

Implied seek enable flag.

interrupt_pin
Optional attribute; read/write access; type: Integer.

Interrupt request status.

irq_dev
Optional attribute; read/write access; type: Object or Nil.

Interrupt device, implementing the simple-interrupt interface.

irq_level
Required attribute; read/write access; type: Integer.

Interrupt level.

poll_change
Optional attribute; read/write access; type: Integer.

Polling change detected.

poll_enabled
Optional attribute; read/write access; type: Integer.

Polling mode enable flag.

precomp
Optional attribute; read/write access; type: Integer.

Precompensation.

receive_ready
Optional attribute; read/write access; type: Integer.

Controller is ready to receive data (main status bit 7).

res
Optional attribute; read/write access; type: [i{15}].

(b0, ..., b14). Result bytes.

res_len
Optional attribute; read/write access; type: Integer.

Number of result bytes.

st0
Optional attribute; read/write access; type: Integer.

Status register 0.

st1
Optional attribute; read/write access; type: Integer.

Status register 1.

st2
Optional attribute; read/write access; type: Integer.

Status register 2.

state
Optional attribute; read/write access; type: Integer.

Floppy command state. Idle=0, Command=1, Execute=2, Result=3.

step_rate
Optional attribute; read/write access; type: Integer.

Step rate interval.

Command List

Commands defined by interface log_object
log, log-group, log-level, log-size, log-type
Commands
eject-floppyeject floppy
infoprint information about the device
insert-floppyinsert floppy in drive
statusprint status of the device

Command Descriptions

<i82077>.eject-floppy
Synopsis
<i82077>.eject-floppy "drive-letter"
Description
Eject the media from the disk drive specified by drive-letter.
<i82077>.info
Synopsis
<i82077>.info
Description
Print detailed information about the configuration of the device.
<i82077>.insert-floppy
Synopsis
<i82077>.insert-floppy "drive-letter" floppy-image [-rw] ["size"]
Description
Insert the file floppy-image as a floppy in the disk drive specified by drive-letter. For floppies with a different size than 1.44 MB, the size must be specified explicitly.

The -rw flag uses floppy-image in read-write mode, meaning that no save or save-diff-file command to the associated image object need to be used in order to save data written by the target software.

<i82077>.status
Synopsis
<i82077>.status
Description
Print detailed information about the current status of the device.

VIRTUTECH CONFIDENTIAL    Previous - Up - Next