xref: /OK3568_Linux_fs/kernel/drivers/media/pci/cx18/cx18-gpio.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0-or-later */
2*4882a593Smuzhiyun /*
3*4882a593Smuzhiyun  *  cx18 gpio functions
4*4882a593Smuzhiyun  *
5*4882a593Smuzhiyun  *  Derived from ivtv-gpio.h
6*4882a593Smuzhiyun  *
7*4882a593Smuzhiyun  *  Copyright (C) 2007  Hans Verkuil <hverkuil@xs4all.nl>
8*4882a593Smuzhiyun  *  Copyright (C) 2008  Andy Walls <awalls@md.metrocast.net>
9*4882a593Smuzhiyun  */
10*4882a593Smuzhiyun 
11*4882a593Smuzhiyun void cx18_gpio_init(struct cx18 *cx);
12*4882a593Smuzhiyun int cx18_gpio_register(struct cx18 *cx, u32 hw);
13*4882a593Smuzhiyun 
14*4882a593Smuzhiyun enum cx18_gpio_reset_type {
15*4882a593Smuzhiyun 	CX18_GPIO_RESET_I2C     = 0,
16*4882a593Smuzhiyun 	CX18_GPIO_RESET_Z8F0811 = 1,
17*4882a593Smuzhiyun 	CX18_GPIO_RESET_XC2028  = 2,
18*4882a593Smuzhiyun };
19*4882a593Smuzhiyun 
20*4882a593Smuzhiyun void cx18_reset_ir_gpio(void *data);
21*4882a593Smuzhiyun int cx18_reset_tuner_gpio(void *dev, int component, int cmd, int value);
22