blob: 188fe5a8161404f6ab24c0ffa28e4d74d06a07df (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
/*
Mantis PCI bridge driver
Copyright (C) Manu Abraham (abraham.manu@gmail.com)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#ifndef __MANTIS_IOC_H
#define __MANTIS_IOC_H
#define GPIF_A00 0x00
#define GPIF_A01 0x01
#define GPIF_A02 0x02
#define GPIF_A03 0x03
#define GPIF_A04 0x04
#define GPIF_A05 0x05
#define GPIF_A06 0x06
#define GPIF_A07 0x07
#define GPIF_A08 0x08
#define GPIF_A09 0x09
#define GPIF_A10 0x0a
#define GPIF_A11 0x0b
#define GPIF_A12 0x0c
#define GPIF_A13 0x0d
#define GPIF_A14 0x0e
enum mantis_stream_control {
STREAM_TO_HIF = 0,
STREAM_TO_CAM
};
extern int mantis_get_mac(struct mantis_pci *mantis);
extern void gpio_set_bits(struct mantis_pci *mantis, u32 bitpos, u8 value);
extern int mantis_stream_control(struct mantis_pci *mantis, enum mantis_stream_control stream_ctl);
#endif /* __MANTIS_IOC_H */
|