return -EINVAL;
}
stream->direction = direction;
- stream->peer = target;
+ stream->peer = (enum MIF_STREAM_PEER)target;
return 0;
}
intr = scsc_mx_get_intrbit(stream->mx);
if (stream->direction == MIF_STREAM_DIRECTION_IN) {
mifintrbit_free_tohost(intr, stream->write_bit_idx);
- mifintrbit_free_fromhost(intr, stream->read_bit_idx, stream->peer);
+ mifintrbit_free_fromhost(intr, stream->read_bit_idx, (enum scsc_mif_abs_target)stream->peer);
} else {
mifintrbit_free_tohost(intr, stream->read_bit_idx);
- mifintrbit_free_fromhost(intr, stream->write_bit_idx, stream->peer);
+ mifintrbit_free_fromhost(intr, stream->write_bit_idx, (enum scsc_mif_abs_target)stream->peer);
}
cpacketbuffer_release(&stream->buffer);
}
if (num_bytes_read > 0)
/* Signal that the read is finished to anyone interested */
- mif_abs->irq_bit_set(mif_abs, stream->read_bit_idx, stream->peer);
+ mif_abs->irq_bit_set(mif_abs, stream->read_bit_idx, (enum scsc_mif_abs_target)stream->peer);
return num_bytes_read;
}
cpacketbuffer_peek_complete(&stream->buffer, packet);
/* Signal that the read is finished to anyone interested */
- mif_abs->irq_bit_set(mif_abs, stream->read_bit_idx, stream->peer);
+ mif_abs->irq_bit_set(mif_abs, stream->read_bit_idx, (enum scsc_mif_abs_target)stream->peer);
}
bool mif_stream_write(struct mif_stream *stream, const void *buf, uint32_t num_bytes)
return false;
/* Kick the assigned interrupt to let others know new data is available */
- mif_abs->irq_bit_set(mif_abs, stream->write_bit_idx, stream->peer);
+ mif_abs->irq_bit_set(mif_abs, stream->write_bit_idx, (enum scsc_mif_abs_target)stream->peer);
return true;
}
return false;
/* Kick the assigned interrupt to let others know new data is available */
- mif_abs->irq_bit_set(mif_abs, stream->write_bit_idx, stream->peer);
+ mif_abs->irq_bit_set(mif_abs, stream->write_bit_idx, (enum scsc_mif_abs_target)stream->peer);
return true;
}
}
/* Signal panic to r4 and m4 processors */
SCSC_TAG_INFO(MXMAN, "Setting MIFINTRBIT_RESERVED_PANIC_R4\n");
- mif->irq_bit_set(mif, MIFINTRBIT_RESERVED_PANIC_R4, SCSC_MIFINTR_TARGET_R4);
+ mif->irq_bit_set(mif, MIFINTRBIT_RESERVED_PANIC_R4, SCSC_MIF_ABS_TARGET_R4); /* SCSC_MIFINTR_TARGET_R4 */
SCSC_TAG_INFO(MXMAN, "Setting MIFINTRBIT_RESERVED_PANIC_M4\n");
- mif->irq_bit_set(mif, MIFINTRBIT_RESERVED_PANIC_M4, SCSC_MIFINTR_TARGET_M4);
+ mif->irq_bit_set(mif, MIFINTRBIT_RESERVED_PANIC_M4, SCSC_MIF_ABS_TARGET_M4); /* SCSC_MIFINTR_TARGET_M4 */
srvman_freeze_services(srvman);
if (mxman->mxman_state == MXMAN_STATE_FAILED) {
mxman->last_panic_time = local_clock();
mif_abs = scsc_mx_get_mif_abs(mx);
- return mif_abs->irq_bit_set(mif_abs, which_bit, dir);
+ return mif_abs->irq_bit_set(mif_abs, which_bit, (enum scsc_mif_abs_target)dir);
}
EXPORT_SYMBOL(scsc_service_mifintrbit_bit_set);
{
struct scsc_mx *mx = service->mx;
- return mifintrbit_alloc_fromhost(scsc_mx_get_intrbit(mx), dir);
+ return mifintrbit_alloc_fromhost(scsc_mx_get_intrbit(mx), (enum scsc_mif_abs_target)dir);
}
EXPORT_SYMBOL(scsc_service_mifintrbit_alloc_fromhost);
{
struct scsc_mx *mx = service->mx;
- return mifintrbit_free_fromhost(scsc_mx_get_intrbit(mx), which_bit, dir);
+ return mifintrbit_free_fromhost(scsc_mx_get_intrbit(mx), which_bit, (enum scsc_mif_abs_target)dir);
}
EXPORT_SYMBOL(scsc_service_mifintrbit_free_fromhost);