diff options
Diffstat (limited to 'xhfc/xhfc.h')
-rw-r--r-- | xhfc/xhfc.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/xhfc/xhfc.h b/xhfc/xhfc.h index 53c99bc..e6f3293 100644 --- a/xhfc/xhfc.h +++ b/xhfc/xhfc.h @@ -4,10 +4,26 @@ #include <linux/interrupt.h> #include <linux/pci.h> #include <dahdi/kernel.h> + +#if 1 +# include <tdm/xivo_tdm_api.h> +#else +/* place holder */ +#define ICP_HSSDRV_PORT_XHFC_MEGREZ_PROTO_XIVO_CONFIG 42 +struct xivo_tdm_port { int lol; }; +extern struct xivo_tdm_port kikoolol; +static inline struct xivo_tdm_port* xivo_tdm_get_port(int port) { return &kikoolol; } +static inline void xivo_tdm_put_port(struct xivo_tdm_port* x) {} +static inline int xivo_tdm_config_port(struct xivo_tdm_port* x, unsigned int port_config) { return 0; } +#endif + #include "xhfc24sucd.h" + #define DRIVER_NAME "xhfc" +#define XIVO_XHFC_TDM_PORT 0 + #ifndef CHIP_ID_2S4U #define CHIP_ID_2S4U 0x62 #endif @@ -145,6 +161,7 @@ struct xhfc_pi { struct xhfc xhfc; /* mem for one XHFC */ struct pci_dev *pci_dev; + struct xivo_tdm_port *tdm_port; }; #define dchan_fifo(span) (span->port * 4 + 2) |