]> Git Repo - J-u-boot.git/blame_incremental - include/phys2bus.h
net: convert altera_tse to driver model and phylib
[J-u-boot.git] / include / phys2bus.h
... / ...
CommitLineData
1/*
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
This page took 0.02056 seconds and 4 git commands to generate.