diff options
author | Andrew Cagney <cagney@redhat.com> | 1998-05-25 07:37:30 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 1998-05-25 07:37:30 +0000 |
commit | 39e953a72287cfa9335871478f27258989a22a66 (patch) | |
tree | 6438a7bde0347193bf8971ff7f1024e27b85690d /sim/common/hw-device.h | |
parent | 2f06c437e28ea3bfab27cc9b9b11dd235397a938 (diff) | |
download | fsf-binutils-gdb-39e953a72287cfa9335871478f27258989a22a66.zip fsf-binutils-gdb-39e953a72287cfa9335871478f27258989a22a66.tar.gz fsf-binutils-gdb-39e953a72287cfa9335871478f27258989a22a66.tar.bz2 |
Split out hw-event code. Clean up interface. Update all users.
Diffstat (limited to 'sim/common/hw-device.h')
-rw-r--r-- | sim/common/hw-device.h | 24 |
1 files changed, 2 insertions, 22 deletions
diff --git a/sim/common/hw-device.h b/sim/common/hw-device.h index bb46bea..558c41d 100644 --- a/sim/common/hw-device.h +++ b/sim/common/hw-device.h @@ -404,28 +404,6 @@ int hw_ioctl ...); -/* Event queue: - - Device specific versions of certain event handlers */ - -typedef struct _hw_event hw_event; -typedef void (hw_event_handler) (struct hw *me, void *data); - -hw_event *hw_event_queue_schedule -(struct hw *me, - signed64 delta_time, - hw_event_handler *handler, - void *data); - -void hw_event_queue_deschedule -(struct hw *me, - hw_event *event_to_remove); - -signed64 hw_event_queue_time -(struct hw *me); - - - /* Error reporting:: So that errors originating from devices appear in a consistent @@ -476,6 +454,7 @@ struct hw_property_data; struct hw_port_data; struct hw_base_data; struct hw_alloc_data; +struct hw_event_data; /* Finally the hardware device - keep your grubby little mits off of these internals! :-) */ @@ -531,6 +510,7 @@ struct hw { struct hw_port_data *ports_of_hw; struct hw_base_data *base_of_hw; struct hw_alloc_data *alloc_of_hw; + struct hw_event_data *events_of_hw; }; |