charlcd.h (b26deabb1d915fe87d395081bbd3058b938dee89) charlcd.h (d3a2fb810f273b7a2c393d4de28ae91a3f76985d)
1/* SPDX-License-Identifier: GPL-2.0-or-later */
2/*
3 * Character LCD driver for Linux
4 *
5 * Copyright (C) 2000-2008, Willy Tarreau <w@1wt.eu>
6 * Copyright (C) 2016-2017 Glider bvba
7 */
8

--- 23 unchanged lines hidden (view full) ---

32
33/**
34 * struct charlcd_ops - Functions used by charlcd. Drivers have to implement
35 * these.
36 * @clear_fast: Clear the whole display and set cursor to position 0, 0.
37 * Optional.
38 * @backlight: Turn backlight on or off. Optional.
39 * @print: Print one character to the display at current cursor position.
1/* SPDX-License-Identifier: GPL-2.0-or-later */
2/*
3 * Character LCD driver for Linux
4 *
5 * Copyright (C) 2000-2008, Willy Tarreau <w@1wt.eu>
6 * Copyright (C) 2016-2017 Glider bvba
7 */
8

--- 23 unchanged lines hidden (view full) ---

32
33/**
34 * struct charlcd_ops - Functions used by charlcd. Drivers have to implement
35 * these.
36 * @clear_fast: Clear the whole display and set cursor to position 0, 0.
37 * Optional.
38 * @backlight: Turn backlight on or off. Optional.
39 * @print: Print one character to the display at current cursor position.
40 * The cursor is advanced by charlcd.
41 * The buffered cursor position is advanced by charlcd. The cursor should not
42 * wrap to the next line at the end of a line.
40 * The buffered cursor position is advanced by charlcd. The cursor should not
41 * wrap to the next line at the end of a line.
42 * @gotoxy: Set cursor to x, y. The x and y values to set the cursor to are
43 * previously set in addr.x and addr.y by charlcd.
43 */
44struct charlcd_ops {
45 void (*clear_fast)(struct charlcd *lcd);
46 void (*backlight)(struct charlcd *lcd, enum charlcd_onoff on);
47 int (*print)(struct charlcd *lcd, int c);
44 */
45struct charlcd_ops {
46 void (*clear_fast)(struct charlcd *lcd);
47 void (*backlight)(struct charlcd *lcd, enum charlcd_onoff on);
48 int (*print)(struct charlcd *lcd, int c);
49 int (*gotoxy)(struct charlcd *lcd);
48};
49
50struct charlcd *charlcd_alloc(void);
51void charlcd_free(struct charlcd *lcd);
52
53int charlcd_register(struct charlcd *lcd);
54int charlcd_unregister(struct charlcd *lcd);
55
56void charlcd_poke(struct charlcd *lcd);
57
58#endif /* CHARLCD_H */
50};
51
52struct charlcd *charlcd_alloc(void);
53void charlcd_free(struct charlcd *lcd);
54
55int charlcd_register(struct charlcd *lcd);
56int charlcd_unregister(struct charlcd *lcd);
57
58void charlcd_poke(struct charlcd *lcd);
59
60#endif /* CHARLCD_H */