/* Actually put a message into a send channel buffer  */
static void iop_do_send(struct iop_msg *msg)
/* Actually put a message into a send channel buffer  */
static void iop_do_send(struct iop_msg *msg)
{
	volatile struct mac_iop *iop = iop_base[msg->iop_num];
	int i,offset;
	offset = IOP_ADDR_SEND_MSG + (msg->channel * IOP_MSG_LEN);
	for (i = 0 ; i < IOP_MSG_LEN ; i++, offset++) {
		iop_writeb(iop, offset, msg->message[i]);
	}
	iop_writeb(iop, IOP_ADDR_SEND_STATE + msg->channel, IOP_MSG_NEW);
	iop_interrupt(iop);
}