Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0016bcbc authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "mhi: core: fix 32-bit compilation errors"

parents 81f3dbbc c132b492
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
/* SPDX-License-Identifier: GPL-2.0-only */
/* Copyright (c) 2018, The Linux Foundation. All rights reserved. */
/* Copyright (c) 2018-2019, The Linux Foundation. All rights reserved. */

#ifndef _MHI_INT_H
#define _MHI_INT_H
@@ -212,7 +212,7 @@ extern struct bus_type mhi_bus_type;
#define BHIE_RXVECSTATUS_STATUS_ERROR (0x03)

/* convert ticks to micro seconds by dividing by 19.2 */
#define TIME_TICKS_TO_US(x) (((x) * 10) / 192)
#define TIME_TICKS_TO_US(x) (div_u64((x) * 10, 192))

struct mhi_event_ctxt {
	u32 reserved : 8;
@@ -324,7 +324,7 @@ enum mhi_cmd_type {
	| (ieot << 9) | (ieob << 8) | chain)

/* rsc transfer descriptor macros */
#define MHI_RSCTRE_DATA_PTR(ptr, len) ((len << 48) | ptr)
#define MHI_RSCTRE_DATA_PTR(ptr, len) (((u64)len << 48) | ptr)
#define MHI_RSCTRE_DATA_DWORD0(cookie) (cookie)
#define MHI_RSCTRE_DATA_DWORD1 (MHI_PKT_TYPE_COALESCING << 16)