X-Git-Url: http://rtime.felk.cvut.cz/gitweb/lincan.git/blobdiff_plain/8efef967ff91e6d5b92426ffb091842d4e54145d..23eabc9a14c6b6892b92991109a6f86603309dc5:/lincan/include/unican_cl2.h diff --git a/lincan/include/unican_cl2.h b/lincan/include/unican_cl2.h index ffd6bec..60fcc16 100644 --- a/lincan/include/unican_cl2.h +++ b/lincan/include/unican_cl2.h @@ -1,38 +1,39 @@ -/****************************************************************************** +/**************************************************************************/ +/* File: unican_cl2.h - Unicontrols PCAN,PCAN-PCI, VCAN core support */ +/* */ +/* LinCAN - (Not only) Linux CAN bus driver */ +/* Copyright (C) 2002-2009 DCE FEE CTU Prague */ +/* Copyright (C) 2002-2009 Pavel Pisa */ +/* Copyright (C) 1997 F. Spurny, CVUT FEL, Dept. of Measurement */ +/* Copyright (C) 1997 Unicontrols a.s. */ +/* Funded by OCERA and FRESCOR IST projects */ +/* Based on CAN driver code by Arnaud Westenberg */ +/* */ +/* LinCAN is free software; you can redistribute it and/or modify it */ +/* under terms of the GNU General Public License as published by the */ +/* Free Software Foundation; either version 2, or (at your option) any */ +/* later version. LinCAN is distributed in the hope that it will be */ +/* useful, but WITHOUT ANY WARRANTY; without even the implied warranty */ +/* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU */ +/* General Public License for more details. You should have received a */ +/* copy of the GNU General Public License along with LinCAN; see file */ +/* COPYING. If not, write to the Free Software Foundation, 675 Mass Ave, */ +/* Cambridge, MA 02139, USA. */ +/* */ +/* To allow use of LinCAN in the compact embedded systems firmware */ +/* and RT-executives (RTEMS for example), main authors agree with next */ +/* special exception: */ +/* */ +/* Including LinCAN header files in a file, instantiating LinCAN generics */ +/* or templates, or linking other files with LinCAN objects to produce */ +/* an application image/executable, does not by itself cause the */ +/* resulting application image/executable to be covered by */ +/* the GNU General Public License. */ +/* This exception does not however invalidate any other reasons */ +/* why the executable file might be covered by the GNU Public License. */ +/* Publication of enhanced or derived LinCAN files is required although. */ +/**************************************************************************/ -Cl2.H - PCAN and VCAN cards hardware access library -"""""""" - (C) Copyright 1997 Unicontrols a.s. - -PROJEKT : CANopen -AUTOR : F.Spurny -FIRMA : CVUT FEL, Dept. of Measurement -PORTING : Adapted for LinCAN driver by Pavel Pisa, OCERA team member - -DULEZITE UPOZORNENI: - -ARCHIVACNI INFORMACE: -$Log$ -Revision 1.1 2004/03/13 23:13:31 ppisa -Interconnected OCERA configuration options with LinCAN boardlist.c compilation. - - -27.1.1999 - corected value of CL2_ERROR_WARNING and CL2_ERROR_BUS_OFF constants - -12.12.2000 - CL2_STATUS_RESET_CARD, CL2_ERROR_RESET_CARD added - fields of sCAN_MESSAGE aligned - -10.8.2001 - PCI PCAN ID registers content defined - - cl2_find_card function prototype added - - cl2_get_ID function prototype added - -10.2.2004 - Start of PCAN support porting to RT-Linux and Linux environment - -=============================================================================== - -UCEL A FUNKCE: - -******************************************************************************/ #ifndef __INC_CL2_H #define __INC_CL2_H @@ -41,7 +42,7 @@ UCEL A FUNKCE: /****** includes ******/ #ifndef __INC_ANCTYPES_H -#include "anctypes.h" +#include "unican_types.h" #endif /****** Definitions of constants ******/ @@ -106,7 +107,7 @@ UCEL A FUNKCE: #define CL2_ERROR_LL 0x0007 /* */ #define CL2_ERROR_WARNING 0x0040 /* bus warning detected */ #define CL2_ERROR_BUS_OFF 0x0080 /* bus error detected */ -#define CL2_ERROR_RESET_CARD 0x0100 /* card reset occurred */ +#define CL2_ERROR_RESET_CARD 0x0100 /* card reset occurred */ #define CL2_ERROR_FIRMWARE 0x1000 /* firmware error detected */ #define CL2_ERROR_DPRAM 0x2000 /* dual port RAM error detected */ #define CL2_ERROR_RAM 0x4000 /* internal RAM error detected */