From 7df6d25fc33fe70dfe138d514f7832d2b0322fda Mon Sep 17 00:00:00 2001 From: liushuai25 Date: Fri, 8 Oct 2021 10:56:17 +0800 Subject: [PATCH] fix: driver: modify some fields and comments CHAMPION-91 change FBIOPAN_DISPLAY IOCTL command to _FBIOC(0x0016). change xoffest to xoffset in fb_planeinfo_s. modify comments for xoffset and yoffset in fb_planeinfo_s. add comment for pandisplay interface. Signed-off-by: liushuai25 Change-Id: Idb7805dd9691b849f19e3d7010bcfabbaa48797b --- include/nuttx/video/fb.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/include/nuttx/video/fb.h b/include/nuttx/video/fb.h index 34a512d8fae..e120b8d5b86 100644 --- a/include/nuttx/video/fb.h +++ b/include/nuttx/video/fb.h @@ -283,7 +283,7 @@ #define FBIOGET_FRAMERATE _FBIOC(0x0015) /* Get frame rate * Argument: int* */ -#define FBIOPAN_DISPLAY _FBIOC(0x0020) /* Pan display +#define FBIOPAN_DISPLAY _FBIOC(0x0016) /* Pan display * Argument: read-only struct * fb_planeinfo_s* */ @@ -326,8 +326,8 @@ struct fb_planeinfo_s uint8_t bpp; /* Bits per pixel */ uint32_t xres_virtual; /* Virtual Horizontal resolution in pixel columns */ uint32_t yres_virtual; /* Virtual Vertical resolution in pixel rows */ - uint32_t xoffest; /* X offset */ - uint32_t yoffset; /* Y offset */ + uint32_t xoffset; /* Offset from virtual to visible resolution */ + uint32_t yoffset; /* Offset from virtual to visible resolution */ }; /* This structure describes an area. */ @@ -592,6 +592,8 @@ struct fb_vtable_s # endif #endif + /* Pan display for multiple buffers. */ + int (*pandisplay)(FAR struct fb_vtable_s *vtable, FAR struct fb_planeinfo_s *pinfo);