xref: /openbmc/linux/include/linux/hsi/ssi_protocol.h (revision dc7bf5d7)
1dc7bf5d7SSebastian Reichel /*
2dc7bf5d7SSebastian Reichel  * ssip_slave.h
3dc7bf5d7SSebastian Reichel  *
4dc7bf5d7SSebastian Reichel  * SSIP slave support header file
5dc7bf5d7SSebastian Reichel  *
6dc7bf5d7SSebastian Reichel  * Copyright (C) 2010 Nokia Corporation. All rights reserved.
7dc7bf5d7SSebastian Reichel  *
8dc7bf5d7SSebastian Reichel  * Contact: Carlos Chinea <carlos.chinea@nokia.com>
9dc7bf5d7SSebastian Reichel  *
10dc7bf5d7SSebastian Reichel  * This program is free software; you can redistribute it and/or
11dc7bf5d7SSebastian Reichel  * modify it under the terms of the GNU General Public License
12dc7bf5d7SSebastian Reichel  * version 2 as published by the Free Software Foundation.
13dc7bf5d7SSebastian Reichel  *
14dc7bf5d7SSebastian Reichel  * This program is distributed in the hope that it will be useful, but
15dc7bf5d7SSebastian Reichel  * WITHOUT ANY WARRANTY; without even the implied warranty of
16dc7bf5d7SSebastian Reichel  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17dc7bf5d7SSebastian Reichel  * General Public License for more details.
18dc7bf5d7SSebastian Reichel  *
19dc7bf5d7SSebastian Reichel  * You should have received a copy of the GNU General Public License
20dc7bf5d7SSebastian Reichel  * along with this program; if not, write to the Free Software
21dc7bf5d7SSebastian Reichel  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
22dc7bf5d7SSebastian Reichel  * 02110-1301 USA
23dc7bf5d7SSebastian Reichel  */
24dc7bf5d7SSebastian Reichel 
25dc7bf5d7SSebastian Reichel #ifndef __LINUX_SSIP_SLAVE_H__
26dc7bf5d7SSebastian Reichel #define __LINUX_SSIP_SLAVE_H__
27dc7bf5d7SSebastian Reichel 
28dc7bf5d7SSebastian Reichel #include <linux/hsi/hsi.h>
29dc7bf5d7SSebastian Reichel 
30dc7bf5d7SSebastian Reichel static inline void ssip_slave_put_master(struct hsi_client *master)
31dc7bf5d7SSebastian Reichel {
32dc7bf5d7SSebastian Reichel }
33dc7bf5d7SSebastian Reichel 
34dc7bf5d7SSebastian Reichel struct hsi_client *ssip_slave_get_master(struct hsi_client *slave);
35dc7bf5d7SSebastian Reichel int ssip_slave_start_tx(struct hsi_client *master);
36dc7bf5d7SSebastian Reichel int ssip_slave_stop_tx(struct hsi_client *master);
37dc7bf5d7SSebastian Reichel void ssip_reset_event(struct hsi_client *master);
38dc7bf5d7SSebastian Reichel 
39dc7bf5d7SSebastian Reichel int ssip_slave_running(struct hsi_client *master);
40dc7bf5d7SSebastian Reichel 
41dc7bf5d7SSebastian Reichel #endif /* __LINUX_SSIP_SLAVE_H__ */
42dc7bf5d7SSebastian Reichel 
43