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 | #include <hal_internal.h> |
---|
30 | |
---|
31 | void soclib_xcu_init( chdev_t * icu, |
---|
32 | lid_t lid ) |
---|
33 | { |
---|
34 | x86_panic((char *)__func__); |
---|
35 | } |
---|
36 | |
---|
37 | void soclib_xcu_disable_irq( chdev_t * icu, |
---|
38 | uint32_t mask, |
---|
39 | uint32_t type, |
---|
40 | lid_t lid ) |
---|
41 | { |
---|
42 | x86_panic((char *)__func__); |
---|
43 | } |
---|
44 | |
---|
45 | void soclib_xcu_enable_irq( chdev_t * icu, |
---|
46 | uint32_t mask, |
---|
47 | uint32_t type, |
---|
48 | lid_t lid ) |
---|
49 | { |
---|
50 | x86_panic((char *)__func__); |
---|
51 | } |
---|
52 | |
---|
53 | void soclib_xcu_get_masks( chdev_t * icu, |
---|
54 | lid_t lid, |
---|
55 | uint32_t * hwi_mask, |
---|
56 | uint32_t * wti_mask, |
---|
57 | uint32_t * pti_mask ) |
---|
58 | { |
---|
59 | x86_panic((char *)__func__); |
---|
60 | } |
---|
61 | |
---|
62 | void soclib_xcu_set_period( chdev_t * icu, |
---|
63 | uint32_t index, |
---|
64 | uint32_t period ) |
---|
65 | { |
---|
66 | x86_panic((char *)__func__); |
---|
67 | } |
---|
68 | |
---|
69 | uint32_t soclib_xcu_ack_timer( chdev_t * icu, |
---|
70 | uint32_t index ) |
---|
71 | { |
---|
72 | x86_panic((char *)__func__); |
---|
73 | return 0; |
---|
74 | } |
---|
75 | |
---|
76 | void soclib_xcu_get_status( chdev_t * icu, |
---|
77 | lid_t lid, |
---|
78 | uint32_t * hwi_status, |
---|
79 | uint32_t * wti_status, |
---|
80 | uint32_t * pti_status ) |
---|
81 | { |
---|
82 | x86_panic((char *)__func__); |
---|
83 | } |
---|
84 | |
---|
85 | void soclib_xcu_send_ipi( xptr_t icu_xp, |
---|
86 | lid_t lid ) |
---|
87 | { |
---|
88 | x86_panic((char *)__func__); |
---|
89 | } |
---|
90 | |
---|
91 | uint32_t * soclib_xcu_wti_ptr( chdev_t * icu, |
---|
92 | uint32_t index ) |
---|
93 | { |
---|
94 | x86_panic((char *)__func__); |
---|
95 | return NULL; |
---|
96 | } |
---|