1 | /*
|
---|
2 | * Copyright (C) 2017 The Contributors
|
---|
3 | *
|
---|
4 | * This program is free software: you can redistribute it and/or modify
|
---|
5 | * it under the terms of the GNU General Public License as published by
|
---|
6 | * the Free Software Foundation, either version 3 of the License, or (at
|
---|
7 | * your option) any later version.
|
---|
8 | *
|
---|
9 | * This program is distributed in the hope that it will be useful, but
|
---|
10 | * WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
12 | * General Public License for more details.
|
---|
13 | *
|
---|
14 | * A copy of the GNU General Public License can be found in the file
|
---|
15 | * "gpl.txt" in the top directory of this repository.
|
---|
16 | */
|
---|
17 |
|
---|
18 | #include <all.h>
|
---|
19 |
|
---|
20 | #define ver(...) _ver(lcd_verbose, 0, __VA_ARGS__)
|
---|
21 | #define ver2(...) _ver(lcd_verbose, 1, __VA_ARGS__)
|
---|
22 | #define ver3(...) _ver(lcd_verbose, 2, __VA_ARGS__)
|
---|
23 |
|
---|
24 | int32_t lcd_verbose = 0;
|
---|
25 |
|
---|
26 | void lcd_init(void)
|
---|
27 | {
|
---|
28 | ver("lcd init");
|
---|
29 | }
|
---|
30 |
|
---|
31 | void lcd_quit(void)
|
---|
32 | {
|
---|
33 | ver("lcd quit");
|
---|
34 | }
|
---|
35 |
|
---|
36 | bool lcd_exec(void)
|
---|
37 | {
|
---|
38 | ver3("lcd exec");
|
---|
39 | return false;
|
---|
40 | }
|
---|
41 |
|
---|
42 | uint32_t lcd_read(uint32_t off, int32_t sz)
|
---|
43 | {
|
---|
44 | ver2("lcd rd %u:%d", off, sz * 8);
|
---|
45 | return 0;
|
---|
46 | }
|
---|
47 |
|
---|
48 | void lcd_write(uint32_t off, int32_t sz, uint32_t val)
|
---|
49 | {
|
---|
50 | ver2("lcd wr %u:%d 0x%0*x", off, sz * 8, sz * 2, val);
|
---|
51 | }
|
---|