source: trunk/hal/x86_64/drivers/soclib_iob.h @ 264

Last change on this file since 264 was 264, checked in by max@…, 7 years ago

empty out

File size: 1.4 KB
Line 
1/*
2 * soclib_iob.h - soclib IOB driver API definition.
3 *
4 * Alain Greiner    (2016)
5 *
6 * Copyright (c) UPMC Sorbonne Universites
7 *
8 * This file is part of ALMOS-MKH.
9 *
10 * ALMOS-MKH is free software; you can redistribute it and/or modify it
11 * under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; version 2.0 of the License.
13 *
14 * ALMOS-MKH is distributed in the hope that it will be useful, but
15 * WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17 * General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with ALMOS-MKH; if not, write to the Free Software Foundation,
21 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
22 */
23
24#ifndef _SOCLIB_IOB_H_
25#define _SOCLIB_IOB_H_
26
27#include <hal_types.h>
28#include <chdev.h>
29
30void soclib_iob_init( chdev_t * chdev );
31
32void soclib_iob_set_active( xptr_t   iox_xp,
33                            uint32_t value );
34
35void soclib_iob_set_ptpr( xptr_t   iob_xp,
36                          uint32_t value );
37
38void soclib_iob_inval_page( xptr_t  iox_xp,
39                            vpn_t   vpn );
40
41uint32_t soclib_iob_get_bvar( xptr_t  iox_xp );
42
43uint32_t soclib_iob_get_srcid( xptr_t  iox_xp );
44
45uint32_t soclib_iob_get_error( xptr_t  iox_xp );
46
47#endif
48
Note: See TracBrowser for help on using the repository browser.