1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2018 Netronome Systems, Inc.
10 * For use with NFP6000 Databook "XPB Addressing" section
12 #define NFP_XPB_OVERLAY(island) (((island) & 0x3f) << 24)
14 #define NFP_XPB_ISLAND(island) (NFP_XPB_OVERLAY(island) + 0x60000)
16 #define NFP_XPB_ISLAND_of(offset) (((offset) >> 24) & 0x3F)
19 * For use with NFP6000 Databook "XPB Island and Device IDs" chapter
21 #define NFP_XPB_DEVICE(island, slave, device) \
22 (NFP_XPB_OVERLAY(island) | \
23 (((slave) & 3) << 22) | \
24 (((device) & 0x3f) << 16))
26 #endif /* NFP_XPB_H */