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

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

start moving the APIC code into the PIC driver

File size: 2.2 KB
Line 
1/*
2 * soclib_xcu.c - x86 XCU driver API implementation.
3 *
4 * Copyright (c) 2017 Maxime Villard
5 *
6 * This file is part of ALMOS-MKH.
7 *
8 * ALMOS-MKH is free software; you can redistribute it and/or modify it
9 * under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; version 2.0 of the License.
11 *
12 * ALMOS-MKH is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15 * General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with ALMOS-MKH.; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20 */
21
22#include <soclib_xcu.h>
23#include <hal_types.h>
24#include <core.h>
25#include <chdev.h>
26
27#include <hal_apic.h>
28#include <hal_segmentation.h>
29#include <hal_internal.h>
30
31
32void soclib_xcu_init(chdev_t *icu, lid_t lid)
33{
34        x86_panic((char *)__func__);
35}
36
37void soclib_xcu_enable_irq(chdev_t *icu, uint32_t idx, uint32_t type,
38    lid_t lid)
39{
40        x86_panic((char *)__func__);
41}
42
43void soclib_xcu_disable_irq(chdev_t *icu, uint32_t idx, uint32_t type,
44    lid_t lid)
45{
46        x86_panic((char *)__func__);
47}
48
49void soclib_xcu_get_masks(chdev_t *icu, lid_t lid, uint32_t *hwi_mask,
50    uint32_t *wti_mask, uint32_t *pti_mask)
51{
52        x86_panic((char *)__func__);
53}
54
55void soclib_xcu_set_period( chdev_t * icu,
56                            uint32_t  index,
57                            uint32_t  period )
58{
59        x86_panic((char *)__func__);
60}
61
62uint32_t soclib_xcu_ack_timer( chdev_t * icu,
63                               uint32_t  index )
64{
65        x86_panic((char *)__func__);
66        return 0;
67}
68
69void soclib_xcu_get_status(chdev_t *icu, lid_t lid, uint32_t *hwi_status,
70    uint32_t *wti_status, uint32_t *pti_status)
71{
72        if (lid != 0) {
73                x86_panic("xcu_get_status should have lid==0");
74        }
75
76        x86_panic((char *)__func__);
77}
78
79void soclib_xcu_send_ipi( xptr_t  icu_xp,
80                          lid_t   lid )
81{
82        x86_panic((char *)__func__);
83}
84
85uint32_t * soclib_xcu_wti_ptr( chdev_t  * icu,
86                               uint32_t   index )
87{
88        x86_panic((char *)__func__);
89        return NULL;
90}
Note: See TracBrowser for help on using the repository browser.