1
0

cec.h 916 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. * This file is part of the UCB release of Plan 9. It is subject to the license
  3. * terms in the LICENSE file found in the top-level directory of this
  4. * distribution and at http://akaros.cs.berkeley.edu/files/Plan9License. No
  5. * part of the UCB release of Plan 9, including this file, may be copied,
  6. * modified, propagated, or distributed except according to the terms contained
  7. * in the LICENSE file.
  8. */
  9. typedef struct {
  10. uchar dst[6];
  11. uchar src[6];
  12. ushort etype;
  13. uchar type;
  14. uchar conn;
  15. uchar seq;
  16. uchar len;
  17. uchar data[1500];
  18. } Pkt;
  19. enum {
  20. Fkbd,
  21. Fcec,
  22. Ffatal,
  23. };
  24. typedef struct Mux Mux;
  25. #pragma incomplete Mux;
  26. enum{
  27. Iowait = 2000,
  28. Etype = 0xbcbc,
  29. };
  30. int debug;
  31. Mux *mux(int fd[2]);
  32. void muxfree(Mux*);
  33. int muxread(Mux*, Pkt*);
  34. int netget(void *, int);
  35. int netopen(char *name);
  36. int netsend(void *, int);
  37. void dump(uchar*, int);
  38. void exits0(char*);
  39. void rawoff(void);
  40. void rawon(void);