1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 2 /* 3 Mantis PCI bridge driver 4 5 Copyright (C) Manu Abraham (abraham.manu@gmail.com) 6 7 */ 8 9 #ifndef __MANTIS_CORE_H 10 #define __MANTIS_CORE_H 11 12 #include "mantis_common.h" 13 14 15 #define FE_TYPE_SAT 0 16 #define FE_TYPE_CAB 1 17 #define FE_TYPE_TER 2 18 19 #define FE_TYPE_TS204 0 20 #define FE_TYPE_TS188 1 21 22 23 struct vendorname { 24 u8 *sub_vendor_name; 25 u32 sub_vendor_id; 26 }; 27 28 struct devicetype { 29 u8 *sub_device_name; 30 u32 sub_device_id; 31 u8 device_type; 32 u32 type_flags; 33 }; 34 35 36 extern int mantis_dma_init(struct mantis_pci *mantis); 37 extern int mantis_dma_exit(struct mantis_pci *mantis); 38 extern void mantis_dma_start(struct mantis_pci *mantis); 39 extern void mantis_dma_stop(struct mantis_pci *mantis); 40 extern int mantis_i2c_init(struct mantis_pci *mantis); 41 extern int mantis_i2c_exit(struct mantis_pci *mantis); 42 extern int mantis_core_init(struct mantis_pci *mantis); 43 extern int mantis_core_exit(struct mantis_pci *mantis); 44 45 #endif /* __MANTIS_CORE_H */ 46