1409836390f32dd5656d849267f87df85fbfa782
1 #include <linux/init.h>
6 #ifdef CONFIG_IFXMIPS_PROM_ASC0
7 #define IFXMIPS_ASC_DIFF 0
9 #define IFXMIPS_ASC_DIFF IFXMIPS_ASC_BASE_DIFF
12 static char buf
[1024];
15 asc_r32(unsigned long r
)
17 return ifxmips_r32((u32
*)(IFXMIPS_ASC_BASE_ADDR
+ IFXMIPS_ASC_DIFF
+ r
));
21 asc_w32(u32 v
, unsigned long r
)
23 ifxmips_w32(v
, (u32
*)(IFXMIPS_ASC_BASE_ADDR
+ IFXMIPS_ASC_DIFF
+ r
));
31 local_irq_save(flags
);
32 while ((asc_r32(IFXMIPS_ASC_FSTAT
) & ASCFSTAT_TXFFLMASK
) >> ASCFSTAT_TXFFLOFF
);
35 asc_w32('\r', IFXMIPS_ASC_TBUF
);
36 asc_w32(c
, IFXMIPS_ASC_TBUF
);
37 local_irq_restore(flags
);
41 early_printf(const char *fmt
, ...)
48 l
= vsprintf(buf
, fmt
, args
);
52 for (p
= buf
; p
< buf_end
; p
++)
This page took 0.050716 seconds and 3 git commands to generate.