diff options
Diffstat (limited to 'drivers/media/pci/mantis/mantis_ioc.h')
| -rw-r--r-- | drivers/media/pci/mantis/mantis_ioc.h | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/drivers/media/pci/mantis/mantis_ioc.h b/drivers/media/pci/mantis/mantis_ioc.h new file mode 100644 index 000000000000..d56e002b2955 --- /dev/null +++ b/drivers/media/pci/mantis/mantis_ioc.h | |||
| @@ -0,0 +1,51 @@ | |||
| 1 | /* | ||
| 2 | Mantis PCI bridge driver | ||
| 3 | |||
| 4 | Copyright (C) Manu Abraham (abraham.manu@gmail.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 | You should have received a copy of the GNU General Public License | ||
| 17 | along with this program; if not, write to the Free Software | ||
| 18 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||
| 19 | */ | ||
| 20 | |||
| 21 | #ifndef __MANTIS_IOC_H | ||
| 22 | #define __MANTIS_IOC_H | ||
| 23 | |||
| 24 | #define GPIF_A00 0x00 | ||
| 25 | #define GPIF_A01 0x01 | ||
| 26 | #define GPIF_A02 0x02 | ||
| 27 | #define GPIF_A03 0x03 | ||
| 28 | #define GPIF_A04 0x04 | ||
| 29 | #define GPIF_A05 0x05 | ||
| 30 | #define GPIF_A06 0x06 | ||
| 31 | #define GPIF_A07 0x07 | ||
| 32 | #define GPIF_A08 0x08 | ||
| 33 | #define GPIF_A09 0x09 | ||
| 34 | #define GPIF_A10 0x0a | ||
| 35 | #define GPIF_A11 0x0b | ||
| 36 | |||
| 37 | #define GPIF_A12 0x0c | ||
| 38 | #define GPIF_A13 0x0d | ||
| 39 | #define GPIF_A14 0x0e | ||
| 40 | |||
| 41 | enum mantis_stream_control { | ||
| 42 | STREAM_TO_HIF = 0, | ||
| 43 | STREAM_TO_CAM | ||
| 44 | }; | ||
| 45 | |||
| 46 | extern int mantis_get_mac(struct mantis_pci *mantis); | ||
| 47 | extern void mantis_gpio_set_bits(struct mantis_pci *mantis, u32 bitpos, u8 value); | ||
| 48 | |||
| 49 | extern int mantis_stream_control(struct mantis_pci *mantis, enum mantis_stream_control stream_ctl); | ||
| 50 | |||
| 51 | #endif /* __MANTIS_IOC_H */ | ||
