3 Copyright 1996,2002 Gregory D. Hager, Alfred A. Rizzi, Noah J. Cowan,
4 Jason Lapenta, Scott Smedley
6 This file is part of the DT3155 Device Driver.
8 The DT3155 Device Driver is free software; you can redistribute it
9 and/or modify it under the terms of the GNU General Public License as
10 published by the Free Software Foundation; either version 2 of the
11 License, or (at your option) any later version.
13 The DT3155 Device Driver is distributed in the hope that it will be
14 useful, but WITHOUT ANY WARRANTY; without even the implied warranty
15 of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with the DT3155 Device Driver; if not, write to the Free
20 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
26 Date Programmer Description of changes made
27 -------------------------------------------------------------------
29 24-Jul-2002 SS GPL licence.
30 26-Oct-2009 SS Porting to 2.6.30 kernel.
39 extern struct dt3155_fbuffer *dt3155_fbuffer[MAXBOARDS];
41 /* User functions for buffering */
42 /* Initialize the buffering system. This should */
43 /* be called prior to enabling interrupts */
45 u32 dt3155_setup_buffers(u32 *allocatorAddr);
47 /* Get the next frame of data if it is ready. Returns */
48 /* zero if no data is ready. If there is data but */
49 /* the user has a locked buffer, it will unlock that */
50 /* buffer and return it to the free list. */
52 int dt3155_get_ready_buffer(int minor);
54 /* Return a locked buffer to the free list */
56 void dt3155_release_locked_buffer(int minor);
58 /* Flush the buffer system */
59 int dt3155_flush(int minor);
61 /**********************************
62 * Simple array based que struct
63 **********************************/
65 bool are_empty_buffers(int minor);
66 void push_empty(int index, int minor);
68 int pop_empty(int minor);
70 bool is_ready_buf_empty(int minor);
71 bool is_ready_buf_full(int minor);
73 void push_ready(int minor, int index);
74 int pop_ready(int minor);