Q: How do I use callbacks registered with plugin_alloc_intr ?

I figured how to use IO ports
event_t event, int data, int op_size, int count, void *loc
event = EVT_INPORT for in instructions, EVT_OUTPORT for out instructions
data = port number
op_size = number of bytes per transfer (eg. 1, 2, 4)
count = number of transfers (I suppose for rep* IO)
loc = generic pointer to transferred data, to typecast according op_size

I suppose the following for interrupts
event = EVT_INT
data = 0
op_size = 0
count = 0
loc = pointer to a struct with registers

Can somebody enlight me, please? I grep'ed the entire bochs plugin with 
plugin_alloc_intr, but didn't find any.

EL

Reply via email to