linux/drivers/gpu/drm/amd/display/dc/spl/spl_os_types.h

/* SPDX-License-Identifier: MIT */

/* Copyright 2024 Advanced Micro Devices, Inc. */
/* Copyright 2019 Raptor Engineering, LLC */

#ifndef _SPL_OS_TYPES_H_
#define _SPL_OS_TYPES_H_

#include <linux/slab.h>
#include <linux/kgdb.h>
#include <linux/kref.h>
#include <linux/types.h>
#include <linux/delay.h>
#include <linux/mm.h>

/*
 *
 * general debug capabilities
 *
 */
#define SPL_BREAK_TO_DEBUGGER()

static inline uint64_t spl_div_u64_rem(uint64_t dividend, uint32_t divisor, uint32_t *remainder)
{}

static inline uint64_t spl_div_u64(uint64_t dividend, uint32_t divisor)
{}

static inline uint64_t spl_div64_u64(uint64_t dividend, uint64_t divisor)
{}

static inline uint64_t spl_div64_u64_rem(uint64_t dividend, uint64_t divisor, uint64_t *remainder)
{}

static inline int64_t spl_div64_s64(int64_t dividend, int64_t divisor)
{}

#define spl_swap(a, b)

#ifndef spl_min
#define spl_min(a, b)
#endif

#endif /* _SPL_OS_TYPES_H_ */