.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-or-later */ |
---|
1 | 2 | /* (C) 1999-2003 Nemosoft Unv. |
---|
2 | 3 | (C) 2004-2006 Luc Saillard (luc@saillard.org) |
---|
3 | 4 | |
---|
.. | .. |
---|
7 | 8 | The decompression routines have been implemented by reverse-engineering the |
---|
8 | 9 | Nemosoft binary pwcx module. Caveat emptor. |
---|
9 | 10 | |
---|
10 | | - This program is free software; you can redistribute it and/or modify |
---|
11 | | - it under the terms of the GNU General Public License as published by |
---|
12 | | - the Free Software Foundation; either version 2 of the License, or |
---|
13 | | - (at your option) any later version. |
---|
14 | | - |
---|
15 | | - This program is distributed in the hope that it will be useful, |
---|
16 | | - but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
17 | | - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
18 | | - GNU General Public License for more details. |
---|
19 | | - |
---|
20 | | - You should have received a copy of the GNU General Public License |
---|
21 | | - along with this program; if not, write to the Free Software |
---|
22 | | - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
---|
23 | 11 | */ |
---|
24 | 12 | |
---|
25 | 13 | #ifndef PWC_H |
---|
.. | .. |
---|
55 | 43 | |
---|
56 | 44 | |
---|
57 | 45 | /* Trace certain actions in the driver */ |
---|
58 | | -#define PWC_DEBUG_LEVEL_MODULE (1<<0) |
---|
59 | | -#define PWC_DEBUG_LEVEL_PROBE (1<<1) |
---|
60 | | -#define PWC_DEBUG_LEVEL_OPEN (1<<2) |
---|
61 | | -#define PWC_DEBUG_LEVEL_READ (1<<3) |
---|
62 | | -#define PWC_DEBUG_LEVEL_MEMORY (1<<4) |
---|
63 | | -#define PWC_DEBUG_LEVEL_FLOW (1<<5) |
---|
64 | | -#define PWC_DEBUG_LEVEL_SIZE (1<<6) |
---|
65 | | -#define PWC_DEBUG_LEVEL_IOCTL (1<<7) |
---|
66 | | -#define PWC_DEBUG_LEVEL_TRACE (1<<8) |
---|
| 46 | +#define PWC_DEBUG_LEVEL_MODULE BIT(0) |
---|
| 47 | +#define PWC_DEBUG_LEVEL_PROBE BIT(1) |
---|
| 48 | +#define PWC_DEBUG_LEVEL_OPEN BIT(2) |
---|
| 49 | +#define PWC_DEBUG_LEVEL_READ BIT(3) |
---|
| 50 | +#define PWC_DEBUG_LEVEL_MEMORY BIT(4) |
---|
| 51 | +#define PWC_DEBUG_LEVEL_FLOW BIT(5) |
---|
| 52 | +#define PWC_DEBUG_LEVEL_SIZE BIT(6) |
---|
| 53 | +#define PWC_DEBUG_LEVEL_IOCTL BIT(7) |
---|
| 54 | +#define PWC_DEBUG_LEVEL_TRACE BIT(8) |
---|
67 | 55 | |
---|
68 | 56 | #define PWC_DEBUG_MODULE(fmt, args...) PWC_DEBUG(MODULE, fmt, ##args) |
---|
69 | 57 | #define PWC_DEBUG_PROBE(fmt, args...) PWC_DEBUG(PROBE, fmt, ##args) |
---|
.. | .. |
---|
205 | 193 | decompressor) */ |
---|
206 | 194 | __u8 cmd[4]; /* the four byte of the command (in case of |
---|
207 | 195 | nala, only the first 3 bytes is filled) */ |
---|
208 | | - __u8 rawframe[0]; /* frame_size = H / 4 * vbandlength */ |
---|
| 196 | + __u8 rawframe[]; /* frame_size = H / 4 * vbandlength */ |
---|
209 | 197 | } __packed; |
---|
210 | 198 | |
---|
211 | 199 | /* intermediate buffers with raw data from the USB cam */ |
---|