550W Document
550W, a high-end OS
|
#include <common/types.h>
#include <drivers/plic/plic.h>
#include <drivers/virtio/virtio.h>
#include <os/ioremap.h>
#include <os/smp.h>
宏定义 | |
#define | PLIC 0x0c000000L |
#define | PLIC_PRIORITY (plic_base + 0x0) |
#define | PLIC_PENDING (plic_base + 0x1000) |
#define | PLIC_MENABLE(hart) (plic_base + 0x2000 + (hart)*0x100) |
#define | PLIC_SENABLE(hart) (plic_base + 0x2080 + (hart)*0x100) |
#define | PLIC_MPRIORITY(hart) (plic_base + 0x200000 + (hart)*0x2000) |
#define | PLIC_SPRIORITY(hart) (plic_base + 0x201000 + (hart)*0x2000) |
#define | PLIC_MCLAIM(hart) (plic_base + 0x200004 + (hart)*0x2000) |
#define | PLIC_SCLAIM(hart) (plic_base + 0x201004 + (hart)*0x2000) |
函数 | |
void | d_plic_init (void) |
void | d_plic_init_hart (void) |
int | d_plic_claim (void) |
void | d_plic_complete (int irq) |
变量 | |
uintptr_t | plic_base |
#define PLIC 0x0c000000L |
#define PLIC_MCLAIM | ( | hart | ) | (plic_base + 0x200004 + (hart)*0x2000) |
#define PLIC_MENABLE | ( | hart | ) | (plic_base + 0x2000 + (hart)*0x100) |
#define PLIC_MPRIORITY | ( | hart | ) | (plic_base + 0x200000 + (hart)*0x2000) |
#define PLIC_PENDING (plic_base + 0x1000) |
#define PLIC_PRIORITY (plic_base + 0x0) |
#define PLIC_SCLAIM | ( | hart | ) | (plic_base + 0x201004 + (hart)*0x2000) |
#define PLIC_SENABLE | ( | hart | ) | (plic_base + 0x2080 + (hart)*0x100) |
#define PLIC_SPRIORITY | ( | hart | ) | (plic_base + 0x201000 + (hart)*0x2000) |
int d_plic_claim | ( | void | ) |
void d_plic_complete | ( | int | irq | ) |
void d_plic_init | ( | void | ) |
void d_plic_init_hart | ( | void | ) |
uintptr_t plic_base |