minigbm: add gbm_bo_map2

Plan is convert all users to gbm_bo_map2, and then make gbm_bo_map
follow the upstream convention.

BUG=b:145747350
TEST=emerge-nami minigbm

Change-Id: I7c7d54d519277e21ebfa99c57d9a738e9d257a57
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/minigbm/+/1965671
Tested-by: Gurchetan Singh <gurchetansingh@chromium.org>
Commit-Queue: Gurchetan Singh <gurchetansingh@chromium.org>
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
diff --git a/gbm.h b/gbm.h
index d313865..e341c40 100644
--- a/gbm.h
+++ b/gbm.h
@@ -465,6 +465,10 @@
 gbm_bo_map(struct gbm_bo *bo,
            uint32_t x, uint32_t y, uint32_t width, uint32_t height,
            uint32_t flags, uint32_t *stride, void **map_data, size_t plane);
+void *
+gbm_bo_map2(struct gbm_bo *bo,
+	   uint32_t x, uint32_t y, uint32_t width, uint32_t height,
+	   uint32_t flags, uint32_t *stride, void **map_data, int plane);
 
 /*
  * The following functions are deprecated. They can be removed * once crbug.com/946907 is fixed.