From e66c6556b70b871d88ef666f33029b1d27c0c746 Mon Sep 17 00:00:00 2001 From: Guillaume Knispel Date: Sun, 17 Oct 2010 17:12:23 +0200 Subject: add some audio for XHFC --- xhfc/xhfc.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'xhfc/xhfc.h') 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 #include #include + +#if 1 +# include +#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) -- cgit v1.2.3