xref: /linux/drivers/media/pci/cobalt/m00235_fdma_packer_memmap_package.h (revision ca55b2fef3a9373fcfc30f82fd26bc7fccbda732)
1 /*
2  *  Copyright 2014-2015 Cisco Systems, Inc. and/or its affiliates.
3  *  All rights reserved.
4  *
5  *  This program is free software; you may redistribute it and/or modify
6  *  it under the terms of the GNU General Public License as published by
7  *  the Free Software Foundation; version 2 of the License.
8  *
9  *  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
10  *  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
11  *  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
12  *  NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
13  *  BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
14  *  ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
15  *  CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
16  *  SOFTWARE.
17  */
18 
19 #ifndef M00235_FDMA_PACKER_MEMMAP_PACKAGE_H
20 #define M00235_FDMA_PACKER_MEMMAP_PACKAGE_H
21 
22 /*******************************************************************
23  * Register Block
24  * M00235_FDMA_PACKER_MEMMAP_PACKAGE_VHD_REGMAP
25  *******************************************************************/
26 struct m00235_fdma_packer_regmap {
27 	uint32_t control; /* Reg 0x0000, Default=0x0 */
28 };
29 
30 #define M00235_FDMA_PACKER_REG_CONTROL_OFST 0
31 
32 /*******************************************************************
33  * Bit Mask for register
34  * M00235_FDMA_PACKER_MEMMAP_PACKAGE_VHD_BITMAP
35  *******************************************************************/
36 /* control [3:0] */
37 #define M00235_CONTROL_BITMAP_ENABLE_OFST        (0)
38 #define M00235_CONTROL_BITMAP_ENABLE_MSK         (0x1 << M00235_CONTROL_BITMAP_ENABLE_OFST)
39 #define M00235_CONTROL_BITMAP_PACK_FORMAT_OFST   (1)
40 #define M00235_CONTROL_BITMAP_PACK_FORMAT_MSK    (0x3 << M00235_CONTROL_BITMAP_PACK_FORMAT_OFST)
41 #define M00235_CONTROL_BITMAP_ENDIAN_FORMAT_OFST (3)
42 #define M00235_CONTROL_BITMAP_ENDIAN_FORMAT_MSK  (0x1 << M00235_CONTROL_BITMAP_ENDIAN_FORMAT_OFST)
43 
44 #endif /*M00235_FDMA_PACKER_MEMMAP_PACKAGE_H*/
45