out_8(&psc->tfdata_8, c);
}
-void serial_putc_raw_dev(unsigned int idx, const char c)
-{
- volatile immap_t *im = (immap_t *) CONFIG_SYS_IMMR;
- volatile psc512x_t *psc = (psc512x_t *) &im->psc[idx];
-
- /* Wait for last character to go. */
- while (!(in_be16(&psc->psc_status) & PSC_SR_TXEMP))
- ;
-
- out_8(&psc->tfdata_8, c);
-}
-
void serial_puts_dev(unsigned int idx, const char *s)
{
while (*s)
psc->psc_buffer_8 = c;
}
-void serial_putc_raw_dev(unsigned long dev_base, const char c)
-{
- volatile struct mpc5xxx_psc *psc = (struct mpc5xxx_psc *)dev_base;
- /* Wait for last character to go. */
- while (!(psc->psc_status & PSC_SR_TXEMP))
- ;
-
- psc->psc_buffer_8 = c;
-}
-
-
void serial_puts_dev (unsigned long dev_base, const char *s)
{
while (*s) {
NS16550_putc(PORT, c);
}
-static void _serial_putc_raw(const char c, const int port)
-{
- NS16550_putc(PORT, c);
-}
-
static void _serial_puts(const char *s, const int port)
{
while (*s) {
_serial_putc(c,dev_index);
}
-static inline void
-serial_putc_raw_dev(unsigned int dev_index,const char c)
-{
- _serial_putc_raw(c,dev_index);
-}
-
static inline void
serial_puts_dev(unsigned int dev_index,const char *s)
{