linux/drivers/video/fbdev/via/ioctl.h

/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 * Copyright 1998-2008 VIA Technologies, Inc. All Rights Reserved.
 * Copyright 2001-2008 S3 Graphics, Inc. All Rights Reserved.

 */

#ifndef __IOCTL_H__
#define __IOCTL_H__

#ifndef __user
#define __user
#endif

/* VIAFB IOCTL definition */
#define VIAFB_GET_INFO_SIZE
#define VIAFB_GET_INFO
#define VIAFB_HOTPLUG
#define VIAFB_SET_HOTPLUG_FLAG
#define VIAFB_GET_RESOLUTION
#define VIAFB_GET_SAMM_INFO
#define VIAFB_TURN_ON_OUTPUT_DEVICE
#define VIAFB_TURN_OFF_OUTPUT_DEVICE
#define VIAFB_GET_DEVICE
#define VIAFB_GET_DRIVER_VERSION
#define VIAFB_GET_CHIP_INFO
#define VIAFB_GET_DEVICE_INFO

#define VIAFB_GET_DEVICE_SUPPORT
#define VIAFB_GET_DEVICE_CONNECT
#define VIAFB_GET_PANEL_SUPPORT_EXPAND
#define VIAFB_GET_DRIVER_NAME
#define VIAFB_GET_DEVICE_SUPPORT_STATE
#define VIAFB_GET_GAMMA_LUT
#define VIAFB_SET_GAMMA_LUT
#define VIAFB_GET_GAMMA_SUPPORT_STATE
#define VIAFB_SYNC_SURFACE
#define VIAFB_GET_DRIVER_CAPS
#define VIAFB_GET_IGA_SCALING_INFO
#define VIAFB_GET_PANEL_MAX_SIZE
#define VIAFB_GET_PANEL_MAX_POSITION
#define VIAFB_SET_PANEL_SIZE
#define VIAFB_SET_PANEL_POSITION
#define VIAFB_GET_PANEL_POSITION
#define VIAFB_GET_PANEL_SIZE

#define None_Device
#define CRT_Device
#define LCD_Device
#define DVI_Device
#define CRT2_Device
#define LCD2_Device

#define OP_LCD_CENTERING
#define OP_LCD_PANEL_ID
#define OP_LCD_MODE

/*SAMM operation flag*/
#define OP_SAMM

#define LCD_PANEL_ID_MAXIMUM

#define STATE_ON
#define STATE_OFF
#define STATE_DEFAULT

#define MAX_ACTIVE_DEV_NUM

struct device_t {};

struct viafb_ioctl_info {};

struct viafb_ioctl_mode {};
struct viafb_ioctl_samm {};

struct viafb_driver_version {};

struct viafb_ioctl_lcd_attribute {};

struct viafb_ioctl_setting {};

struct _UTFunctionCaps {};

struct _POSITIONVALUE {};

struct _panel_size_pos_info {};

extern int viafb_LCD_ON;
extern int viafb_DVI_ON;

int viafb_ioctl_get_viafb_info(u_long arg);
int viafb_ioctl_hotplug(int hres, int vres, int bpp);

#endif /* __IOCTL_H__ */