drm/nouveau/bios: update gpio parsing apis to match current design
[deliverable/linux.git] / drivers / gpu / drm / nouveau / core / include / subdev / bios / gpio.h
CommitLineData
e0996aea
BS
1#ifndef __NVBIOS_GPIO_H__
2#define __NVBIOS_GPIO_H__
3
4struct nouveau_bios;
5
6enum dcb_gpio_func_name {
7 DCB_GPIO_PANEL_POWER = 0x01,
8 DCB_GPIO_TVDAC0 = 0x0c,
9 DCB_GPIO_TVDAC1 = 0x2d,
10 DCB_GPIO_PWM_FAN = 0x09,
11 DCB_GPIO_FAN_SENSE = 0x3d,
12 DCB_GPIO_UNUSED = 0xff
13};
14
15struct dcb_gpio_func {
16 u8 func;
17 u8 line;
18 u8 log[2];
e3619998
MP
19
20 /* so far, "param" seems to only have an influence on PWM-related
21 * GPIOs such as FAN_CONTROL and PANEL_BACKLIGHT_LEVEL.
22 * if param equals 1, hardware PWM is available
23 * if param equals 0, the host should toggle the GPIO itself
24 */
25 u8 param;
e0996aea
BS
26};
27
d2bcea68
BS
28u16 dcb_gpio_table(struct nouveau_bios *, u8 *ver, u8 *hdr, u8 *cnt, u8 *len);
29u16 dcb_gpio_entry(struct nouveau_bios *, int idx, int ent, u8 *ver, u8 *len);
30u16 dcb_gpio_parse(struct nouveau_bios *, int idx, int ent, u8 *ver, u8 *len,
e0996aea 31 struct dcb_gpio_func *);
d2bcea68
BS
32u16 dcb_gpio_match(struct nouveau_bios *, int idx, u8 func, u8 line,
33 u8 *ver, u8 *len, struct dcb_gpio_func *);
e0996aea
BS
34
35#endif
This page took 0.061995 seconds and 5 git commands to generate.