1 #ifndef __CAN_PLATFORM_TI_HECC_H__
2 #define __CAN_PLATFORM_TI_HECC_H__
3 
4 /*
5  * TI HECC (High End CAN Controller) driver platform header
6  *
7  * Copyright (C) 2009 Texas Instruments Incorporated - http://www.ti.com/
8  *
9  * This program is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU General Public License as
11  * published by the Free Software Foundation version 2.
12  *
13  * This program is distributed as is WITHOUT ANY WARRANTY of any
14  * kind, whether express or implied; without even the implied warranty
15  * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  * GNU General Public License for more details.
17  *
18  */
19 
20 /**
21  * struct hecc_platform_data - HECC Platform Data
22  *
23  * @scc_hecc_offset:	mostly 0 - should really never change
24  * @scc_ram_offset:	SCC RAM offset
25  * @hecc_ram_offset:	HECC RAM offset
26  * @mbx_offset:		Mailbox RAM offset
27  * @int_line:		Interrupt line to use - 0 or 1
28  * @version:		version for future use
29  * @transceiver_switch:	platform specific callback fn for transceiver control
30  *
31  * Platform data structure to get all platform specific settings.
32  * this structure also accounts the fact that the IP may have different
33  * RAM and mailbox offsets for different SOC's
34  */
35 struct ti_hecc_platform_data {
36 	u32 scc_hecc_offset;
37 	u32 scc_ram_offset;
38 	u32 hecc_ram_offset;
39 	u32 mbx_offset;
40 	u32 int_line;
41 	u32 version;
42 	void (*transceiver_switch) (int);
43 };
44 #endif
45