]> rtime.felk.cvut.cz Git - lincan.git/blob - lincan/include/eb8245.h
LinCAN sources go through big white-space cleanup.
[lincan.git] / lincan / include / eb8245.h
1 /**************************************************************************/
2 /* File: eb8245.h -  Kontron EB8245 onboard CAN with SJA1000 controller   */
3 /*                                                                        */
4 /* LinCAN - (Not only) Linux CAN bus driver                               */
5 /* Copyright (C) 2002-2009 DCE FEE CTU Prague <http://dce.felk.cvut.cz>   */
6 /* Copyright (C) 2002-2009 Pavel Pisa <pisa@cmp.felk.cvut.cz>             */
7 /* Copyright (C) 2005 Petr Cvachoucek, Unicontrols                        */
8 /* Funded by OCERA and FRESCOR IST projects                               */
9 /* Based on CAN driver code by Arnaud Westenberg <arnaud@wanadoo.nl>      */
10 /*                                                                        */
11 /* LinCAN is free software; you can redistribute it and/or modify it      */
12 /* under terms of the GNU General Public License as published by the      */
13 /* Free Software Foundation; either version 2, or (at your option) any    */
14 /* later version.  LinCAN is distributed in the hope that it will be      */
15 /* useful, but WITHOUT ANY WARRANTY; without even the implied warranty    */
16 /* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU    */
17 /* General Public License for more details. You should have received a    */
18 /* copy of the GNU General Public License along with LinCAN; see file     */
19 /* COPYING. If not, write to the Free Software Foundation, 675 Mass Ave,  */
20 /* Cambridge, MA 02139, USA.                                              */
21 /*                                                                        */
22 /* To allow use of LinCAN in the compact embedded systems firmware        */
23 /* and RT-executives (RTEMS for example), main authors agree with next    */
24 /* special exception:                                                     */
25 /*                                                                        */
26 /* Including LinCAN header files in a file, instantiating LinCAN generics */
27 /* or templates, or linking other files with LinCAN objects to produce    */
28 /* an application image/executable, does not by itself cause the          */
29 /* resulting application image/executable to be covered by                */
30 /* the GNU General Public License.                                        */
31 /* This exception does not however invalidate any other reasons           */
32 /* why the executable file might be covered by the GNU Public License.    */
33 /* Publication of enhanced or derived LinCAN files is required although.  */
34 /**************************************************************************/
35
36
37 int eb8245_request_io(struct candevice_t *candev);
38 int eb8245_release_io(struct candevice_t *candev);
39 int eb8245_reset(struct candevice_t *candev);
40 int eb8245_init_hw_data(struct candevice_t *candev);
41 int eb8245_init_chip_data(struct candevice_t *candev, int chipnr);
42 int eb8245_init_obj_data(struct canchip_t *chip, int objnr);
43 int eb8245_program_irq(struct candevice_t *candev);
44 void eb8245_write_register(unsigned data, can_ioptr_t address);
45 unsigned eb8245_read_register(can_ioptr_t address);