Copyright update for 2011
[bcusdk.git] / eibd / server / b-TPUART.h
blobc7a2067d0c5801bd72c07f7f9f2a79741db1e320
1 /*
2 EIBD eib bus access and management daemon
3 Copyright (C) 2005-2011 Martin Koegler <mkoegler@auto.tuwien.ac.at>
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20 #ifndef C_TPUART_H
21 #define C_TPUART_H
23 #include "tpuart.h"
25 #define TPUART24_URL "tpuart24:/dev/tpuartX\n"
26 #define TPUART26_URL "tpuart:/dev/tpuartX\n"
28 #define TPUART24_DOC "tpuart24 connects to the EIB bus over an TPUART (using the TPUART driver, Linux Kernel 2.4)\n\n"
29 #define TPUART26_DOC "tpuart connects to the EIB bus over an TPUART (using the TPUART driver, Linux Kernel 2.6)\n\n"
31 #define TPUART24_PREFIX "tpuart24"
32 #define TPUART26_PREFIX "tpuart"
34 #define TPUART24_CREATE tpuart24_Create
35 #define TPUART26_CREATE tpuart26_Create
37 #define TPUART24_CLEANUP NULL
38 #define TPUART26_CLEANUP NULL
40 inline Layer2Interface *
41 tpuart24_Create (const char *dev, int flags, Trace * t)
43 return new TPUARTLayer2Driver (0, dev, arg.addr, t);
46 inline Layer2Interface *
47 tpuart26_Create (const char *dev, int flags, Trace * t)
49 return new TPUARTLayer2Driver (1, dev, arg.addr, t);
52 #endif