void m147_scc_write (struct console *co, const char *str, unsigned count) { unsigned long flags; local_irq_save(flags); while (count--) { if (*str == '\n') scc_write ('\r'); scc_write (*str++); } local_irq_restore(flags); }
void m147_scc_write (struct console *co, const char *str, unsigned count) { unsigned long flags; save_flags(flags); cli(); while (count--) { if (*str == '\n') scc_write ('\r'); scc_write (*str++); } restore_flags(flags); }
int scc_write_byte (ct_chan_t *c, unsigned char b) { if (scc_write (c, &b, 1) < 0) return -1; return b; }