Blame view
include/video/imx8-prefetch.h
2.86 KB
346ad7148 MLK-15110-2 gpu: ... |
1 |
/* |
f679a03fc MLK-17803 drm/imx... |
2 |
* Copyright 2017-2018 NXP |
346ad7148 MLK-15110-2 gpu: ... |
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
* * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2 of the License, or (at your * option) any later version. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * for more details. */ #ifndef _IMX8_PREFETCH_H_ #define _IMX8_PREFETCH_H_ #define PRG_HANDSHAKE_8LINES 8 #define PRG_HANDSHAKE_4LINES 4 #define AMPHION_STRIPE_WIDTH 8 #define AMPHION_STRIPE_HEIGHT 128 #define AMPHION_UV_STRIPE_HEIGHT AMPHION_STRIPE_HEIGHT #define AMPHION_Y_STRIPE_HEIGHT (2 * AMPHION_STRIPE_HEIGHT) #define VIVANTE_TILE_WIDTH 4 #define VIVANTE_TILE_HEIGHT 4 #define VIVANTE_SUPER_TILE_WIDTH 64 #define VIVANTE_SUPER_TILE_HEIGHT 64 struct prg; struct prg * prg_lookup_by_phandle(struct device *dev, const char *name, int index); void prg_enable(struct prg *prg); void prg_disable(struct prg *prg); void prg_configure(struct prg *prg, unsigned int width, unsigned int height, unsigned int x_offset, unsigned int y_offset, unsigned int stride, unsigned int bits_per_pixel, unsigned long baddr, u32 format, u64 modifier, bool start); void prg_reg_update(struct prg *prg); void prg_shadow_enable(struct prg *prg); bool prg_stride_supported(struct prg *prg, unsigned int stride); bool prg_stride_double_check(struct prg *prg, |
7cfcb8f70 MLK-18347 gpu: im... |
43 44 |
unsigned int width, unsigned int x_offset, unsigned int bits_per_pixel, u64 modifier, |
346ad7148 MLK-15110-2 gpu: ... |
45 46 |
unsigned int stride, dma_addr_t baddr); void prg_set_auxiliary(struct prg *prg); |
4b35cb7a9 MLK-18123-1 gpu: ... |
47 |
void prg_set_primary(struct prg *prg); |
19e99c7cb MLK-17940-1 gpu: ... |
48 |
void prg_set_blit(struct prg *prg); |
346ad7148 MLK-15110-2 gpu: ... |
49 |
|
80df5421e MLK-15110-3 gpu: ... |
50 51 52 53 54 55 56 57 58 59 |
struct dprc; struct dprc * dprc_lookup_by_phandle(struct device *dev, const char *name, int index); void dprc_enable(struct dprc *dprc); void dprc_disable(struct dprc *dprc); void dprc_configure(struct dprc *dprc, unsigned int stream_id, unsigned int width, unsigned int height, unsigned int x_offset, unsigned int y_offset, unsigned int stride, u32 format, u64 modifier, unsigned long baddr, unsigned long uv_baddr, |
af38948ec MLK-18009 drm/imx... |
60 |
bool start, bool aux_start, bool interlace_frame); |
80df5421e MLK-15110-3 gpu: ... |
61 |
void dprc_reg_update(struct dprc *dprc); |
f679a03fc MLK-17803 drm/imx... |
62 |
void dprc_first_frame_handle(struct dprc *dprc); |
80df5421e MLK-15110-3 gpu: ... |
63 64 65 66 67 68 |
void dprc_irq_handle(struct dprc *dprc); void dprc_enable_ctrl_done_irq(struct dprc *dprc); bool dprc_format_supported(struct dprc *dprc, u32 format, u64 modifier); bool dprc_stride_supported(struct dprc *dprc, unsigned int stride, unsigned int uv_stride, unsigned int width, u32 format); |
80df5421e MLK-15110-3 gpu: ... |
69 |
bool dprc_stride_double_check(struct dprc *dprc, |
7cfcb8f70 MLK-18347 gpu: im... |
70 71 |
unsigned int width, unsigned int x_offset, u32 format, u64 modifier, |
80df5421e MLK-15110-3 gpu: ... |
72 |
dma_addr_t baddr, dma_addr_t uv_baddr); |
346ad7148 MLK-15110-2 gpu: ... |
73 |
#endif |