nic.h 826 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * This program is free software; you can redistribute it and/or
  3. * modify it under the terms of the GNU General Public License as
  4. * published by the Free Software Foundation; either version 2, or (at
  5. * your option) any later version.
  6. */
  7. #ifndef NIC_H
  8. #define NIC_H
  9. /*
  10. * Structure returned from eth_probe and passed to other driver
  11. * functions.
  12. */
  13. struct nic
  14. {
  15. void (*reset)P((struct nic *));
  16. int (*poll)P((struct nic *));
  17. void (*transmit)P((struct nic *, const char *d,
  18. unsigned int t, unsigned int s, const char *p));
  19. void (*disable)P((struct nic *));
  20. int flags; /* driver specific flags */
  21. struct rom_info *rom_info; /* -> rom_info from main */
  22. unsigned char *node_addr;
  23. char *packet;
  24. unsigned int packetlen;
  25. void *priv_data; /* driver can hang private data here */
  26. };
  27. #endif /* NIC_H */