cec.h 537 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /* cec.h: definitions for cec */
  2. typedef struct {
  3. uchar dst[6];
  4. uchar src[6];
  5. ushort etype;
  6. uchar type;
  7. uchar conn;
  8. uchar seq;
  9. uchar len;
  10. uchar data[1500];
  11. } Pkt;
  12. enum {
  13. Fkbd,
  14. Fcec,
  15. Floc,
  16. };
  17. typedef struct Mux Mux;
  18. #pragma incomplete Mux;
  19. enum {
  20. Iowait = 2000,
  21. Etype = 0xbcbc,
  22. };
  23. int debug;
  24. Mux *mux(int fd[2]);
  25. int muxread(Mux*, Pkt*);
  26. void muxfree(Mux*);
  27. int netopen(char *name);
  28. int netsend(void *, int);
  29. int netget(void *, int);
  30. void rawon(void);
  31. void rawoff(void);
  32. void dump(uchar*, int);
  33. void exits0(char*);