VIRTUTECH CONFIDENTIAL    Previous - Up - Next
sun4u-counter
- Provided by
- 
sunfire-devices
- Class Hierarchy
- 
conf-object → log-object → sun4u-counter
- Interfaces Implemented
- 
log_object, event_poster, io_memory
- Description
- 
The sun4u-counter device simulates the Counter/Timer device found in sun4u systems. It provides two independent counters running at 1 MHz. A count limit can be set and an interrupt is asserted when the counter reaches this limit.
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
- 
- count0
- Optional attribute; read/write access; type: unknown type.
Value of counter 0. 
 - count1
- Optional attribute; read/write access; type: unknown type.
Value of counter 1. 
 - cycles_last0
- Optional attribute; read/write access; type: unknown type.
time stamp (non visible). 
 - cycles_last1
- Optional attribute; read/write access; type: unknown type.
time stamp (non visible). 
 - inten0
- Optional attribute; read/write access; type: unknown type.
Interrupt enabled on counter 0. 
 - inten1
- Optional attribute; read/write access; type: unknown type.
Interrupt enabled on counter 0. 
 - irq_dev
- Required attribute; read/write access; type: unknown type.
Object must implement the simple-interrupt interface. 
 - irq_pending0
- Optional attribute; read/write access; type: unknown type.
If an interrupt has been put in event queue (non visible). 
 - irq_pending1
- Optional attribute; read/write access; type: unknown type.
If an interrupt has been put in event queue (non visible). 
 - limit0
- Optional attribute; read/write access; type: unknown type.
Limit of counter 0, an interrupt is generated when the counter reaches the limit.  
 - limit1
- Optional attribute; read/write access; type: unknown type.
Limit of counter 0, an interrupt is generated when the counter reaches the limit.  
 - periodic0
- Optional attribute; read/write access; type: unknown type.
If set, the counter 0 is set to zero when limit has been reached. 
 - periodic1
- Optional attribute; read/write access; type: unknown type.
If set, the counter 0 is set to zero when limit has been reached. 
 
Command List
- Commands defined by interface log_object
- 
log, log-group, log-level, log-size, log-type
- Commands
- 
| info | print information about the device |  
 
Command Descriptions
- 
<sun4u-counter>.info
- Synopsis
- 
<sun4u-counter>.info
- Description
- 
Print detailed information about the counter device.
 
VIRTUTECH CONFIDENTIAL    Previous - Up - Next