1 diff --git a/arch/mips/include/asm/xtalk/xtalk.h b/arch/mips/include/asm/xtalk/xtalk.h
2 index 9125bd85514d..627ed91b2880 100644
3 --- a/arch/mips/include/asm/xtalk/xtalk.h
4 +++ b/arch/mips/include/asm/xtalk/xtalk.h
6 #define XWIDGET_MFG_NUM_NONE -1
8 /* It is often convenient to fold the XIO target port */
9 -#define XIO_NOWHERE (0xFFFFFFFFFFFFFFFFull)
10 -#define XIO_ADDR_BITS (0x0000FFFFFFFFFFFFull)
11 -#define XIO_PORT_BITS (0xF000000000000000ull)
12 +#define XIO_NOWHERE (0xffffffffffffffffULL)
13 +#define XIO_ADDR_BITS (0x0000ffffffffffffULL)
14 +#define XIO_PORT_BITS (0xf000000000000000ULL)
15 #define XIO_PORT_SHIFT (60)
17 -#define XIO_PACKED(x) (((x)&XIO_PORT_BITS) != 0)
18 -#define XIO_ADDR(x) ((x)&XIO_ADDR_BITS)
19 -#define XIO_PORT(x) ((s8)(((x)&XIO_PORT_BITS) >> XIO_PORT_SHIFT))
20 -#define XIO_PACK(p, o) ((((uint64_t)(p))<<XIO_PORT_SHIFT) | ((o)&XIO_ADDR_BITS))
23 -extern int bridge_probe(nasid_t nasid, int widget, int masterwid);
25 -static inline int bridge_probe(nasid_t nasid, int widget, int masterwid)
30 +#define XIO_PACKED(x) (((x) & XIO_PORT_BITS) != 0)
31 +#define XIO_ADDR(x) ((x) & XIO_ADDR_BITS)
32 +#define XIO_PORT(x) ((s8)(((x) & XIO_PORT_BITS) >> XIO_PORT_SHIFT))
33 +#define XIO_PACK(p, o) ((((u64)(p)) << XIO_PORT_SHIFT) | ((o) & XIO_ADDR_BITS))
35 #endif /* !__ASSEMBLY__ */