mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-12-25 12:43:05 +00:00
8efff1b0ab
Signed-off-by: Sven Peter <sven@svenpeter.dev>
15 lines
354 B
C
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
|