source: trunk/softs/giet_tsar/block_device.h @ 921

Last change on this file since 921 was 622, checked in by alain, 11 years ago

Introducing a minimal GIET:

  • no virtual memory
  • no conyext switch
  • no system calls
File size: 1.8 KB
RevLine 
[158]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 *
25 * Maintainers: nipo
26 */
27#ifndef BLOCK_DEVICE_REGS_H
28#define BLOCK_DEVICE_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,
[622]39    BLOCK_DEVICE_BUFFER_EXT,
[158]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_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.