cops.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /* cops.h: LocalTalk driver for Linux.
  2. *
  3. * Authors:
  4. * - Jay Schulist <jschlst@samba.org>
  5. */
  6. #ifndef __LINUX_COPSLTALK_H
  7. #define __LINUX_COPSLTALK_H
  8. #ifdef __KERNEL__
  9. /* Max LLAP size we will accept. */
  10. #define MAX_LLAP_SIZE 603
  11. /* Tangent */
  12. #define TANG_CARD_STATUS 1
  13. #define TANG_CLEAR_INT 1
  14. #define TANG_RESET 3
  15. #define TANG_TX_READY 1
  16. #define TANG_RX_READY 2
  17. /* Dayna */
  18. #define DAYNA_CMD_DATA 0
  19. #define DAYNA_CLEAR_INT 1
  20. #define DAYNA_CARD_STATUS 2
  21. #define DAYNA_INT_CARD 3
  22. #define DAYNA_RESET 4
  23. #define DAYNA_RX_READY 0
  24. #define DAYNA_TX_READY 1
  25. #define DAYNA_RX_REQUEST 3
  26. /* Same on both card types */
  27. #define COPS_CLEAR_INT 1
  28. /* LAP response codes received from the cards. */
  29. #define LAP_INIT 1 /* Init cmd */
  30. #define LAP_INIT_RSP 2 /* Init response */
  31. #define LAP_WRITE 3 /* Write cmd */
  32. #define DATA_READ 4 /* Data read */
  33. #define LAP_RESPONSE 4 /* Received ALAP frame response */
  34. #define LAP_GETSTAT 5 /* Get LAP and HW status */
  35. #define LAP_RSPSTAT 6 /* Status response */
  36. #endif
  37. /*
  38. * Structure to hold the firmware information.
  39. */
  40. struct ltfirmware
  41. {
  42. unsigned int length;
  43. const unsigned char *data;
  44. };
  45. #define DAYNA 1
  46. #define TANGENT 2
  47. #endif