Hans Verkuil | 1c1e45d | 2008-04-28 20:24:33 -0300 | [diff] [blame] | 1 | /* |
| 2 | * cx18 gpio functions |
| 3 | * |
| 4 | * Derived from ivtv-gpio.h |
| 5 | * |
| 6 | * Copyright (C) 2007 Hans Verkuil <hverkuil@xs4all.nl> |
Andy Walls | 1ed9dcc | 2008-11-22 01:37:34 -0300 | [diff] [blame] | 7 | * Copyright (C) 2008 Andy Walls <awalls@radix.net> |
Hans Verkuil | 1c1e45d | 2008-04-28 20:24:33 -0300 | [diff] [blame] | 8 | * |
| 9 | * This program is free software; you can redistribute it and/or modify |
| 10 | * it under the terms of the GNU General Public License as published by |
| 11 | * the Free Software Foundation; either version 2 of the License, or |
| 12 | * (at your option) any later version. |
| 13 | * |
| 14 | * This program is distributed in the hope that it will be useful, |
| 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 17 | * GNU General Public License for more details. |
| 18 | * |
| 19 | * You should have received a copy of the GNU General Public License |
| 20 | * along with this program; if not, write to the Free Software |
| 21 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 22 | */ |
| 23 | |
| 24 | void cx18_gpio_init(struct cx18 *cx); |
Andy Walls | eefe101 | 2009-02-21 18:42:49 -0300 | [diff] [blame^] | 25 | int cx18_gpio_register(struct cx18 *cx, u32 hw); |
| 26 | |
| 27 | enum cx18_gpio_reset_type { |
| 28 | CX18_GPIO_RESET_I2C = 0, |
| 29 | CX18_GPIO_RESET_Z8F0811 = 1, |
| 30 | CX18_GPIO_RESET_XC2028 = 2, |
| 31 | }; |
| 32 | |
Andy Walls | 02fa272 | 2008-07-13 19:30:15 -0300 | [diff] [blame] | 33 | void cx18_reset_ir_gpio(void *data); |
Michael Krufky | d7cba04 | 2008-09-12 13:31:45 -0300 | [diff] [blame] | 34 | int cx18_reset_tuner_gpio(void *dev, int component, int cmd, int value); |