Пример #1
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);
}
Пример #2
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 (;;) ;
}
Пример #3
0
int pvc_init(void)
{
	u8 cmd = EIGHT_BYTE;

	if (PVC_NLINES == 2)
		cmd |= (SMALL_FONT|TWO_LINES);
	else
		cmd |= (LARGE_FONT|ONE_LINE);
	pvc_funcset(cmd);
	pvc_dispcnt(DISP_ON);
	pvc_entrymode(AUTO_INC);

	pvc_clear();
	pvc_write_string_centered("Display", 0);
	pvc_write_string_centered("Initialized", 1);

	return 0;
}