Merge tag 'xtensa-20180225' of git://github.com/jcmvbkbc/linux-xtensa
[cris-mirror.git] / include / uapi / linux / b1lli.h
blob4ae6ac9950df2f5c20f8da0be73413335877fb42
1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2 /* $Id: b1lli.h,v 1.8.8.3 2001/09/23 22:25:05 kai Exp $
4 * ISDN lowlevel-module for AVM B1-card.
6 * Copyright 1996 by Carsten Paeth (calle@calle.in-berlin.de)
8 * This software may be used and distributed according to the terms
9 * of the GNU General Public License, incorporated herein by reference.
13 #ifndef _B1LLI_H_
14 #define _B1LLI_H_
16 * struct for loading t4 file
18 typedef struct avmb1_t4file {
19 int len;
20 unsigned char *data;
21 } avmb1_t4file;
23 typedef struct avmb1_loaddef {
24 int contr;
25 avmb1_t4file t4file;
26 } avmb1_loaddef;
28 typedef struct avmb1_loadandconfigdef {
29 int contr;
30 avmb1_t4file t4file;
31 avmb1_t4file t4config;
32 } avmb1_loadandconfigdef;
34 typedef struct avmb1_resetdef {
35 int contr;
36 } avmb1_resetdef;
38 typedef struct avmb1_getdef {
39 int contr;
40 int cardtype;
41 int cardstate;
42 } avmb1_getdef;
45 * struct for adding new cards
47 typedef struct avmb1_carddef {
48 int port;
49 int irq;
50 } avmb1_carddef;
52 #define AVM_CARDTYPE_B1 0
53 #define AVM_CARDTYPE_T1 1
54 #define AVM_CARDTYPE_M1 2
55 #define AVM_CARDTYPE_M2 3
57 typedef struct avmb1_extcarddef {
58 int port;
59 int irq;
60 int cardtype;
61 int cardnr; /* for HEMA/T1 */
62 } avmb1_extcarddef;
64 #define AVMB1_LOAD 0 /* load image to card */
65 #define AVMB1_ADDCARD 1 /* add a new card - OBSOLETE */
66 #define AVMB1_RESETCARD 2 /* reset a card */
67 #define AVMB1_LOAD_AND_CONFIG 3 /* load image and config to card */
68 #define AVMB1_ADDCARD_WITH_TYPE 4 /* add a new card, with cardtype */
69 #define AVMB1_GET_CARDINFO 5 /* get cardtype */
70 #define AVMB1_REMOVECARD 6 /* remove a card - OBSOLETE */
72 #define AVMB1_REGISTERCARD_IS_OBSOLETE
74 #endif /* _B1LLI_H_ */