blob: 29c7fe8441736f3127a8418a96d949fed78fcd3d [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -07001/****************************************************************************
2 ****************************************************************************
3 ***
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
9 ***
10 *** To edit the content of this header, modify the corresponding
11 *** source file (e.g. under external/kernel-headers/original/) then
12 *** run bionic/libc/kernel/tools/update_all.py
13 ***
14 *** Any manual change here will be lost the next time this script will
15 *** be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
19#ifndef _B1LLI_H_
20#define _B1LLI_H_
21typedef struct avmb1_t4file {
Tao Baod7db5942015-01-28 10:07:51 -080022 int len;
Tao Baod7db5942015-01-28 10:07:51 -080023 unsigned char * data;
Ben Cheng655a7c02013-10-16 16:09:24 -070024} avmb1_t4file;
25typedef struct avmb1_loaddef {
Tao Baod7db5942015-01-28 10:07:51 -080026 int contr;
Tao Baod7db5942015-01-28 10:07:51 -080027 avmb1_t4file t4file;
Ben Cheng655a7c02013-10-16 16:09:24 -070028} avmb1_loaddef;
29typedef struct avmb1_loadandconfigdef {
Tao Baod7db5942015-01-28 10:07:51 -080030 int contr;
Tao Baod7db5942015-01-28 10:07:51 -080031 avmb1_t4file t4file;
32 avmb1_t4file t4config;
Ben Cheng655a7c02013-10-16 16:09:24 -070033} avmb1_loadandconfigdef;
34typedef struct avmb1_resetdef {
Tao Baod7db5942015-01-28 10:07:51 -080035 int contr;
Ben Cheng655a7c02013-10-16 16:09:24 -070036} avmb1_resetdef;
37typedef struct avmb1_getdef {
Tao Baod7db5942015-01-28 10:07:51 -080038 int contr;
Tao Baod7db5942015-01-28 10:07:51 -080039 int cardtype;
40 int cardstate;
Ben Cheng655a7c02013-10-16 16:09:24 -070041} avmb1_getdef;
42typedef struct avmb1_carddef {
Tao Baod7db5942015-01-28 10:07:51 -080043 int port;
44 int irq;
Ben Cheng655a7c02013-10-16 16:09:24 -070045} avmb1_carddef;
46#define AVM_CARDTYPE_B1 0
Ben Cheng655a7c02013-10-16 16:09:24 -070047#define AVM_CARDTYPE_T1 1
48#define AVM_CARDTYPE_M1 2
49#define AVM_CARDTYPE_M2 3
50typedef struct avmb1_extcarddef {
Tao Baod7db5942015-01-28 10:07:51 -080051 int port;
52 int irq;
53 int cardtype;
54 int cardnr;
Ben Cheng655a7c02013-10-16 16:09:24 -070055} avmb1_extcarddef;
56#define AVMB1_LOAD 0
57#define AVMB1_ADDCARD 1
58#define AVMB1_RESETCARD 2
Ben Cheng655a7c02013-10-16 16:09:24 -070059#define AVMB1_LOAD_AND_CONFIG 3
60#define AVMB1_ADDCARD_WITH_TYPE 4
61#define AVMB1_GET_CARDINFO 5
62#define AVMB1_REMOVECARD 6
Ben Cheng655a7c02013-10-16 16:09:24 -070063#define AVMB1_REGISTERCARD_IS_OBSOLETE
64#endif