home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 3 / PDCD_3.iso / internet / netlite / NET / h / ETHERNET < prev    next >
Text File  |  1993-04-26  |  657b  |  30 lines

  1. /* Driver controller control block */
  2. struct ether {
  3.        struct interface *iface;
  4.        int  port;
  5. };
  6.  
  7. extern struct ether ether[];
  8. extern unsigned nether;
  9.  
  10. #define ETHER_MAX      4
  11.  
  12. #define ETHER_OPEN     0x88000
  13. #define ETHER_READ     0x88001
  14. #define ETHER_WRITE    0x88002
  15. #define ETHER_CLOSE    0x88003
  16. #define ETHER_RESET    0x88004
  17. #define ETHER_STATS    0x88005
  18.  
  19. #define ETHER_ERR_OK       0
  20. #define ETHER_ERR_INVPORT  1
  21. #define ETHER_ERR_OPEN     2
  22. #define ETHER_ERR_CLOSED   3
  23. #define ETHER_ERR_NODRIVER 4
  24. #define ETHER_ERR_NOMEM    5
  25. #define ETHER_ERR_TOOBIG   6
  26. #define ETHER_ERR_TOOSMALL 7
  27.  
  28. /* In ETHERNET */
  29. int ether_attach(int, char **);
  30.