Add DMA-friendly MLKEM windows

This commit is contained in:
2026-07-05 20:07:14 +08:00
parent d13f7933d8
commit 2b7c43edcb
7 changed files with 281 additions and 69 deletions

View File

@@ -1,11 +1,11 @@
#pragma once
#define FFT_BASE 0xbf400000
#define FFT_IN_RE_BASE (FFT_BASE + 0x1000)
#define FFT_IN_IM_BASE (FFT_BASE + 0x2000)
#define FFT_OUT_RE_BASE (FFT_BASE + 0x3000)
#define FFT_OUT_IM_BASE (FFT_BASE + 0x4000)
#define FFT_CSR_REG (FFT_BASE + 0xF000)
#define FFT_IN_RE_BASE (FFT_BASE + 0x8000)
#define FFT_IN_IM_BASE (FFT_BASE + 0x9000)
#define FFT_OUT_RE_BASE (FFT_BASE + 0xA000)
#define FFT_OUT_IM_BASE (FFT_BASE + 0xB000)
#define FFT_CSR_REG (FFT_BASE + 0xC000)
#define FFT_CTRL_START (1 << 4)
#define FFT_STAT_DONE (1 << 1)
#define FFT_STAT_BUSY (1 << 0)
@@ -13,4 +13,4 @@
void fft_start();
void fft_wait();
unsigned int fft_get_csr();
unsigned int fft_get_csr();