cops.h 1.4 KB

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