ide ide-disk
Simics Reference Manual  /  5 Classes  / 

ide-cdrom

Description

The ide-cdrom class models a single slot removable IDE/ATAPI CD-ROM.

Interfaces Implemented

conf_object, log_object, ide_device

Notifiers

cell-change
Notifier that is triggered after the object's cell was changed.
object-delete
Notifier that is triggered just before Simics object is deleted.
queue-change
Notifier that is triggered after the object's clock was changed. New clock can be obtained with the SIM_object_clock function.

Commands for this class

Attributes

irq_pending
Optional attribute; read/write access; type: b
IRQ Pending.
status
Optional attribute; read/write access; type: i
Status register.
sector_cnt
Optional attribute; read/write access; type: i
Sector count register.
sector_num
Optional attribute; read/write access; type: i
Sector number register.
cylinder
Optional attribute; read/write access; type: i
Cylinder number (cylinder high and cylinder low).
head
Optional attribute; read/write access; type: i
Lower four bits of the head register.
command
Optional attribute; read/write access; type: i
Last command.
error
Optional attribute; read/write access; type: i
Error register.
features
Optional attribute; read/write access; type: i
Feature register.
pio_mode
Optional attribute; read/write access; type: i
Current PIO mode (upper byte in identify device word 51).
udma_mode
Optional attribute; read/write access; type: i
Current UDMA mode (upper byte in identify device word 88).
udma_enabled
Optional attribute; read/write access; type: i
Set if UDMA is enabled.
multiword_dma_mode
Optional attribute; read/write access; type: i
Current multiword DMA mode (upper byte in identify device word 63).
multiword_dma_enabled
Optional attribute; read/write access; type: i
Set if multiword DMA is enabled.
sectors_per_int
Optional attribute; read/write access; type: i
Sectors per interrupt (lower byte in identify device word 59).
tr_sectors_size
Optional attribute; read/write access; type: i
Transfer sector size.
tr_sectors_per_block
Optional attribute; read/write access; type: i
Transfer sectors per block.
tr_sectors_last_block
Optional attribute; read/write access; type: i
Transfer sectors last block.
tr_num_blocks
Optional attribute; read/write access; type: i
Number of blocks in transfer.
tr_op
Optional attribute; read/write access; type: i
DMA transfer operation type.
tr_update_address
Optional attribute; read/write access; type: i
Update address during transfer.
tr_drq_start_offset
Optional attribute; read/write access; type: i
Offset in sector buffer where the active DRQ block starts.
tr_drq_bytes_handled
Optional attribute; read/write access; type: i
Bytes handled in DRQ block before the active sector.
tr_pos
Optional attribute; read/write access; type: i
Transfer position.
tr_req_length
Optional attribute; read/write access; type: i
Requested length of transfer.
tr_drq_bytes
Optional attribute; read/write access; type: i
Bytes per DRQ.
tr_bytes_remaining
Optional attribute; read/write access; type: i
Transfer bytes remaining.
tr_current_lba
Optional attribute; read/write access; type: i
Current transfer address.
tr_disk_finished
Optional attribute; read/write access; type: i
Transfer finished (device view).
tr_dma_finished
Optional attribute; read/write access; type: i
DMA finished.
buf
Optional attribute; read/write access; type: s|[iii]|n
sector buffer | atapi packet. Current transfer source/destination.
sector_buffer
Optional attribute; read/write access; type: [i{2048}]
(b0, ..., b2047). Sector buffer.
state
Optional attribute; read/write access; type: i
Device state.
power_mode
Optional attribute; read/write access; type: i
Device power mode (0==active, 1==idle, 2==standby, 3==sleep).
stat_commands
Optional attribute; read/write access; type: [i{256}]
(f0, ..., f255). Executed command count (command i has been issued fi times).
stat_atapi_commands
Optional attribute; read/write access; type: [i{256}]
(f0, ..., f255). Executed ATAPI command count (command i has been issued fi times).
stat_bytes_read
Optional attribute; read/write access; type: i
Total number of bytes read from device using PIO.
stat_bytes_written
Optional attribute; read/write access; type: i
Total number of bytes written to device using PIO.
stat_bytes_transfered_dma
Optional attribute; read/write access; type: i
Total number of bytes read or written to or from device using DMA.
geometry_valid
Optional attribute; read/write access; type: i
Geometry valid.
serial_number
Optional attribute; read/write access; type: s
Device serial number. Up to 20 character long string.
firmware_id
Optional attribute; read/write access; type: s
Device firmware id. Up to 8 character long string.
model_id
Optional attribute; read/write access; type: s
Device model id. Up to 40 character long string.
no_48bits_lba_support
Optional attribute; read/write access; type: i
48-bit address feature set not supported (bit 10 in identify device word 83).
tr_packet_use_dma
Optional attribute; read/write access; type: i
Use DMA for PACKET command data transfer.
atapi_packet
Optional attribute; read/write access; type: [i{12}]
(b0, ..., b11). ATAPI packet.
sense_key
Optional attribute; read/write access; type: i
Sense key.
sense_asc
Optional attribute; read/write access; type: i
Sense ASC.
sense_ascq
Optional attribute; read/write access; type: i
Sense ASCQ.
current_profile
Optional attribute; read/write access; type: s|n
Current profile. Set to CD-ROM or DVD-ROM if media is present. It should be set to Nil if no media is present in the drive.
cd_media
Optional attribute; read/write access; type: o|n
Device media implementing cdrom_media. Eject media by setting this attribute to NIL.
locked
Optional attribute; read/write access; type: i
Media locked.
media_change
Optional attribute; read/write access; type: i
Media has changed since the last GET_MEDIA_STATUS command.
unit_attension
Optional attribute; read/write access; type: i
Current unit attention condition, 0 if unit attention condition not present.

Provided By

ide
ide ide-disk