source: trunk/hal/x86_64/drivers/soclib_xcu.c @ 129

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

put panics everywhere

File size: 2.6 KB
RevLine 
[75]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
[129]29#include <hal_internal.h>
30
[75]31void soclib_xcu_init( chdev_t * icu,
32                      lid_t     lid )
33{
[129]34        x86_panic((char *)__func__);
[75]35}
36
37void soclib_xcu_disable_irq( chdev_t  * icu,
38                             uint32_t   mask,
39                             uint32_t   type,
40                             lid_t      lid )
41{
[129]42        x86_panic((char *)__func__);
[75]43}
44
45void soclib_xcu_enable_irq( chdev_t  * icu,
46                            uint32_t   mask,
47                            uint32_t   type,
48                            lid_t      lid )
49{
[129]50        x86_panic((char *)__func__);
[75]51}
52
53void 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{
[129]59        x86_panic((char *)__func__);
[75]60}
61
62void soclib_xcu_set_period( chdev_t * icu,
63                            uint32_t  index,
64                            uint32_t  period )
65{
[129]66        x86_panic((char *)__func__);
[75]67}
68
69uint32_t soclib_xcu_ack_timer( chdev_t * icu,
70                               uint32_t  index )
71{
[129]72        x86_panic((char *)__func__);
[81]73        return 0;
[75]74}
75
76void 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{
[129]82        x86_panic((char *)__func__);
[75]83}
84
85void soclib_xcu_send_ipi( xptr_t  icu_xp,
86                          lid_t   lid )
87{
[129]88        x86_panic((char *)__func__);
[75]89}
90
91uint32_t * soclib_xcu_wti_ptr( chdev_t  * icu,
92                               uint32_t   index )
93{
[129]94        x86_panic((char *)__func__);
[81]95        return NULL;
[75]96}
Note: See TracBrowser for help on using the repository browser.