2 Mantis PCI bridge driver
4 Copyright (C) 2005, 2006 Manu Abraham (abraham.manu@gmail.com)
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.
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.
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.
21 #ifndef __MANTIS_LINK_H
22 #define __MANTIS_LINK_H
24 #include <linux/workqueue.h>
26 enum mantis_sbuf_status
{
27 MANTIS_SBUF_DATA_AVAIL
= 1,
28 MANTIS_SBUF_DATA_EMPTY
= 2,
29 MANTIS_SBUF_DATA_OVFLW
= 3
39 enum mantis_slot_state
{
45 struct mantis_slot slot
[4];
47 struct work_struct hif_evm_work
;
50 wait_queue_head_t hif_opdone_wq
;
51 wait_queue_head_t hif_brrdyw_wq
;
52 wait_queue_head_t hif_data_wq
;
55 enum mantis_sbuf_status sbuf_status
;
57 enum mantis_slot_state slot_state
;
59 struct dvb_device
*ca_dev
;
64 extern void mantis_event_cam_plugin(struct mantis_ca
*ca
);
65 extern void mantis_event_cam_unplug(struct mantis_ca
*ca
);
66 extern int mantis_pcmcia_init(struct mantis_ca
*ca
);
67 extern void mantis_pcmcia_exit(struct mantis_ca
*ca
);
68 extern int mantis_evmgr_init(struct mantis_ca
*ca
);
69 extern void mantis_evmgr_exit(struct mantis_ca
*ca
);
72 extern int mantis_hif_init(struct mantis_ca
*ca
);
73 extern void mantis_hif_exit(struct mantis_ca
*ca
);
74 extern int mantis_hif_read_mem(struct mantis_ca
*ca
, u32 addr
);
75 extern int mantis_hif_write_mem(struct mantis_ca
*ca
, u32 addr
, u8 data
);
76 extern int mantis_hif_read_iom(struct mantis_ca
*ca
, u32 addr
, u32 count
, u32
*data
);
77 extern int mantis_hif_write_iom(struct mantis_ca
*ca
, u32 addr
, u32 data
);
79 #endif // __MANTIS_LINK_H