9 #include <sys/socket.h>
10 #include <netinet/in.h>
11 #include <arpa/inet.h>
17 #include <RORC/rorc_lib.h>
26 rb(
int board,
int ch,
int fifo_cou, u_int buff_bytes) { emulation = 0 ;} ;
31 virtual int cmd(u_char cmd, u_int param=0, u_int dest=4) { LOG(DBG,
"Sending cmd") ;
return 0 ; } ;
32 virtual int read(u_int param=0) {
return 0 ; } ;
33 virtual int write(
char *inbuff,
int bytes,
int nodelay=0,
int param=0) {
return 0 ; } ;
34 virtual int busy() {
return 0 ; } ;
35 virtual int config(
int emul=0) {
return 0 ; } ;
37 virtual int open(
char *vbuff = 0, u_int pbuf = 0) {
return 0 ; } ;
38 virtual void close() { return ; } ;
40 virtual int start(u_int w=4) = 0 ;
41 virtual int stop() = 0 ;
43 virtual int get(
char **addr, u_int *status) = 0 ;
44 virtual int get_priority(
char **addr, u_int *status,
int *fifo_ix=0) {
45 if(fifo_ix) *fifo_ix = -1 ;
46 return get(addr,status) ;
49 virtual int free(
char *addr) = 0 ;
50 virtual int free_ix(
int ix) = 0 ;
52 virtual int mark(
char *addr, u_int how=0) = 0 ;
54 virtual int inject(
int token) {
return -1 ; } ;
56 virtual int link_check() {
return 0 ; } ;
58 virtual int get_free_fifos() {
return 0 ; } ;
60 virtual void emu_place_event(
int ix,
char *event,
int bytes) { return ; } ;
61 virtual void emu_go() { return ; } ;
67 int emu_fifo_length[128] ;