source: trunk/modules/vci_block_device_tsar/include/soclib/block_device_tsar.h @ 2

Last change on this file since 2 was 2, checked in by nipo, 14 years ago

Import TSAR modules in TSAR's own svn

  • Property svn:eol-style set to native
  • Property svn:keywords set to "Author Date Id Rev URL Revision"
  • Property svn:mime-type set to text/plain
File size: 1.8 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>, 2007
24 *         Eric Guthmuller  <eric.guthmuller@polytechnique.edu>, 2009
25 *
26 * Maintainers: nipo eric.guthmuller@polytechnique.edu
27 */
28#ifndef BLOCK_DEVICE_TSAR_REGS_H
29#define BLOCK_DEVICE_TSAR_REGS_H
30
31enum SoclibBlockDeviceRegisters {
32    BLOCK_DEVICE_BUFFER,
33    BLOCK_DEVICE_LBA,
34    BLOCK_DEVICE_COUNT,
35    BLOCK_DEVICE_OP,
36    BLOCK_DEVICE_STATUS,
37    BLOCK_DEVICE_IRQ_ENABLE,
38    BLOCK_DEVICE_SIZE,
39    BLOCK_DEVICE_BLOCK_SIZE,
40};
41
42enum SoclibBlockDeviceOp {
43        BLOCK_DEVICE_NOOP,
44        BLOCK_DEVICE_READ,
45        BLOCK_DEVICE_WRITE,
46};
47
48enum SoclibBlockDeviceStatus {
49        BLOCK_DEVICE_IDLE,
50        BLOCK_DEVICE_BUSY,
51        BLOCK_DEVICE_READ_SUCCESS,
52        BLOCK_DEVICE_WRITE_SUCCESS,
53        BLOCK_DEVICE_READ_ERROR,
54        BLOCK_DEVICE_WRITE_ERROR,
55        BLOCK_DEVICE_ERROR,
56};
57
58#endif /* BLOCK_DEVICE_TSAR_REGS_H */
59
60// Local Variables:
61// tab-width: 4
62// c-basic-offset: 4
63// c-file-offsets:((innamespace . 0)(inline-open . 0))
64// indent-tabs-mode: nil
65// End:
66
67// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=4:softtabstop=4
68
Note: See TracBrowser for help on using the repository browser.