9 // this class implements the host-target interface for program loading, etc.
13 htif_t(int _tohost_fd
, int _fromhost_fd
);
15 void init(sim_t
* _sim
);
17 // wait for host to send start command
18 void wait_for_start();
20 // we block on the host if the target machine reads the fromhost register,
21 // which provides determinism in tohost/fromhost communication.
22 void wait_for_tohost_write();
23 void wait_for_fromhost_write();
25 // check to see if there's a pending packet and process it if so
34 void nack(uint8_t seqno
);
35 void send_packet(packet
* p
);
36 int wait_for_packet();