paul@0 | 1 | /* |
paul@0 | 2 | * LCD framebuffer server functionality. |
paul@0 | 3 | * |
paul@31 | 4 | * Copyright (C) 2018 Paul Boddie <paul@boddie.org.uk> |
paul@0 | 5 | * |
paul@0 | 6 | * This program is free software; you can redistribute it and/or |
paul@0 | 7 | * modify it under the terms of the GNU General Public License as |
paul@0 | 8 | * published by the Free Software Foundation; either version 2 of |
paul@0 | 9 | * the License, or (at your option) any later version. |
paul@0 | 10 | * |
paul@0 | 11 | * This program is distributed in the hope that it will be useful, |
paul@0 | 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
paul@0 | 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
paul@0 | 14 | * GNU General Public License for more details. |
paul@0 | 15 | * |
paul@0 | 16 | * You should have received a copy of the GNU General Public License |
paul@0 | 17 | * along with this program; if not, write to the Free Software |
paul@0 | 18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, |
paul@0 | 19 | * Boston, MA 02110-1301, USA |
paul@0 | 20 | */ |
paul@0 | 21 | |
paul@0 | 22 | #pragma once |
paul@0 | 23 | |
paul@0 | 24 | #include <l4/devices/lcd-device.h> |
paul@0 | 25 | #include "fb-server.h" |
paul@0 | 26 | |
paul@0 | 27 | #ifdef __cplusplus |
paul@0 | 28 | |
paul@0 | 29 | #include <l4/re/dataspace> |
paul@0 | 30 | #include <l4/sys/capability> |
paul@0 | 31 | |
paul@0 | 32 | class Framebuffer_lcd_server : public Framebuffer_server |
paul@0 | 33 | { |
paul@0 | 34 | Lcd_device *_device; |
paul@0 | 35 | |
paul@0 | 36 | public: |
paul@0 | 37 | explicit Framebuffer_lcd_server(L4::Cap<L4Re::Dataspace> mem, Lcd_device *device) |
paul@0 | 38 | : Framebuffer_server(mem), _device(device) |
paul@0 | 39 | { |
paul@0 | 40 | } |
paul@0 | 41 | |
paul@0 | 42 | l4_size_t get_framebuffer_size(); |
paul@0 | 43 | void get_view_info(l4re_video_view_info_t *view_info); |
paul@0 | 44 | }; |
paul@0 | 45 | |
paul@0 | 46 | #endif |
paul@0 | 47 | |
paul@0 | 48 | /* Common initiation method. */ |
paul@0 | 49 | |
paul@0 | 50 | int run(void); |