18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Copyright 1998-2008 VIA Technologies, Inc. All Rights Reserved.
48c2ecf20Sopenharmony_ci * Copyright 2001-2008 S3 Graphics, Inc. All Rights Reserved.
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ci */
78c2ecf20Sopenharmony_ci#ifndef __VIAUTILITY_H__
88c2ecf20Sopenharmony_ci#define __VIAUTILITY_H__
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_ci/* These functions are used to get information about device's state */
118c2ecf20Sopenharmony_civoid viafb_get_device_support_state(u32 *support_state);
128c2ecf20Sopenharmony_civoid viafb_get_device_connect_state(u32 *connect_state);
138c2ecf20Sopenharmony_cibool viafb_lcd_get_support_expand_state(u32 xres, u32 yres);
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_ci/* These function are used to access gamma table */
168c2ecf20Sopenharmony_civoid viafb_set_gamma_table(int bpp, unsigned int *gamma_table);
178c2ecf20Sopenharmony_civoid viafb_get_gamma_table(unsigned int *gamma_table);
188c2ecf20Sopenharmony_civoid viafb_get_gamma_support_state(int bpp, unsigned int *support_state);
198c2ecf20Sopenharmony_ci
208c2ecf20Sopenharmony_ci#endif /* __VIAUTILITY_H__ */
21