|
#define | pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
|
#define | LCD_MINOR 156 |
|
#define | KEYPAD_MINOR 185 |
|
#define | PANEL_VERSION "0.9.5" |
|
#define | LCD_MAXBYTES 256 /* max burst write */ |
|
#define | KEYPAD_BUFFER 64 |
|
#define | INPUT_POLL_TIME (HZ/50) |
|
#define | KEYPAD_REP_START (10) |
|
#define | KEYPAD_REP_DELAY (2) |
|
#define | FLASH_LIGHT_TEMPO (200) |
|
#define | PNL_PINPUT(a) ((((unsigned char)(a)) ^ 0x7F) >> 3) |
|
#define | PNL_PBUSY 0x80 /* inverted input, active low */ |
|
#define | PNL_PACK 0x40 /* direct input, active low */ |
|
#define | PNL_POUTPA 0x20 /* direct input, active high */ |
|
#define | PNL_PSELECD 0x10 /* direct input, active high */ |
|
#define | PNL_PERRORP 0x08 /* direct input, active low */ |
|
#define | PNL_PBIDIR 0x20 /* bi-directional ports */ |
|
#define | PNL_PINTEN 0x10 |
|
#define | PNL_PSELECP 0x08 /* inverted output, active low */ |
|
#define | PNL_PINITP 0x04 /* direct output, active low */ |
|
#define | PNL_PAUTOLF 0x02 /* inverted output, active low */ |
|
#define | PNL_PSTROBE 0x01 /* inverted output */ |
|
#define | PNL_PD0 0x01 |
|
#define | PNL_PD1 0x02 |
|
#define | PNL_PD2 0x04 |
|
#define | PNL_PD3 0x08 |
|
#define | PNL_PD4 0x10 |
|
#define | PNL_PD5 0x20 |
|
#define | PNL_PD6 0x40 |
|
#define | PNL_PD7 0x80 |
|
#define | PIN_NONE 0 |
|
#define | PIN_STROBE 1 |
|
#define | PIN_D0 2 |
|
#define | PIN_D1 3 |
|
#define | PIN_D2 4 |
|
#define | PIN_D3 5 |
|
#define | PIN_D4 6 |
|
#define | PIN_D5 7 |
|
#define | PIN_D6 8 |
|
#define | PIN_D7 9 |
|
#define | PIN_AUTOLF 14 |
|
#define | PIN_INITP 16 |
|
#define | PIN_SELECP 17 |
|
#define | PIN_NOT_SET 127 |
|
#define | LCD_FLAG_S 0x0001 |
|
#define | LCD_FLAG_ID 0x0002 |
|
#define | LCD_FLAG_B 0x0004 /* blink on */ |
|
#define | LCD_FLAG_C 0x0008 /* cursor on */ |
|
#define | LCD_FLAG_D 0x0010 /* display on */ |
|
#define | LCD_FLAG_F 0x0020 /* large font mode */ |
|
#define | LCD_FLAG_N 0x0040 /* 2-rows mode */ |
|
#define | LCD_FLAG_L 0x0080 /* backlight enabled */ |
|
#define | LCD_ESCAPE_LEN 24 /* max chars for LCD escape command */ |
|
#define | LCD_ESCAPE_CHAR 27 /* use char 27 for escape command */ |
|
#define | r_ctr(x) (parport_read_control((x)->port)) |
|
#define | r_dtr(x) (parport_read_data((x)->port)) |
|
#define | r_str(x) (parport_read_status((x)->port)) |
|
#define | w_ctr(x, y) (parport_write_control((x)->port, (y))) |
|
#define | w_dtr(x, y) (parport_write_data((x)->port, (y))) |
|
#define | BIT_CLR 0 |
|
#define | BIT_SET 1 |
|
#define | BIT_MSK 2 |
|
#define | BIT_STATES 3 |
|
#define | LCD_BIT_E 0 |
|
#define | LCD_BIT_RS 1 |
|
#define | LCD_BIT_RW 2 |
|
#define | LCD_BIT_BL 3 |
|
#define | LCD_BIT_CL 4 |
|
#define | LCD_BIT_DA 5 |
|
#define | LCD_BITS 6 |
|
#define | LCD_PORT_C 0 |
|
#define | LCD_PORT_D 1 |
|
#define | LCD_PORTS 2 |
|
#define | LCD_PROTO_PARALLEL 0 |
|
#define | LCD_PROTO_SERIAL 1 |
|
#define | LCD_PROTO_TI_DA8XX_LCD 2 |
|
#define | LCD_CHARSET_NORMAL 0 |
|
#define | LCD_CHARSET_KS0074 1 |
|
#define | LCD_TYPE_NONE 0 |
|
#define | LCD_TYPE_OLD 1 |
|
#define | LCD_TYPE_KS0074 2 |
|
#define | LCD_TYPE_HANTRONIX 3 |
|
#define | LCD_TYPE_NEXCOM 4 |
|
#define | LCD_TYPE_CUSTOM 5 |
|
#define | KEYPAD_TYPE_NONE 0 |
|
#define | KEYPAD_TYPE_OLD 1 |
|
#define | KEYPAD_TYPE_NEW 2 |
|
#define | KEYPAD_TYPE_NEXCOM 3 |
|
#define | PANEL_PROFILE_CUSTOM 0 |
|
#define | PANEL_PROFILE_OLD 1 |
|
#define | PANEL_PROFILE_NEW 2 |
|
#define | PANEL_PROFILE_HANTRONIX 3 |
|
#define | PANEL_PROFILE_NEXCOM 4 |
|
#define | PANEL_PROFILE_LARGE 5 |
|
#define | DEFAULT_PROFILE PANEL_PROFILE_LARGE |
|
#define | DEFAULT_PARPORT 0 |
|
#define | DEFAULT_LCD LCD_TYPE_OLD |
|
#define | DEFAULT_KEYPAD KEYPAD_TYPE_OLD |
|
#define | DEFAULT_LCD_WIDTH 40 |
|
#define | DEFAULT_LCD_BWIDTH 40 |
|
#define | DEFAULT_LCD_HWIDTH 64 |
|
#define | DEFAULT_LCD_HEIGHT 2 |
|
#define | DEFAULT_LCD_PROTO LCD_PROTO_PARALLEL |
|
#define | DEFAULT_LCD_PIN_E PIN_AUTOLF |
|
#define | DEFAULT_LCD_PIN_RS PIN_SELECP |
|
#define | DEFAULT_LCD_PIN_RW PIN_INITP |
|
#define | DEFAULT_LCD_PIN_SCL PIN_STROBE |
|
#define | DEFAULT_LCD_PIN_SDA PIN_D0 |
|
#define | DEFAULT_LCD_PIN_BL PIN_NOT_SET |
|
#define | DEFAULT_LCD_CHARSET LCD_CHARSET_NORMAL |
|
|
| LIST_HEAD (logical_inputs) |
|
| MODULE_DESCRIPTION ("Generic parallel port LCD/Keypad driver") |
|
| module_param (parport, int, 0000) |
|
| MODULE_PARM_DESC (parport,"Parallel port index (0=lpt1, 1=lpt2, ...)") |
|
| module_param (lcd_height, int, 0000) |
|
| MODULE_PARM_DESC (lcd_height,"Number of lines on the LCD") |
|
| module_param (lcd_width, int, 0000) |
|
| MODULE_PARM_DESC (lcd_width,"Number of columns on the LCD") |
|
| module_param (lcd_bwidth, int, 0000) |
|
| MODULE_PARM_DESC (lcd_bwidth,"Internal LCD line width (40)") |
|
| module_param (lcd_hwidth, int, 0000) |
|
| MODULE_PARM_DESC (lcd_hwidth,"LCD line hardware address (64)") |
|
| module_param (lcd_enabled, int, 0000) |
|
| MODULE_PARM_DESC (lcd_enabled,"Deprecated option, use lcd_type instead") |
|
| module_param (keypad_enabled, int, 0000) |
|
| MODULE_PARM_DESC (keypad_enabled,"Deprecated option, use keypad_type instead") |
|
| module_param (lcd_type, int, 0000) |
|
| MODULE_PARM_DESC (lcd_type,"LCD type: 0=none, 1=old //, 2=serial ks0074, ""3=hantronix //, 4=nexcom //, 5=compiled-in") |
|
| module_param (lcd_proto, int, 0000) |
|
| MODULE_PARM_DESC (lcd_proto,"LCD communication: 0=parallel (//), 1=serial,""2=TI LCD Interface") |
|
| module_param (lcd_charset, int, 0000) |
|
| MODULE_PARM_DESC (lcd_charset,"LCD character set: 0=standard, 1=KS0074") |
|
| module_param (keypad_type, int, 0000) |
|
| MODULE_PARM_DESC (keypad_type,"Keypad type: 0=none, 1=old 6 keys, 2=new 6+1 keys, ""3=nexcom 4 keys") |
|
| module_param (profile, int, 0000) |
|
| MODULE_PARM_DESC (profile,"1=16x2 old kp; 2=serial 16x2, new kp; 3=16x2 hantronix; ""4=16x2 nexcom; default=40x2, old kp") |
|
| module_param (lcd_e_pin, int, 0000) |
|
| MODULE_PARM_DESC (lcd_e_pin,"# of the // port pin connected to LCD 'E' signal, ""with polarity (-17..17)") |
|
| module_param (lcd_rs_pin, int, 0000) |
|
| MODULE_PARM_DESC (lcd_rs_pin,"# of the // port pin connected to LCD 'RS' signal, ""with polarity (-17..17)") |
|
| module_param (lcd_rw_pin, int, 0000) |
|
| MODULE_PARM_DESC (lcd_rw_pin,"# of the // port pin connected to LCD 'RW' signal, ""with polarity (-17..17)") |
|
| module_param (lcd_bl_pin, int, 0000) |
|
| MODULE_PARM_DESC (lcd_bl_pin,"# of the // port pin connected to LCD backlight, ""with polarity (-17..17)") |
|
| module_param (lcd_da_pin, int, 0000) |
|
| MODULE_PARM_DESC (lcd_da_pin,"# of the // port pin connected to serial LCD 'SDA' ""signal, with polarity (-17..17)") |
|
| module_param (lcd_cl_pin, int, 0000) |
|
| MODULE_PARM_DESC (lcd_cl_pin,"# of the // port pin connected to serial LCD 'SCL' ""signal, with polarity (-17..17)") |
|
void | pin_to_bits (int pin, unsigned char *d_val, unsigned char *c_val) |
|
void | panel_lcd_print (char *s) |
|
void | lcd_init (void) |
|
int | panel_init (void) |
|
| module_init (panel_init_module) |
|
| module_exit (panel_cleanup_module) |
|
| MODULE_AUTHOR ("Willy Tarreau") |
|
| MODULE_LICENSE ("GPL") |
|