/* Send flow control, can only update one channel at a time Return 0 - If we have updated all flow control Return 1 - If we need to update more flow control, ack current enable more  */
static int send_flow_control(struct nozomi *dc)
/* Send flow control, can only update one channel at a time Return 0 - If we have updated all flow control Return 1 - If we need to update more flow control, ack current enable more  */
static int send_flow_control(struct nozomi *dc)
{
	u32 i, more_flow_control_to_be_updated = 0;
	u16 *ctrl;
	for (i = PORT_MDM; i < MAX_PORT; i++) {
		if (dc->port[i].update_flow_control) {
			if (more_flow_control_to_be_updated) {
				return 1;
			}
			dc->port[i].ctrl_ul.port = port2ctrl(i, dc);
			ctrl = (u16 *)&dc->port[i].ctrl_ul;
			write_mem32(dc->port[PORT_CTRL].ul_addr[0], \
				(u32 *) ctrl, 2);
			dc->port[i].update_flow_control = 0;
			more_flow_control_to_be_updated = 1;
		}
	}
	return 0;
}