Ejemplo n.º 1
0
void pvc_dump_string(const unsigned char *str)
{
	int len = strlen(str);

	pvc_write_string(str, 0, 0);
	if (len > PVC_VISIBLE_CHARS)
		pvc_write_string(&str[PVC_VISIBLE_CHARS], 0, 1);
}
Ejemplo n.º 2
0
static void pvc_display(unsigned long data) {
	int i;

	pvc_clear();
	for (i=0; i<PVC_NLINES; i++)
		pvc_write_string(pvc_lines[i], 0, i);
}
Ejemplo n.º 3
0
void pvc_write_string_centered(const unsigned char *str, int line)
{
	int len = strlen(str);
	u8 addr;

	if (len > PVC_VISIBLE_CHARS)
		addr = 0;
	else
		addr = (PVC_VISIBLE_CHARS - strlen(str))/2;

	pvc_write_string(str, addr, line);
}
Ejemplo n.º 4
0
static void lasat_machine_halt(void)
{
    local_irq_disable();

    /* Disable interrupts and loop forever */
    printk(KERN_NOTICE MESSAGE "\n");
#ifdef CONFIG_PICVUE
    pvc_clear();
    pvc_write_string(MESSAGE, 0, 0);
#endif
    prom_monitor();
    for (;;) ;
}