Thomas Gleixner | 64b70da | 2019-05-20 19:08:15 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
Florian Tobias Schandinat | 100e74a1 | 2010-04-17 19:44:53 +0000 | [diff] [blame] | 2 | /* |
| 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> |
Florian Tobias Schandinat | 100e74a1 | 2010-04-17 19:44:53 +0000 | [diff] [blame] | 6 | */ |
| 7 | /* |
| 8 | * basic modesetting functions |
| 9 | */ |
| 10 | |
| 11 | #ifndef __VIA_MODESETTING_H__ |
| 12 | #define __VIA_MODESETTING_H__ |
| 13 | |
| 14 | #include <linux/types.h> |
| 15 | |
Florian Tobias Schandinat | 936a3f7 | 2011-06-06 01:27:34 +0000 | [diff] [blame] | 16 | |
| 17 | #define VIA_PITCH_SIZE (1<<3) |
| 18 | #define VIA_PITCH_MAX 0x3FF8 |
| 19 | |
| 20 | |
Steffen Trumtrar | ea4f311 | 2012-11-22 13:11:32 +0100 | [diff] [blame] | 21 | struct via_display_timing { |
Florian Tobias Schandinat | d60defb | 2011-05-21 22:46:31 +0000 | [diff] [blame] | 22 | u16 hor_total; |
| 23 | u16 hor_addr; |
| 24 | u16 hor_blank_start; |
| 25 | u16 hor_blank_end; |
| 26 | u16 hor_sync_start; |
| 27 | u16 hor_sync_end; |
| 28 | u16 ver_total; |
| 29 | u16 ver_addr; |
| 30 | u16 ver_blank_start; |
| 31 | u16 ver_blank_end; |
| 32 | u16 ver_sync_start; |
| 33 | u16 ver_sync_end; |
| 34 | }; |
| 35 | |
| 36 | |
Steffen Trumtrar | ea4f311 | 2012-11-22 13:11:32 +0100 | [diff] [blame] | 37 | void via_set_primary_timing(const struct via_display_timing *timing); |
| 38 | void via_set_secondary_timing(const struct via_display_timing *timing); |
Florian Tobias Schandinat | 100e74a1 | 2010-04-17 19:44:53 +0000 | [diff] [blame] | 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); |
| 45 | |
| 46 | #endif /* __VIA_MODESETTING_H__ */ |