[2] SPI interface driver for Siano's SMS chip-set based devices.
PATCH 2/5 [2] SPI interface driver for Siano's SMS chip-set based devices.
This patch provides SPI interface driver for SMS chip-set based devices. The patch includes common SMS SPI code, and adapter driver for PXA310
Signed-off-by Uri Shkolnik <[email protected]>
This patch provides SPI interface driver for SMS chip-set based devices. The patch includes common SMS SPI code, and adapter driver for PXA310
Signed-off-by Uri Shkolnik <[email protected]>
linux/drivers/media/dvb/siano/smsdbg_prn.h +56 -0
@@ -0,0 +1,56 @@ +/**************************************************************** + +Siano Mobile Silicon, Inc. +MDTV receiver kernel modules. +Copyright (C) 2006-2008, Uri Shkolnik + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 2 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see <http://www.gnu.org/licenses/>. + +****************************************************************/ + +#ifndef _SMS_DBG_H_ +#define _SMS_DBG_H_ + +#include <linux/kernel.h> +#include <linux/module.h> + +/************************************************************************/ +/* Debug Zones definitions. */ +/************************************************************************/ +#undef PERROR +# define PERROR(fmt, args...) \ + printk(KERN_ERR "spibus error: line %d- %s(): " fmt, __LINE__,\ + __func__, ## args) +#undef PWARNING +# define PWARNING(fmt, args...) \ + printk(KERN_WARNING "spibus warning: line %d- %s(): " fmt, __LINE__, \ + __func__, ## args) + +/* the debug macro - conditional compilation from the makefile */ +#undef PDEBUG/* undef it, just in case */ +#ifdef SPIBUS_DEBUG +# define PDEBUG(fmt, args...) \ + printk(KERN_DEBUG "spibus: line %d- %s(): " fmt, __LINE__, \ + __func__, ## args) +#else +# define PDEBUG(fmt, args...) /* not debugging: nothing */ +#endif + +/* The following defines are used for printing and +are mandatory for compilation. */ +#define TXT (str) str +#define PRN_DBG (str) PDEBUG str +#define PRN_ERR (str) PERROR str + +#endif /*_SMS_DBG_H_*/
linux/drivers/media/dvb/siano/smsspicommon.c +326 -0
326 lines not on this page · raw message
linux/drivers/media/dvb/siano/smsspicommon.h +96 -0
96 lines not on this page · raw message
linux/drivers/media/dvb/siano/smsspilog.c +446 -0
446 lines not on this page · raw message
linux/drivers/media/dvb/siano/smsspiphy.h +36 -0
@@ -0,0 +1,36 @@ +/**************************************************************** + +Siano Mobile Silicon, Inc. +MDTV receiver kernel modules. +Copyright (C) 2006-2008, Uri Shkolnik + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 2 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see <http://www.gnu.org/licenses/>. + +****************************************************************/ + +#ifndef __SMS_SPI_PHY_H__ +#define __SMS_SPI_PHY_H__ + +void smsspibus_xfer (void *context,unsigned char *txbuf, +unsigned long txbuf_phy_addr,unsigned char *rxbuf, +unsigned long rxbuf_phy_addr,int len); +void *smsspiphy_init (void *context,void (*smsspi_interruptHandler) (void *), +void *intr_context); +void smsspiphy_deinit (void *context); +void smschipreset (void *context); +void WriteFWtoStellar (void *pSpiPhy,unsigned char *pFW,unsigned long Len); +void prepareForFWDnl (void *pSpiPhy); +void fwDnlComplete (void *context,int App); + +#endif /* __SMS_SPI_PHY_H__ */
linux/drivers/media/dvb/siano/smsspiphy_pxa.c +435 -0
435 lines not on this page · raw message
_______________________________________________
linux-dvb mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb