1 /****************************************************************
3 Siano Mobile Silicon, Inc.
4 MDTV receiver kernel modules.
5 Copyright (C) 2006-2008, Uri Shkolnik
7 This program is free software: you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation, either version 2 of the License, or
10 (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program. If not, see <http://www.gnu.org/licenses/>.
20 ****************************************************************/
22 #ifndef __SMS_SPI_PHY_H__
23 #define __SMS_SPI_PHY_H__
25 void smsspibus_xfer(void *context, unsigned char *txbuf,
26 unsigned long txbuf_phy_addr, unsigned char *rxbuf,
27 unsigned long rxbuf_phy_addr, int len);
28 void *smsspiphy_init(void *context, void (*smsspi_interruptHandler) (void *),
30 int smsspiphy_deinit(void *context);
31 void smschipreset(void *context);
32 void WriteFWtoStellar(void *pSpiPhy, unsigned char *pFW, unsigned long Len);
33 void prepareForFWDnl(void *pSpiPhy);
34 void fwDnlComplete(void *context, int App);
35 void smsspibus_ssp_suspend(void* context );
36 int smsspibus_ssp_resume(void* context);
40 unsigned int cmmb_pw_en;
41 unsigned int cmmb_pw_dwn;
42 unsigned int cmmb_pw_rst;
43 unsigned int cmmb_irq;
44 void (*io_init_mux)(void);
46 #endif /* __SMS_SPI_PHY_H__ */