]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - include/linux/can/platform/ti_hecc.h
can: unify identifiers to ensure unique include processing
[mirror_ubuntu-bionic-kernel.git] / include / linux / can / platform / ti_hecc.h
CommitLineData
42193e3e
OH
1#ifndef _CAN_PLATFORM_TI_HECC_H
2#define _CAN_PLATFORM_TI_HECC_H
773c3e75 3
3758bf25
AG
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
773c3e75 29 * @transceiver_switch: platform specific callback fn for transceiver control
3758bf25
AG
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 */
35struct 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;
773c3e75 42 void (*transceiver_switch) (int);
3758bf25 43};
42193e3e 44#endif /* !_CAN_PLATFORM_TI_HECC_H */