litex/vpi/ipc.h

20 lines
564 B
C
Raw Normal View History

2012-03-04 13:17:03 -05:00
#ifndef __IPC_H
#define __IPC_H
struct ipc_softc;
typedef int(*go_handler)(void *);
2012-03-06 13:29:39 -05:00
typedef int(*write_handler)(char *, int, int, const unsigned char *, void *);
typedef int(*read_handler)(char *, int, void *);
2012-03-04 13:17:03 -05:00
struct ipc_softc *ipc_connect(const char *sockaddr,
go_handler h_go, write_handler h_write, read_handler h_read, void *user);
void ipc_destroy(struct ipc_softc *sc);
int ipc_receive(struct ipc_softc *sc);
int ipc_tick(struct ipc_softc *sc);
int ipc_read_reply(struct ipc_softc *sc, int nchunks, const unsigned char *value);
#endif /* __IPC_H */