]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blob - drivers/platform/x86/dell-uart-backlight.h
e4fe74fae6a8c3964c49f8dd6920c0d73fd3b907
[mirror_ubuntu-bionic-kernel.git] / drivers / platform / x86 / dell-uart-backlight.h
1 /*
2 * Dell AIO Serial Backlight Driver
3 *
4 * Copyright (C) 2017 AceLan Kao <acelan.kao@canonical.com>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 */
17
18 #ifndef _DELL_UART_BACKLIGHT_H_
19 #define _DELL_UART_BACKLIGHT_H_
20
21 enum {
22 DELL_UART_GET_FIRMWARE_VER,
23 DELL_UART_GET_SCALAR,
24 DELL_UART_GET_BRIGHTNESS,
25 DELL_UART_SET_BRIGHTNESS,
26 DELL_UART_SET_BACKLIGHT_POWER,
27 };
28
29 struct dell_uart_bl_cmd {
30 unsigned char cmd[10];
31 unsigned char ret[80];
32 unsigned short tx_len;
33 unsigned short rx_len;
34 };
35
36 #endif /* _DELL_UART_BACKLIGHT_H_ */