blob: 87b6d69aa61777147ef51da8de25cea2533d9dd1 [file] [log] [blame]
Stephen Warren927c1fa2015-03-24 20:07:33 -06001/*
2 * Copyright 2015 Stephen Warren
3 *
4 * SPDX-License-Identifier: GPL-2.0+
5 */
6
7#ifndef _BUS_ADDR_H
8#define _BUS_ADDR_H
9
10#ifdef CONFIG_PHYS_TO_BUS
11unsigned long phys_to_bus(unsigned long phys);
12unsigned long bus_to_phys(unsigned long bus);
13#else
14static inline unsigned long phys_to_bus(unsigned long phys)
15{
16 return phys;
17}
18
19static inline unsigned long bus_to_phys(unsigned long bus)
20{
21 return bus;
22}
23#endif
24
25#endif