/* Checks the provided @src_ops and @dst_ops for the necessary transaction capabilities that indicate whether or not a device will implement a destination ID register. Returns 1 if true or 0 if false.  */
static int rio_device_has_destid(struct rio_mport *port, int src_ops, int dst_ops)
/* Checks the provided @src_ops and @dst_ops for the necessary transaction capabilities that indicate whether or not a device will implement a destination ID register. Returns 1 if true or 0 if false.  */
static int rio_device_has_destid(struct rio_mport *port, int src_ops, int dst_ops)
{
	u32 mask = RIO_OPS_READ | RIO_OPS_WRITE | RIO_OPS_ATOMIC_TST_SWP | RIO_OPS_ATOMIC_INC | RIO_OPS_ATOMIC_DEC | RIO_OPS_ATOMIC_SET | RIO_OPS_ATOMIC_CLR;
	return !!((src_ops | dst_ops) & mask);
}