m1n1/src/dart.h

16 lines
354 B
C
Raw Normal View History

/* 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