Simple model of a SCSI disk for use with a SCSI controller. This model is not intended to be connected to a SCSI bus.
conf_object, log_object, simple_scsi_target
- 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.
-
controller
-
Required attribute;
read/write access; type:
o
Name of the controller that this disk is connected to.
-
geometry
-
Required attribute;
read/write access; type:
[iii]
The geometry of the disk. ()
-
image
-
Required attribute;
read/write access; type:
o
The image object holding the actual data of the disk. This object must implement the 'image' interface.
-
mode_pages
-
Optional attribute;
read/write access; type:
[[i*]*]
Mode pages for the disk.
-
vpd_pages
-
Optional attribute;
read/write access; type:
[[i*]*]
VPD pages for the disk.
-
vendor
-
Optional attribute;
read/write access; type:
s
Vendor name of the disk.
-
model
-
Optional attribute;
read/write access; type:
s
Model name of the disk.
-
revision
-
Optional attribute;
read/write access; type:
s
Revision string of the disk.
-
vendor_specific_id
-
Optional attribute;
read/write access; type:
s
Vendor Specific string for the disk - often used as serial id.
-
sense_key
-
Optional attribute;
read/write access; type:
i
Current Sense Key code.
-
sectors_read
-
Pseudo attribute;
read-only access; type:
i
Number of sectors read in the current simulation session.
-
sectors_written
-
Pseudo attribute;
read-only access; type:
i
Number of sectors written in the current simulation session.
-
queue_length
-
Optional attribute;
read/write access; type:
i
Length of SCSI command queue (not implemented).
-
sector_data
-
Pseudo attribute;
read/write access; type:
Unknown
Can be used to access a sector (512 bytes) on the disk.
-
scsi_commands
-
Pseudo attribute;
read-only access; type:
Unknown
Pseudo attribute returning the SCSI command name (as a string) given an integer index representing the command.
-
scsi_standard
-
Optional attribute;
read/write access; type:
i
(Internal) Set SCSI standard to 2 or 3. Default value depends on device type.
simple-scsi-disk