charlcd.h (11588b59cf620305e78523f57918b986b5e32214) | charlcd.h (b26deabb1d915fe87d395081bbd3058b938dee89) |
---|---|
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 --- 16 unchanged lines hidden (view full) --- 25 struct { 26 unsigned long x; 27 unsigned long y; 28 } addr; 29 30 void *drvdata; 31}; 32 | 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 --- 16 unchanged lines hidden (view full) --- 25 struct { 26 unsigned long x; 27 unsigned long y; 28 } addr; 29 30 void *drvdata; 31}; 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. 43 */ |
|
33struct charlcd_ops { 34 void (*clear_fast)(struct charlcd *lcd); 35 void (*backlight)(struct charlcd *lcd, enum charlcd_onoff on); | 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); |
|
36}; 37 38struct charlcd *charlcd_alloc(void); 39void charlcd_free(struct charlcd *lcd); 40 41int charlcd_register(struct charlcd *lcd); 42int charlcd_unregister(struct charlcd *lcd); 43 44void charlcd_poke(struct charlcd *lcd); 45 46#endif /* CHARLCD_H */ | 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 */ |