9 char name[PORTNAME_MAXLEN];
10 int (*size) (void); /* size */
11 int (*level)(void); /* how many bytes in buf? */
12 int (*read) (void *buf, int len);
13 int (*write)(void *buf, int len);
16 port_t* get_port(void* port);
18 int size_shm (void *hwbuf);
19 int level_shm(void *hwbuf);
20 int read_shm (void *hwbuf, void *buf, int len);
21 int write_shm(void *hwbuf, void *buf, int len);
23 #endif /* _PORTS_H_ */