示例#1
0
static void wconfig(unsigned char config)
{

    setcommand(COMMANDCONFIGW);
    setdata(config);

}
示例#2
0
static unsigned int reset_write(struct system_node *self, struct service_state *state, void *buffer, unsigned int count)
{

    setcommand(COMMANDCTRLRESET);

    return 0;

}
示例#3
0
static unsigned int testdevice(unsigned int id)
{

    setcommand(devices[id].test);

    return polldata() == PTESTOK;

}
示例#4
0
static unsigned int testbus(void)
{

    setcommand(COMMANDCTEST);

    return polldata() == CTESTOK;

}
示例#5
0
static unsigned char rconfig(void)
{

    setcommand(COMMANDCONFIGR);

    return polldata();

}
示例#6
0
static void setdevicedata(unsigned int id, unsigned char value)
{

    if (id == PS2_MOUSE)
        setcommand(COMMANDDEV2WI);

    setdata(value);

}
示例#7
0
static void initialize_textlcd()
{
	setcommand(CMD_FUNCTION_SET | F_DATA8 | F_LINE2 | F_FONT10);
	udelay(4000);
	setcommand(CMD_FUNCTION_SET | F_DATA8 | F_LINE2 | F_FONT10);
	udelay(100);
	setcommand(CMD_DISPLAY | D_ON | D_CURSOR);
	setcommand(CMD_ENTRY_MODE | E_CURSOR);
	setcommand(CMD_CLEAR_DISPLAY);
	setcommand(CMD_RETURN_HOME);
	udelay(100);
}
示例#8
0
int iom_lcd_ioctl(struct inode *inode, struct file *file, unsigned int cmd,
	unsigned long gdata)
{
	unsigned long command;

	copy_from_user(&command, (char*)gdata, 4);
	printk("ioctl %d %x\n", cmd, command);

	switch(cmd){
		case IOM_LCD_COMMAND:
			setcommand((unsigned short)command);
			break;
		default:
			printk("driver : no such command!\n");
			return -ENOTTY;
	}
	return 0;
}
示例#9
0
void ps2_disable(unsigned int id)
{

    setcommand(devices[id].disable);

}
示例#10
0
void ps2_enable(unsigned int id)
{

    setcommand(devices[id].enable);

}
示例#11
0
static void clear_textlcd()
{
	setcommand(CMD_CLEAR_DISPLAY);
	setcommand(CMD_RETURN_HOME);
	udelay(100);
}