input: sensors: hall: do not enable hall default
[firefly-linux-kernel-4.4.55.git] / drivers / cmmb / siano / smsspiphy.h
1 /****************************************************************
2
3 Siano Mobile Silicon, Inc.
4 MDTV receiver kernel modules.
5 Copyright (C) 2006-2008, Uri Shkolnik
6
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.
11
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.
16
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/>.
19
20 ****************************************************************/
21
22 #ifndef __SMS_SPI_PHY_H__
23 #define __SMS_SPI_PHY_H__
24
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 *),
29                      void *intr_context);
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);
37
38  struct cmmb_io_def_s
39 {
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);
45         void (*cmmb_io_pm)(void);
46         void (*cmmb_power_on)(void);
47         void (*cmmb_power_down)(void);
48 };
49 #endif /* __SMS_SPI_PHY_H__ */