1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Copyright 1998-2008 VIA Technologies, Inc. All Rights Reserved.
4 * Copyright 2001-2008 S3 Graphics, Inc. All Rights Reserved.
5 * Copyright 2010 Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
8 * basic modesetting functions
11 #ifndef __VIA_MODESETTING_H__
12 #define __VIA_MODESETTING_H__
14 #include <linux/types.h>
17 #define VIA_PITCH_SIZE (1<<3)
18 #define VIA_PITCH_MAX 0x3FF8
21 struct via_display_timing
{
37 void via_set_primary_timing(const struct via_display_timing
*timing
);
38 void via_set_secondary_timing(const struct via_display_timing
*timing
);
39 void via_set_primary_address(u32 addr
);
40 void via_set_secondary_address(u32 addr
);
41 void via_set_primary_pitch(u32 pitch
);
42 void via_set_secondary_pitch(u32 pitch
);
43 void via_set_primary_color_depth(u8 depth
);
44 void via_set_secondary_color_depth(u8 depth
);
46 #endif /* __VIA_MODESETTING_H__ */