summaryrefslogtreecommitdiff
path: root/drivers/modem/m6718_spi/modem_queue.h
blob: 62604129945b7d5919237ebea2b58306e5eea7be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*
 * Copyright (C) ST-Ericsson SA 2011
 *
 * Author: Chris Blair <chris.blair@stericsson.com> for ST-Ericsson
 *
 * License terms: GNU General Public License (GPL) version 2
 *
 * Modem IPC driver protocol interface header:
 *   queue functionality.
 */
#ifndef _MODEM_QUEUE_H_
#define _MODEM_QUEUE_H_

void ipc_queue_init(struct ipc_link_context *context);
void ipc_queue_delete_frame(struct ipc_tx_queue *frame);
struct ipc_tx_queue *ipc_queue_new_frame(struct ipc_link_context *link_context,
	u32 l2_length);
bool ipc_queue_is_empty(struct ipc_link_context *context);
int ipc_queue_push_frame(struct ipc_link_context *link_context, u8 l2_header,
	u32 l2_length, void *l2_data);
struct ipc_tx_queue *ipc_queue_get_frame(struct ipc_link_context *context);
void ipc_queue_reset(struct ipc_link_context *context);

#endif /* _MODEM_QUEUE_H_ */