18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0-only 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * Copyright (C) 2007 Google, Inc. 48c2ecf20Sopenharmony_ci * Copyright (C) 2012 Intel, Inc. 58c2ecf20Sopenharmony_ci */ 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_ci#include <linux/module.h> 88c2ecf20Sopenharmony_ci#include <linux/kernel.h> 98c2ecf20Sopenharmony_ci#include <linux/dma-mapping.h> 108c2ecf20Sopenharmony_ci#include <linux/errno.h> 118c2ecf20Sopenharmony_ci#include <linux/string.h> 128c2ecf20Sopenharmony_ci#include <linux/slab.h> 138c2ecf20Sopenharmony_ci#include <linux/delay.h> 148c2ecf20Sopenharmony_ci#include <linux/mm.h> 158c2ecf20Sopenharmony_ci#include <linux/fb.h> 168c2ecf20Sopenharmony_ci#include <linux/init.h> 178c2ecf20Sopenharmony_ci#include <linux/interrupt.h> 188c2ecf20Sopenharmony_ci#include <linux/ioport.h> 198c2ecf20Sopenharmony_ci#include <linux/platform_device.h> 208c2ecf20Sopenharmony_ci#include <linux/acpi.h> 218c2ecf20Sopenharmony_ci 228c2ecf20Sopenharmony_cienum { 238c2ecf20Sopenharmony_ci FB_GET_WIDTH = 0x00, 248c2ecf20Sopenharmony_ci FB_GET_HEIGHT = 0x04, 258c2ecf20Sopenharmony_ci FB_INT_STATUS = 0x08, 268c2ecf20Sopenharmony_ci FB_INT_ENABLE = 0x0c, 278c2ecf20Sopenharmony_ci FB_SET_BASE = 0x10, 288c2ecf20Sopenharmony_ci FB_SET_ROTATION = 0x14, 298c2ecf20Sopenharmony_ci FB_SET_BLANK = 0x18, 308c2ecf20Sopenharmony_ci FB_GET_PHYS_WIDTH = 0x1c, 318c2ecf20Sopenharmony_ci FB_GET_PHYS_HEIGHT = 0x20, 328c2ecf20Sopenharmony_ci 338c2ecf20Sopenharmony_ci FB_INT_VSYNC = 1U << 0, 348c2ecf20Sopenharmony_ci FB_INT_BASE_UPDATE_DONE = 1U << 1 358c2ecf20Sopenharmony_ci}; 368c2ecf20Sopenharmony_ci 378c2ecf20Sopenharmony_cistruct goldfish_fb { 388c2ecf20Sopenharmony_ci void __iomem *reg_base; 398c2ecf20Sopenharmony_ci int irq; 408c2ecf20Sopenharmony_ci spinlock_t lock; 418c2ecf20Sopenharmony_ci wait_queue_head_t wait; 428c2ecf20Sopenharmony_ci int base_update_count; 438c2ecf20Sopenharmony_ci int rotation; 448c2ecf20Sopenharmony_ci struct fb_info fb; 458c2ecf20Sopenharmony_ci u32 cmap[16]; 468c2ecf20Sopenharmony_ci}; 478c2ecf20Sopenharmony_ci 488c2ecf20Sopenharmony_cistatic irqreturn_t goldfish_fb_interrupt(int irq, void *dev_id) 498c2ecf20Sopenharmony_ci{ 508c2ecf20Sopenharmony_ci unsigned long irq_flags; 518c2ecf20Sopenharmony_ci struct goldfish_fb *fb = dev_id; 528c2ecf20Sopenharmony_ci u32 status; 538c2ecf20Sopenharmony_ci 548c2ecf20Sopenharmony_ci spin_lock_irqsave(&fb->lock, irq_flags); 558c2ecf20Sopenharmony_ci status = readl(fb->reg_base + FB_INT_STATUS); 568c2ecf20Sopenharmony_ci if (status & FB_INT_BASE_UPDATE_DONE) { 578c2ecf20Sopenharmony_ci fb->base_update_count++; 588c2ecf20Sopenharmony_ci wake_up(&fb->wait); 598c2ecf20Sopenharmony_ci } 608c2ecf20Sopenharmony_ci spin_unlock_irqrestore(&fb->lock, irq_flags); 618c2ecf20Sopenharmony_ci return status ? IRQ_HANDLED : IRQ_NONE; 628c2ecf20Sopenharmony_ci} 638c2ecf20Sopenharmony_ci 648c2ecf20Sopenharmony_cistatic inline u32 convert_bitfield(int val, struct fb_bitfield *bf) 658c2ecf20Sopenharmony_ci{ 668c2ecf20Sopenharmony_ci unsigned int mask = (1 << bf->length) - 1; 678c2ecf20Sopenharmony_ci 688c2ecf20Sopenharmony_ci return (val >> (16 - bf->length) & mask) << bf->offset; 698c2ecf20Sopenharmony_ci} 708c2ecf20Sopenharmony_ci 718c2ecf20Sopenharmony_cistatic int 728c2ecf20Sopenharmony_cigoldfish_fb_setcolreg(unsigned int regno, unsigned int red, unsigned int green, 738c2ecf20Sopenharmony_ci unsigned int blue, unsigned int transp, struct fb_info *info) 748c2ecf20Sopenharmony_ci{ 758c2ecf20Sopenharmony_ci struct goldfish_fb *fb = container_of(info, struct goldfish_fb, fb); 768c2ecf20Sopenharmony_ci 778c2ecf20Sopenharmony_ci if (regno < 16) { 788c2ecf20Sopenharmony_ci fb->cmap[regno] = convert_bitfield(transp, &fb->fb.var.transp) | 798c2ecf20Sopenharmony_ci convert_bitfield(blue, &fb->fb.var.blue) | 808c2ecf20Sopenharmony_ci convert_bitfield(green, &fb->fb.var.green) | 818c2ecf20Sopenharmony_ci convert_bitfield(red, &fb->fb.var.red); 828c2ecf20Sopenharmony_ci return 0; 838c2ecf20Sopenharmony_ci } else { 848c2ecf20Sopenharmony_ci return 1; 858c2ecf20Sopenharmony_ci } 868c2ecf20Sopenharmony_ci} 878c2ecf20Sopenharmony_ci 888c2ecf20Sopenharmony_cistatic int goldfish_fb_check_var(struct fb_var_screeninfo *var, 898c2ecf20Sopenharmony_ci struct fb_info *info) 908c2ecf20Sopenharmony_ci{ 918c2ecf20Sopenharmony_ci if ((var->rotate & 1) != (info->var.rotate & 1)) { 928c2ecf20Sopenharmony_ci if ((var->xres != info->var.yres) || 938c2ecf20Sopenharmony_ci (var->yres != info->var.xres) || 948c2ecf20Sopenharmony_ci (var->xres_virtual != info->var.yres) || 958c2ecf20Sopenharmony_ci (var->yres_virtual > info->var.xres * 2) || 968c2ecf20Sopenharmony_ci (var->yres_virtual < info->var.xres)) { 978c2ecf20Sopenharmony_ci return -EINVAL; 988c2ecf20Sopenharmony_ci } 998c2ecf20Sopenharmony_ci } else { 1008c2ecf20Sopenharmony_ci if ((var->xres != info->var.xres) || 1018c2ecf20Sopenharmony_ci (var->yres != info->var.yres) || 1028c2ecf20Sopenharmony_ci (var->xres_virtual != info->var.xres) || 1038c2ecf20Sopenharmony_ci (var->yres_virtual > info->var.yres * 2) || 1048c2ecf20Sopenharmony_ci (var->yres_virtual < info->var.yres)) { 1058c2ecf20Sopenharmony_ci return -EINVAL; 1068c2ecf20Sopenharmony_ci } 1078c2ecf20Sopenharmony_ci } 1088c2ecf20Sopenharmony_ci if ((var->xoffset != info->var.xoffset) || 1098c2ecf20Sopenharmony_ci (var->bits_per_pixel != info->var.bits_per_pixel) || 1108c2ecf20Sopenharmony_ci (var->grayscale != info->var.grayscale)) { 1118c2ecf20Sopenharmony_ci return -EINVAL; 1128c2ecf20Sopenharmony_ci } 1138c2ecf20Sopenharmony_ci return 0; 1148c2ecf20Sopenharmony_ci} 1158c2ecf20Sopenharmony_ci 1168c2ecf20Sopenharmony_cistatic int goldfish_fb_set_par(struct fb_info *info) 1178c2ecf20Sopenharmony_ci{ 1188c2ecf20Sopenharmony_ci struct goldfish_fb *fb = container_of(info, struct goldfish_fb, fb); 1198c2ecf20Sopenharmony_ci 1208c2ecf20Sopenharmony_ci if (fb->rotation != fb->fb.var.rotate) { 1218c2ecf20Sopenharmony_ci info->fix.line_length = info->var.xres * 2; 1228c2ecf20Sopenharmony_ci fb->rotation = fb->fb.var.rotate; 1238c2ecf20Sopenharmony_ci writel(fb->rotation, fb->reg_base + FB_SET_ROTATION); 1248c2ecf20Sopenharmony_ci } 1258c2ecf20Sopenharmony_ci return 0; 1268c2ecf20Sopenharmony_ci} 1278c2ecf20Sopenharmony_ci 1288c2ecf20Sopenharmony_ci 1298c2ecf20Sopenharmony_cistatic int goldfish_fb_pan_display(struct fb_var_screeninfo *var, 1308c2ecf20Sopenharmony_ci struct fb_info *info) 1318c2ecf20Sopenharmony_ci{ 1328c2ecf20Sopenharmony_ci unsigned long irq_flags; 1338c2ecf20Sopenharmony_ci int base_update_count; 1348c2ecf20Sopenharmony_ci struct goldfish_fb *fb = container_of(info, struct goldfish_fb, fb); 1358c2ecf20Sopenharmony_ci 1368c2ecf20Sopenharmony_ci spin_lock_irqsave(&fb->lock, irq_flags); 1378c2ecf20Sopenharmony_ci base_update_count = fb->base_update_count; 1388c2ecf20Sopenharmony_ci writel(fb->fb.fix.smem_start + fb->fb.var.xres * 2 * var->yoffset, 1398c2ecf20Sopenharmony_ci fb->reg_base + FB_SET_BASE); 1408c2ecf20Sopenharmony_ci spin_unlock_irqrestore(&fb->lock, irq_flags); 1418c2ecf20Sopenharmony_ci wait_event_timeout(fb->wait, 1428c2ecf20Sopenharmony_ci fb->base_update_count != base_update_count, HZ / 15); 1438c2ecf20Sopenharmony_ci if (fb->base_update_count == base_update_count) 1448c2ecf20Sopenharmony_ci pr_err("%s: timeout waiting for base update\n", __func__); 1458c2ecf20Sopenharmony_ci return 0; 1468c2ecf20Sopenharmony_ci} 1478c2ecf20Sopenharmony_ci 1488c2ecf20Sopenharmony_cistatic int goldfish_fb_blank(int blank, struct fb_info *info) 1498c2ecf20Sopenharmony_ci{ 1508c2ecf20Sopenharmony_ci struct goldfish_fb *fb = container_of(info, struct goldfish_fb, fb); 1518c2ecf20Sopenharmony_ci 1528c2ecf20Sopenharmony_ci switch (blank) { 1538c2ecf20Sopenharmony_ci case FB_BLANK_NORMAL: 1548c2ecf20Sopenharmony_ci writel(1, fb->reg_base + FB_SET_BLANK); 1558c2ecf20Sopenharmony_ci break; 1568c2ecf20Sopenharmony_ci case FB_BLANK_UNBLANK: 1578c2ecf20Sopenharmony_ci writel(0, fb->reg_base + FB_SET_BLANK); 1588c2ecf20Sopenharmony_ci break; 1598c2ecf20Sopenharmony_ci } 1608c2ecf20Sopenharmony_ci return 0; 1618c2ecf20Sopenharmony_ci} 1628c2ecf20Sopenharmony_ci 1638c2ecf20Sopenharmony_cistatic const struct fb_ops goldfish_fb_ops = { 1648c2ecf20Sopenharmony_ci .owner = THIS_MODULE, 1658c2ecf20Sopenharmony_ci .fb_check_var = goldfish_fb_check_var, 1668c2ecf20Sopenharmony_ci .fb_set_par = goldfish_fb_set_par, 1678c2ecf20Sopenharmony_ci .fb_setcolreg = goldfish_fb_setcolreg, 1688c2ecf20Sopenharmony_ci .fb_pan_display = goldfish_fb_pan_display, 1698c2ecf20Sopenharmony_ci .fb_blank = goldfish_fb_blank, 1708c2ecf20Sopenharmony_ci .fb_fillrect = cfb_fillrect, 1718c2ecf20Sopenharmony_ci .fb_copyarea = cfb_copyarea, 1728c2ecf20Sopenharmony_ci .fb_imageblit = cfb_imageblit, 1738c2ecf20Sopenharmony_ci}; 1748c2ecf20Sopenharmony_ci 1758c2ecf20Sopenharmony_ci 1768c2ecf20Sopenharmony_cistatic int goldfish_fb_probe(struct platform_device *pdev) 1778c2ecf20Sopenharmony_ci{ 1788c2ecf20Sopenharmony_ci int ret; 1798c2ecf20Sopenharmony_ci struct resource *r; 1808c2ecf20Sopenharmony_ci struct goldfish_fb *fb; 1818c2ecf20Sopenharmony_ci size_t framesize; 1828c2ecf20Sopenharmony_ci u32 width, height; 1838c2ecf20Sopenharmony_ci dma_addr_t fbpaddr; 1848c2ecf20Sopenharmony_ci 1858c2ecf20Sopenharmony_ci fb = kzalloc(sizeof(*fb), GFP_KERNEL); 1868c2ecf20Sopenharmony_ci if (fb == NULL) { 1878c2ecf20Sopenharmony_ci ret = -ENOMEM; 1888c2ecf20Sopenharmony_ci goto err_fb_alloc_failed; 1898c2ecf20Sopenharmony_ci } 1908c2ecf20Sopenharmony_ci spin_lock_init(&fb->lock); 1918c2ecf20Sopenharmony_ci init_waitqueue_head(&fb->wait); 1928c2ecf20Sopenharmony_ci platform_set_drvdata(pdev, fb); 1938c2ecf20Sopenharmony_ci 1948c2ecf20Sopenharmony_ci r = platform_get_resource(pdev, IORESOURCE_MEM, 0); 1958c2ecf20Sopenharmony_ci if (r == NULL) { 1968c2ecf20Sopenharmony_ci ret = -ENODEV; 1978c2ecf20Sopenharmony_ci goto err_no_io_base; 1988c2ecf20Sopenharmony_ci } 1998c2ecf20Sopenharmony_ci fb->reg_base = ioremap(r->start, PAGE_SIZE); 2008c2ecf20Sopenharmony_ci if (fb->reg_base == NULL) { 2018c2ecf20Sopenharmony_ci ret = -ENOMEM; 2028c2ecf20Sopenharmony_ci goto err_no_io_base; 2038c2ecf20Sopenharmony_ci } 2048c2ecf20Sopenharmony_ci 2058c2ecf20Sopenharmony_ci fb->irq = platform_get_irq(pdev, 0); 2068c2ecf20Sopenharmony_ci if (fb->irq <= 0) { 2078c2ecf20Sopenharmony_ci ret = -ENODEV; 2088c2ecf20Sopenharmony_ci goto err_no_irq; 2098c2ecf20Sopenharmony_ci } 2108c2ecf20Sopenharmony_ci 2118c2ecf20Sopenharmony_ci width = readl(fb->reg_base + FB_GET_WIDTH); 2128c2ecf20Sopenharmony_ci height = readl(fb->reg_base + FB_GET_HEIGHT); 2138c2ecf20Sopenharmony_ci 2148c2ecf20Sopenharmony_ci fb->fb.fbops = &goldfish_fb_ops; 2158c2ecf20Sopenharmony_ci fb->fb.flags = FBINFO_FLAG_DEFAULT; 2168c2ecf20Sopenharmony_ci fb->fb.pseudo_palette = fb->cmap; 2178c2ecf20Sopenharmony_ci fb->fb.fix.type = FB_TYPE_PACKED_PIXELS; 2188c2ecf20Sopenharmony_ci fb->fb.fix.visual = FB_VISUAL_TRUECOLOR; 2198c2ecf20Sopenharmony_ci fb->fb.fix.line_length = width * 2; 2208c2ecf20Sopenharmony_ci fb->fb.fix.accel = FB_ACCEL_NONE; 2218c2ecf20Sopenharmony_ci fb->fb.fix.ypanstep = 1; 2228c2ecf20Sopenharmony_ci 2238c2ecf20Sopenharmony_ci fb->fb.var.xres = width; 2248c2ecf20Sopenharmony_ci fb->fb.var.yres = height; 2258c2ecf20Sopenharmony_ci fb->fb.var.xres_virtual = width; 2268c2ecf20Sopenharmony_ci fb->fb.var.yres_virtual = height * 2; 2278c2ecf20Sopenharmony_ci fb->fb.var.bits_per_pixel = 16; 2288c2ecf20Sopenharmony_ci fb->fb.var.activate = FB_ACTIVATE_NOW; 2298c2ecf20Sopenharmony_ci fb->fb.var.height = readl(fb->reg_base + FB_GET_PHYS_HEIGHT); 2308c2ecf20Sopenharmony_ci fb->fb.var.width = readl(fb->reg_base + FB_GET_PHYS_WIDTH); 2318c2ecf20Sopenharmony_ci fb->fb.var.pixclock = 0; 2328c2ecf20Sopenharmony_ci 2338c2ecf20Sopenharmony_ci fb->fb.var.red.offset = 11; 2348c2ecf20Sopenharmony_ci fb->fb.var.red.length = 5; 2358c2ecf20Sopenharmony_ci fb->fb.var.green.offset = 5; 2368c2ecf20Sopenharmony_ci fb->fb.var.green.length = 6; 2378c2ecf20Sopenharmony_ci fb->fb.var.blue.offset = 0; 2388c2ecf20Sopenharmony_ci fb->fb.var.blue.length = 5; 2398c2ecf20Sopenharmony_ci 2408c2ecf20Sopenharmony_ci framesize = width * height * 2 * 2; 2418c2ecf20Sopenharmony_ci fb->fb.screen_base = (char __force __iomem *)dma_alloc_coherent( 2428c2ecf20Sopenharmony_ci &pdev->dev, framesize, 2438c2ecf20Sopenharmony_ci &fbpaddr, GFP_KERNEL); 2448c2ecf20Sopenharmony_ci pr_debug("allocating frame buffer %d * %d, got %p\n", 2458c2ecf20Sopenharmony_ci width, height, fb->fb.screen_base); 2468c2ecf20Sopenharmony_ci if (fb->fb.screen_base == NULL) { 2478c2ecf20Sopenharmony_ci ret = -ENOMEM; 2488c2ecf20Sopenharmony_ci goto err_alloc_screen_base_failed; 2498c2ecf20Sopenharmony_ci } 2508c2ecf20Sopenharmony_ci fb->fb.fix.smem_start = fbpaddr; 2518c2ecf20Sopenharmony_ci fb->fb.fix.smem_len = framesize; 2528c2ecf20Sopenharmony_ci 2538c2ecf20Sopenharmony_ci ret = fb_set_var(&fb->fb, &fb->fb.var); 2548c2ecf20Sopenharmony_ci if (ret) 2558c2ecf20Sopenharmony_ci goto err_fb_set_var_failed; 2568c2ecf20Sopenharmony_ci 2578c2ecf20Sopenharmony_ci ret = request_irq(fb->irq, goldfish_fb_interrupt, IRQF_SHARED, 2588c2ecf20Sopenharmony_ci pdev->name, fb); 2598c2ecf20Sopenharmony_ci if (ret) 2608c2ecf20Sopenharmony_ci goto err_request_irq_failed; 2618c2ecf20Sopenharmony_ci 2628c2ecf20Sopenharmony_ci writel(FB_INT_BASE_UPDATE_DONE, fb->reg_base + FB_INT_ENABLE); 2638c2ecf20Sopenharmony_ci goldfish_fb_pan_display(&fb->fb.var, &fb->fb); /* updates base */ 2648c2ecf20Sopenharmony_ci 2658c2ecf20Sopenharmony_ci ret = register_framebuffer(&fb->fb); 2668c2ecf20Sopenharmony_ci if (ret) 2678c2ecf20Sopenharmony_ci goto err_register_framebuffer_failed; 2688c2ecf20Sopenharmony_ci return 0; 2698c2ecf20Sopenharmony_ci 2708c2ecf20Sopenharmony_cierr_register_framebuffer_failed: 2718c2ecf20Sopenharmony_ci free_irq(fb->irq, fb); 2728c2ecf20Sopenharmony_cierr_request_irq_failed: 2738c2ecf20Sopenharmony_cierr_fb_set_var_failed: 2748c2ecf20Sopenharmony_ci dma_free_coherent(&pdev->dev, framesize, 2758c2ecf20Sopenharmony_ci (void *)fb->fb.screen_base, 2768c2ecf20Sopenharmony_ci fb->fb.fix.smem_start); 2778c2ecf20Sopenharmony_cierr_alloc_screen_base_failed: 2788c2ecf20Sopenharmony_cierr_no_irq: 2798c2ecf20Sopenharmony_ci iounmap(fb->reg_base); 2808c2ecf20Sopenharmony_cierr_no_io_base: 2818c2ecf20Sopenharmony_ci kfree(fb); 2828c2ecf20Sopenharmony_cierr_fb_alloc_failed: 2838c2ecf20Sopenharmony_ci return ret; 2848c2ecf20Sopenharmony_ci} 2858c2ecf20Sopenharmony_ci 2868c2ecf20Sopenharmony_cistatic int goldfish_fb_remove(struct platform_device *pdev) 2878c2ecf20Sopenharmony_ci{ 2888c2ecf20Sopenharmony_ci size_t framesize; 2898c2ecf20Sopenharmony_ci struct goldfish_fb *fb = platform_get_drvdata(pdev); 2908c2ecf20Sopenharmony_ci 2918c2ecf20Sopenharmony_ci framesize = fb->fb.var.xres_virtual * fb->fb.var.yres_virtual * 2; 2928c2ecf20Sopenharmony_ci unregister_framebuffer(&fb->fb); 2938c2ecf20Sopenharmony_ci free_irq(fb->irq, fb); 2948c2ecf20Sopenharmony_ci 2958c2ecf20Sopenharmony_ci dma_free_coherent(&pdev->dev, framesize, (void *)fb->fb.screen_base, 2968c2ecf20Sopenharmony_ci fb->fb.fix.smem_start); 2978c2ecf20Sopenharmony_ci iounmap(fb->reg_base); 2988c2ecf20Sopenharmony_ci kfree(fb); 2998c2ecf20Sopenharmony_ci return 0; 3008c2ecf20Sopenharmony_ci} 3018c2ecf20Sopenharmony_ci 3028c2ecf20Sopenharmony_cistatic const struct of_device_id goldfish_fb_of_match[] = { 3038c2ecf20Sopenharmony_ci { .compatible = "google,goldfish-fb", }, 3048c2ecf20Sopenharmony_ci {}, 3058c2ecf20Sopenharmony_ci}; 3068c2ecf20Sopenharmony_ciMODULE_DEVICE_TABLE(of, goldfish_fb_of_match); 3078c2ecf20Sopenharmony_ci 3088c2ecf20Sopenharmony_cistatic const struct acpi_device_id goldfish_fb_acpi_match[] = { 3098c2ecf20Sopenharmony_ci { "GFSH0004", 0 }, 3108c2ecf20Sopenharmony_ci { }, 3118c2ecf20Sopenharmony_ci}; 3128c2ecf20Sopenharmony_ciMODULE_DEVICE_TABLE(acpi, goldfish_fb_acpi_match); 3138c2ecf20Sopenharmony_ci 3148c2ecf20Sopenharmony_cistatic struct platform_driver goldfish_fb_driver = { 3158c2ecf20Sopenharmony_ci .probe = goldfish_fb_probe, 3168c2ecf20Sopenharmony_ci .remove = goldfish_fb_remove, 3178c2ecf20Sopenharmony_ci .driver = { 3188c2ecf20Sopenharmony_ci .name = "goldfish_fb", 3198c2ecf20Sopenharmony_ci .of_match_table = goldfish_fb_of_match, 3208c2ecf20Sopenharmony_ci .acpi_match_table = ACPI_PTR(goldfish_fb_acpi_match), 3218c2ecf20Sopenharmony_ci } 3228c2ecf20Sopenharmony_ci}; 3238c2ecf20Sopenharmony_ci 3248c2ecf20Sopenharmony_cimodule_platform_driver(goldfish_fb_driver); 3258c2ecf20Sopenharmony_ci 3268c2ecf20Sopenharmony_ciMODULE_LICENSE("GPL v2"); 327