/* This function periodically polls the Serial MUX to check for new data.  */
static void mux_poll(unsigned long unused)
/* This function periodically polls the Serial MUX to check for new data.  */
static void mux_poll(unsigned long unused)
{  
	int i;
	for(i = 0; i < port_cnt; ++i) {
		if(!mux_ports[i].enabled)
			continue;
		mux_read(&mux_ports[i].port);
		mux_write(&mux_ports[i].port);
	}
	mod_timer(&mux_timer, jiffies + MUX_POLL_DELAY);
}