File: aplic.h

package info (click to toggle)
optee-os 4.8.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 31,960 kB
  • sloc: ansic: 444,388; asm: 12,922; python: 3,719; makefile: 1,681; sh: 238
file content (30 lines) | stat: -rw-r--r-- 748 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/* SPDX-License-Identifier: BSD-2-Clause */
/*
 * Copyright (c) 2025 Beijing Institute of Open Source Chip (BOSC)
 */

#ifndef __DRIVERS_APLIC_H
#define __DRIVERS_APLIC_H

#include <types_ext.h>

/*
 * The aplic_init() function initializes the struct aplic_data which
 * is then used by other functions. This function also initializes
 * the APLIC and should only be called from the primary boot hart.
 */
void aplic_init(paddr_t aplic_base_pa);

/*
 * Does per-hart specific APLIC initialization, should be called by all
 * secondary harts when booting.
 */
void aplic_init_per_hart(void);

/* Handle external interrupts */
void aplic_it_handle(void);

/* Print APLIC state to console */
void aplic_dump_state(void);

#endif /*__DRIVERS_APLIC_H*/