source: trunk/modules/vci_tty_tsar/include/soclib/tty.h @ 1064

Last change on this file since 1064 was 1054, checked in by alain, 7 years ago

Introduce the "vci_tty_tsar" component, that has two maskable interrups
(TX_IRQ and RX_IRQ) per channel.

File size: 1.4 KB
Line 
1/*
2 * SOCLIB_LGPL_HEADER_BEGIN
3 *
4 * This file is part of SoCLib, GNU LGPLv2.1.
5 *
6 * SoCLib is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU Lesser General Public License as published
8 * by the Free Software Foundation; version 2.1 of the License.
9 *
10 * SoCLib is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with SoCLib; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18 * 02110-1301 USA
19 *
20 * SOCLIB_LGPL_HEADER_END
21 *
22 * Copyright (c) UPMC, Lip6, Asim
23 *         Nicolas Pouillon <nipo@ssji.net>, 2006
24 *
25 * Maintainers: nipo
26 */
27#ifndef TTY_REGS_H
28#define TTY_REGS_H
29
30
31enum SoclibTtyRegisters
32{
33    TTY_WRITE         = 0,
34    TTY_STATUS        = 1,
35    TTY_READ          = 2,
36    TTY_RX_IRQ_ENABLE = 3,
37    TTY_TX_IRQ_ENABLE = 4,
38    /**/
39    TTY_SPAN          = 8,
40};
41
42enum SoclibTtyStatus
43{
44    TTY_STATUS_RX_FULL      = 1,
45    TTY_STATUS_TX_FULL      = 2,
46};
47
48#endif /* TTY_REGS_H */
49
50// Local Variables:
51// tab-width: 4
52// c-basic-offset: 4
53// c-file-offsets:((innamespace . 0)(inline-open . 0))
54// indent-tabs-mode: nil
55// End:
56
57// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=4:softtabstop=4
58
Note: See TracBrowser for help on using the repository browser.