diff --git a/sys/ia64/include/nexusvar.h b/sys/ia64/include/nexusvar.h index c9dcf1c16bc3..be38f33a0753 100644 --- a/sys/ia64/include/nexusvar.h +++ b/sys/ia64/include/nexusvar.h @@ -33,20 +33,8 @@ enum nexus_device_ivars { NEXUS_IVAR_PCIBUS }; -#define NEXUS_ACCESSOR(A, B, T) \ - \ -static __inline T nexus_get_ ## A(device_t dev) \ -{ \ - uintptr_t v; \ - BUS_READ_IVAR(device_get_parent(dev), dev, NEXUS_IVAR_ ## B, &v); \ - return (T) v; \ -} \ - \ -static __inline void nexus_set_ ## A(device_t dev, T t) \ -{ \ - uintptr_t v = (uintptr_t) t; \ - BUS_WRITE_IVAR(device_get_parent(dev), dev, NEXUS_IVAR_ ## B, v); \ -} +#define NEXUS_ACCESSOR(var, ivar, type) \ + __BUS_ACCESSOR(nexus, var, NEXUS, ivar, type) NEXUS_ACCESSOR(pcibus, PCIBUS, u_int32_t)