home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 3 / PDCD_3.iso / internet / netlite / NET / h / DRIVER < prev    next >
Text File  |  1993-03-27  |  999b  |  42 lines

  1. /* Driver controller control block */
  2. struct driver {
  3.        struct interface *iface;
  4.        char *name;
  5.        int  port;
  6.        int  speed;
  7.        int  (*driver)();
  8. };
  9.  
  10. extern struct driver driver[];
  11. extern unsigned ndriver;
  12.  
  13. #define DRIVER_MAX      3
  14.  
  15. #define SLIP_MODE       0
  16. #define UNKNOWN         1
  17.  
  18. #define DRIVER_PUTBYTE      0
  19. #define DRIVER_GETBYTE      1
  20. #define DRIVER_PUTBLOCK     2
  21. #define DRIVER_GETBLOCK     3
  22. #define DRIVER_CHECKTX      4
  23. #define DRIVER_CHECKRX      5
  24. #define DRIVER_FLUSHTX      6
  25. #define DRIVER_FLUSHRX      7
  26. #define DRIVER_CONTROLLINES 8
  27. #define DRIVER_MODEMCONTROL 9
  28. #define DRIVER_RXERRORS     10
  29. #define DRIVER_BREAK        11
  30. #define DRIVER_EXAMINE      12
  31. #define DRIVER_TXSPEED      13
  32. #define DRIVER_RXSPEED      14
  33. #define DRIVER_WORDFORMAT   15
  34. #define DRIVER_FLOWCONTROL  16
  35. #define DRIVER_INITIALISE   17
  36. #define DRIVER_CLOSEDOWN    18
  37. #define DRIVER_POLL         19
  38. #define DRIVER_SELECT       20
  39.  
  40. /* In DRIVER */
  41. int driver_attach(int, char **);
  42.