1 #ifndef __NVBIOS_GPIO_H__
2 #define __NVBIOS_GPIO_H__
6 enum 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
15 struct dcb_gpio_func {
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
28 u16 dcb_gpio_table(struct nouveau_bios *);
29 u16 dcb_gpio_entry(struct nouveau_bios *, int idx, int ent, u8 *ver);
30 int dcb_gpio_parse(struct nouveau_bios *, int idx, u8 func, u8 line,
31 struct dcb_gpio_func *);