1 | /* |
---|
2 | * soclib_xcu.c - soclib XCU driver API implementation. |
---|
3 | * |
---|
4 | * Authors 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-kernel; if not, write to the Free Software Foundation, |
---|
21 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
---|
22 | */ |
---|
23 | |
---|
24 | #include <soclib_xcu.h> |
---|
25 | #include <hal_types.h> |
---|
26 | #include <core.h> |
---|
27 | #include <chdev.h> |
---|
28 | |
---|
29 | void soclib_xcu_init( chdev_t * icu, |
---|
30 | lid_t lid ) |
---|
31 | { |
---|
32 | |
---|
33 | } |
---|
34 | |
---|
35 | void soclib_xcu_disable_irq( chdev_t * icu, |
---|
36 | uint32_t mask, |
---|
37 | uint32_t type, |
---|
38 | lid_t lid ) |
---|
39 | { |
---|
40 | |
---|
41 | } |
---|
42 | |
---|
43 | void soclib_xcu_enable_irq( chdev_t * icu, |
---|
44 | uint32_t mask, |
---|
45 | uint32_t type, |
---|
46 | lid_t lid ) |
---|
47 | { |
---|
48 | |
---|
49 | } |
---|
50 | |
---|
51 | void soclib_xcu_get_masks( chdev_t * icu, |
---|
52 | lid_t lid, |
---|
53 | uint32_t * hwi_mask, |
---|
54 | uint32_t * wti_mask, |
---|
55 | uint32_t * pti_mask ) |
---|
56 | { |
---|
57 | |
---|
58 | } |
---|
59 | |
---|
60 | void soclib_xcu_set_period( chdev_t * icu, |
---|
61 | uint32_t index, |
---|
62 | uint32_t period ) |
---|
63 | { |
---|
64 | |
---|
65 | } |
---|
66 | |
---|
67 | uint32_t soclib_xcu_ack_timer( chdev_t * icu, |
---|
68 | uint32_t index ) |
---|
69 | { |
---|
70 | |
---|
71 | } |
---|
72 | |
---|
73 | void soclib_xcu_get_status( chdev_t * icu, |
---|
74 | lid_t lid, |
---|
75 | uint32_t * hwi_status, |
---|
76 | uint32_t * wti_status, |
---|
77 | uint32_t * pti_status ) |
---|
78 | { |
---|
79 | |
---|
80 | } |
---|
81 | |
---|
82 | void soclib_xcu_send_ipi( xptr_t icu_xp, |
---|
83 | lid_t lid ) |
---|
84 | { |
---|
85 | |
---|
86 | } |
---|
87 | |
---|
88 | uint32_t * soclib_xcu_wti_ptr( chdev_t * icu, |
---|
89 | uint32_t index ) |
---|
90 | { |
---|
91 | |
---|
92 | } |
---|