Xenomai  3.1
rtcan_mscan.h
1 /*
2  * Copyright (C) 2009 Wolfgang Grandegger <wg@denx.de>
3  *
4  * This program is free software; you can redistribute it and/or modify it
5  * under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful, but
10  * WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software Foundation,
16  * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17  */
18 
19 #ifndef __RTCAN_MSCAN_H_
20 #define __RTCAN_MSCAN_H_
21 
22 #define RTCAN_DEV_NAME "rtcan%d"
23 #define RTCAN_DRV_NAME "rtcan_mscan"
24 
25 /* MSCAN type variants */
26 enum {
27  MSCAN_TYPE_MPC5200,
28  MSCAN_TYPE_MPC5121
29 };
30 
31 extern int rtcan_mscan_register(struct rtcan_device *dev, int irq,
32  int mscan_clksrc);
33 extern int rtcan_mscan_unregister(struct rtcan_device *dev);
34 
35 extern int rtcan_mscan_create_proc(struct rtcan_device* dev);
36 extern void rtcan_mscan_remove_proc(struct rtcan_device* dev);
37 
38 #endif /* __RTCAN_MSCAN_H_ */