Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
Che-Liang Chiou | a2a5729 | 2011-10-20 23:04:22 +0000 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (c) 2011 The Chromium OS Authors. |
Che-Liang Chiou | a2a5729 | 2011-10-20 23:04:22 +0000 | [diff] [blame] | 4 | */ |
| 5 | |
Che-Liang Chiou | a2a5729 | 2011-10-20 23:04:22 +0000 | [diff] [blame] | 6 | #include <api_public.h> |
Simon Glass | f7ae49f | 2020-05-10 11:40:05 -0600 | [diff] [blame] | 7 | #include <log.h> |
Tom Rini | 03de305 | 2024-05-20 13:35:03 -0600 | [diff] [blame] | 8 | #include <linux/types.h> |
Che-Liang Chiou | a2a5729 | 2011-10-20 23:04:22 +0000 | [diff] [blame] | 9 | |
| 10 | /* TODO(clchiou): add support of video device */ |
| 11 | |
| 12 | int display_get_info(int type, struct display_info *di) |
| 13 | { |
| 14 | if (!di) |
| 15 | return API_EINVAL; |
| 16 | |
| 17 | switch (type) { |
| 18 | default: |
| 19 | debug("%s: unsupport display device type: %d\n", |
| 20 | __FILE__, type); |
| 21 | return API_ENODEV; |
Che-Liang Chiou | a2a5729 | 2011-10-20 23:04:22 +0000 | [diff] [blame] | 22 | } |
| 23 | |
| 24 | di->type = type; |
| 25 | return 0; |
| 26 | } |
| 27 | |
| 28 | int display_draw_bitmap(ulong bitmap, int x, int y) |
| 29 | { |
| 30 | if (!bitmap) |
| 31 | return API_EINVAL; |
Che-Liang Chiou | a2a5729 | 2011-10-20 23:04:22 +0000 | [diff] [blame] | 32 | return API_ENODEV; |
Che-Liang Chiou | a2a5729 | 2011-10-20 23:04:22 +0000 | [diff] [blame] | 33 | } |
| 34 | |
| 35 | void display_clear(void) |
| 36 | { |
Che-Liang Chiou | a2a5729 | 2011-10-20 23:04:22 +0000 | [diff] [blame] | 37 | } |