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

Last change on this file since 374 was 374, checked in by joannou, 11 years ago

Introducing vci_block_device_tsar component

File size: 1.7 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 *         alain greiner
24 *
25 * Maintainers: alain
26 */
27#ifndef BLOCK_DEVICE_TSAR_REGS_H
28#define BLOCK_DEVICE_TSAR_REGS_H
29
30enum SoclibBlockDeviceRegisters {
31    BLOCK_DEVICE_BUFFER,
32    BLOCK_DEVICE_LBA,
33    BLOCK_DEVICE_COUNT,
34    BLOCK_DEVICE_OP,
35    BLOCK_DEVICE_STATUS,
36    BLOCK_DEVICE_IRQ_ENABLE,
37    BLOCK_DEVICE_SIZE,
38    BLOCK_DEVICE_BLOCK_SIZE,
39};
40
41enum SoclibBlockDeviceOp {
42    BLOCK_DEVICE_NOOP,
43    BLOCK_DEVICE_READ,
44    BLOCK_DEVICE_WRITE,
45};
46
47enum SoclibBlockDeviceStatus {
48    BLOCK_DEVICE_IDLE,
49    BLOCK_DEVICE_BUSY,
50    BLOCK_DEVICE_READ_SUCCESS,
51    BLOCK_DEVICE_WRITE_SUCCESS,
52    BLOCK_DEVICE_READ_ERROR,
53    BLOCK_DEVICE_WRITE_ERROR,
54};
55
56#endif /* BLOCK_DEVICE_TSAR_REGS_H */
57
58// Local Variables:
59// tab-width: 4
60// c-basic-offset: 4
61// c-file-offsets:((innamespace . 0)(inline-open . 0))
62// indent-tabs-mode: nil
63// End:
64
65// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=4:softtabstop=4
66
Note: See TracBrowser for help on using the repository browser.