2 * Shared Transport Header file
3 * To be included by the protocol stack drivers for
4 * Texas Instruments BT,FM and GPS combo chip drivers
6 * Copyright (C) 2009 Texas Instruments
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26 #include <linux/skbuff.h>
32 * Move the following to tty.h upon acceptance
34 #define N_TI_WL 20 /* Ldisc for TI's WL BT, FM, GPS combo chips */
36 /* some gpios have active high, others like fm have
44 * the list of protocols on chip
54 ST_ERR_FAILURE
= -1, /* check struct */
56 ST_ERR_PENDING
= -5, /* to call reg_complete_cb */
57 ST_ERR_ALREADY
, /* already registered */
59 ST_ERR_NOPROTO
, /* protocol not supported */
62 /* per protocol structure
68 * to be called by ST when data arrives
70 long (*recv
) (struct sk_buff
*);
72 * for future use, logic now to be in ST
74 unsigned char (*match_packet
) (const unsigned char *data
);
76 * subsequent registration return PENDING,
77 * signalled complete by this callback function
79 void (*reg_complete_cb
) (char data
);
81 * write function, sent in as NULL and to be returned to
84 long (*write
) (struct sk_buff
*skb
);
87 extern long st_register(struct st_proto_s
*new_proto
);
88 extern long st_unregister(enum proto_type type
);