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