Server IP : 172.67.216.182 / Your IP : 172.71.81.144 Web Server : Apache System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/src/linux-headers-5.15.0-142/include/linux/soc/amlogic/ |
Upload File : |
/* SPDX-License-Identifier: GPL-2.0+ */ /* * Copyright (C) 2018 BayLibre, SAS */ #ifndef __SOC_MESON_CANVAS_H #define __SOC_MESON_CANVAS_H #include <linux/kernel.h> #define MESON_CANVAS_WRAP_NONE 0x00 #define MESON_CANVAS_WRAP_X 0x01 #define MESON_CANVAS_WRAP_Y 0x02 #define MESON_CANVAS_BLKMODE_LINEAR 0x00 #define MESON_CANVAS_BLKMODE_32x32 0x01 #define MESON_CANVAS_BLKMODE_64x64 0x02 #define MESON_CANVAS_ENDIAN_SWAP16 0x1 #define MESON_CANVAS_ENDIAN_SWAP32 0x3 #define MESON_CANVAS_ENDIAN_SWAP64 0x7 #define MESON_CANVAS_ENDIAN_SWAP128 0xf struct device; struct meson_canvas; /** * meson_canvas_get() - get a canvas provider instance * * @dev: consumer device pointer */ struct meson_canvas *meson_canvas_get(struct device *dev); /** * meson_canvas_alloc() - take ownership of a canvas * * @canvas: canvas provider instance retrieved from meson_canvas_get() * @canvas_index: will be filled with the canvas ID */ int meson_canvas_alloc(struct meson_canvas *canvas, u8 *canvas_index); /** * meson_canvas_free() - remove ownership from a canvas * * @canvas: canvas provider instance retrieved from meson_canvas_get() * @canvas_index: canvas ID that was obtained via meson_canvas_alloc() */ int meson_canvas_free(struct meson_canvas *canvas, u8 canvas_index); /** * meson_canvas_config() - configure a canvas * * @canvas: canvas provider instance retrieved from meson_canvas_get() * @canvas_index: canvas ID that was obtained via meson_canvas_alloc() * @addr: physical address to the pixel buffer * @stride: width of the buffer * @height: height of the buffer * @wrap: undocumented * @blkmode: block mode (linear, 32x32, 64x64) * @endian: byte swapping (swap16, swap32, swap64, swap128) */ int meson_canvas_config(struct meson_canvas *canvas, u8 canvas_index, u32 addr, u32 stride, u32 height, unsigned int wrap, unsigned int blkmode, unsigned int endian); #endif