1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Character LCD driver for Linux
5 * Copyright (C) 2000-2008, Willy Tarreau <w@1wt.eu>
6 * Copyright (C) 2016-2017 Glider bvba
18 const struct charlcd_ops *ops;
19 const unsigned char *char_conv; /* Optional */
21 int ifwidth; /* 4-bit or 8-bit (default) */
30 void (*write_cmd)(struct charlcd *lcd, int cmd);
31 void (*write_data)(struct charlcd *lcd, int data);
34 void (*write_cmd_raw4)(struct charlcd *lcd, int cmd); /* 4-bit only */
35 void (*clear_fast)(struct charlcd *lcd);
36 void (*backlight)(struct charlcd *lcd, enum charlcd_onoff on);
39 struct charlcd *charlcd_alloc(void);
40 void charlcd_free(struct charlcd *lcd);
42 int charlcd_register(struct charlcd *lcd);
43 int charlcd_unregister(struct charlcd *lcd);
45 void charlcd_poke(struct charlcd *lcd);
47 #endif /* CHARLCD_H */