Add the rt linux 4.1.3-rt3 as base
[kvmfornfv.git] / kernel / drivers / staging / unisys / visorutil / charqueue.h
1 /* charqueue.h
2  *
3  * Copyright (C) 2010 - 2013 UNISYS CORPORATION
4  * All rights reserved.
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or (at
9  * your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful, but
12  * WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD TITLE or
14  * NON INFRINGEMENT.  See the GNU General Public License for more
15  * details.
16  */
17
18 #ifndef __CHARQUEUE_H__
19 #define __CHARQUEUE_H__
20
21 #include "timskmod.h"
22
23 /* struct charqueue is an opaque structure to users.
24  * Fields are declared only in the implementation .c files.
25  */
26 struct charqueue;
27
28 struct charqueue *visor_charqueue_create(ulong nslots);
29 void visor_charqueue_enqueue(struct charqueue *charqueue, unsigned char c);
30 int charqueue_dequeue(struct charqueue *charqueue);
31 int visor_charqueue_dequeue_n(struct charqueue *charqueue, unsigned char *buf,
32                               int n);
33 BOOL visor_charqueue_is_empty(struct charqueue *charqueue);
34 void visor_charqueue_destroy(struct charqueue *charqueue);
35
36 #endif
37