Skip to content

Instantly share code, notes, and snippets.

@oshimaya
Created December 28, 2015 12:25
Show Gist options
  • Save oshimaya/567ced04596f22a44e48 to your computer and use it in GitHub Desktop.
Save oshimaya/567ced04596f22a44e48 to your computer and use it in GitHub Desktop.
Add WSDISPLAYIO_GET_FBINFO ioctl to imx51 FB in NetBSD/evbarm 7.0 (for NetWalker)
Index: sys/arch/arm/imx/imx51_ipuv3.c
===================================================================
RCS file: /cvsroot/src/sys/arch/arm/imx/imx51_ipuv3.c,v
retrieving revision 1.2
diff -u -r1.2 imx51_ipuv3.c
--- sys/arch/arm/imx/imx51_ipuv3.c 6 May 2014 11:22:53 -0000 1.2
+++ sys/arch/arm/imx/imx51_ipuv3.c 28 Dec 2015 12:12:19 -0000
@@ -1298,8 +1298,14 @@
}
}
return 0;
- }
+ case WSDISPLAYIO_GET_FBINFO:
+ {
+ struct wsdisplayio_fbinfo *fbi = data;
+ struct rasops_info *ri = &ms->scr_ri;
+ return wsdisplayio_get_fbinfo(ri, fbi);
+ }
+ }
return EPASSTHROUGH;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment