summaryrefslogtreecommitdiff
path: root/xhfc/xhfc.h
diff options
context:
space:
mode:
authorGuillaume Knispel <gknispel@proformatique.com>2010-10-17 17:12:23 +0200
committerGuillaume Knispel <gknispel@proformatique.com>2010-10-17 17:12:23 +0200
commite66c6556b70b871d88ef666f33029b1d27c0c746 (patch)
treed271e92f4f23b2738ce6714aa30ecae4fe20e2a1 /xhfc/xhfc.h
parent3ffa04249ab3a5abf273e0cc26c4bcc1fc726b4b (diff)
add some audio for XHFC
Diffstat (limited to 'xhfc/xhfc.h')
-rw-r--r--xhfc/xhfc.h17
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)