xref: /linux/drivers/staging/media/atomisp/pci/str2mem_defs.h (revision 4b4193256c8d3bc3a5397b5cd9494c2ad386317d)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * Support for Intel Camera Imaging ISP subsystem.
4  * Copyright (c) 2015, Intel Corporation.
5  *
6  * This program is free software; you can redistribute it and/or modify it
7  * under the terms and conditions of the GNU General Public License,
8  * version 2, as published by the Free Software Foundation.
9  *
10  * This program is distributed in the hope it will be useful, but WITHOUT
11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
13  * more details.
14  */
15 
16 #ifndef _ST2MEM_DEFS_H
17 #define _ST2MEM_DEFS_H
18 
19 #define _STR2MEM_CRUN_BIT               0x100000
20 #define _STR2MEM_CMD_BITS               0x0F0000
21 #define _STR2MEM_COUNT_BITS             0x00FFFF
22 
23 #define _STR2MEM_BLOCKS_CMD             0xA0000
24 #define _STR2MEM_PACKETS_CMD            0xB0000
25 #define _STR2MEM_BYTES_CMD              0xC0000
26 #define _STR2MEM_BYTES_FROM_PACKET_CMD  0xD0000
27 
28 #define _STR2MEM_SOFT_RESET_REG_ID                   0
29 #define _STR2MEM_INPUT_ENDIANNESS_REG_ID             1
30 #define _STR2MEM_OUTPUT_ENDIANNESS_REG_ID            2
31 #define _STR2MEM_BIT_SWAPPING_REG_ID                 3
32 #define _STR2MEM_BLOCK_SYNC_LEVEL_REG_ID             4
33 #define _STR2MEM_PACKET_SYNC_LEVEL_REG_ID            5
34 #define _STR2MEM_READ_POST_WRITE_SYNC_ENABLE_REG_ID  6
35 #define _STR2MEM_DUAL_BYTE_INPUTS_ENABLED_REG_ID     7
36 #define _STR2MEM_EN_STAT_UPDATE_ID                   8
37 
38 #define _STR2MEM_REG_ALIGN      4
39 
40 #endif /* _ST2MEM_DEFS_H */
41