m1n1/src/dart.h
Sven Peter 8efff1b0ab dart: add code to setup the DART iommu
Signed-off-by: Sven Peter <sven@svenpeter.dev>
2021-04-14 17:40:07 +09:00

15 lines
354 B
C

/* SPDX-License-Identifier: MIT */
#ifndef DART_H
#define DART_H
#include "types.h"
typedef struct dart_dev dart_dev_t;
dart_dev_t *dart_init(uintptr_t base, u8 device);
int dart_map(dart_dev_t *dart, uintptr_t iova, void *bfr, size_t len);
void dart_unmap(dart_dev_t *dart, uintptr_t iova, size_t len);
void dart_shutdown(dart_dev_t *dart);
#endif