1 /**************************************************************************/
\r
2 /* File: hms30c7202_can.h - Hynix HMS30c7202 ARM integrated C_CAN handling*/
\r
4 /* LinCAN - (Not only) Linux CAN bus driver */
\r
5 /* Copyright (C) 2002-2009 DCE FEE CTU Prague <http://dce.felk.cvut.cz> */
\r
6 /* Copyright (C) 2002-2009 Pavel Pisa <pisa@cmp.felk.cvut.cz> */
\r
7 /* Copyright (C) 2004 Sebastian Stolzenberg <stolzi@sebastian-stolzenberg.de> */
\r
8 /* Funded by OCERA and FRESCOR IST projects */
\r
9 /* Based on CAN driver code by Arnaud Westenberg <arnaud@wanadoo.nl> */
\r
10 /* and Ake Hedman, eurosource <akhe@eurosource.se> */
\r
12 /* LinCAN is free software; you can redistribute it and/or modify it */
\r
13 /* under terms of the GNU General Public License as published by the */
\r
14 /* Free Software Foundation; either version 2, or (at your option) any */
\r
15 /* later version. LinCAN is distributed in the hope that it will be */
\r
16 /* useful, but WITHOUT ANY WARRANTY; without even the implied warranty */
\r
17 /* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU */
\r
18 /* General Public License for more details. You should have received a */
\r
19 /* copy of the GNU General Public License along with LinCAN; see file */
\r
20 /* COPYING. If not, write to the Free Software Foundation, 675 Mass Ave, */
\r
21 /* Cambridge, MA 02139, USA. */
\r
23 /* To allow use of LinCAN in the compact embedded systems firmware */
\r
24 /* and RT-executives (RTEMS for example), main authors agree with next */
\r
25 /* special exception: */
\r
27 /* Including LinCAN header files in a file, instantiating LinCAN generics */
\r
28 /* or templates, or linking other files with LinCAN objects to produce */
\r
29 /* an application image/executable, does not by itself cause the */
\r
30 /* resulting application image/executable to be covered by */
\r
31 /* the GNU General Public License. */
\r
32 /* This exception does not however invalidate any other reasons */
\r
33 /* why the executable file might be covered by the GNU Public License. */
\r
34 /* Publication of enhanced or derived LinCAN files is required although. */
\r
35 /**************************************************************************/
\r
37 #ifndef __HMS30C7202_CAN__
\r
38 # define __HMS30C7202_CAN__
\r
40 int hms30c7202_init_hw_data(struct candevice_t *candev);
\r
41 int hms30c7202_init_chip_data(struct candevice_t *candev, int chipnr);
\r
42 int hms30c7202_request_io(struct candevice_t *candev);
\r
43 int hms30c7202_release_io(struct candevice_t *candev);
\r
44 int hms30c7202_reset( struct candevice_t *candev);
\r
45 void hms30c7202_write_register(unsigned data, can_ioptr_t address);
\r
46 unsigned hms30c7202_read_register(can_ioptr_t address);
\r
50 int hms30c7202_init_obj_data(struct canchip_t *chip, int objnr);
\r
51 int hms30c7202_program_irq(struct candevice_t *candev);
\r
53 #endif /* __HMS30C7202_CAN__ */
\r