drm-tests: introduce bs_mapper.

There are many mmap variants and many duplicated code. Introduce bs_mapper
struct, and all clients use it.

bs_mapper supports
* dma-buf mmap
* GEM map
* dumb map
However, it's flexible enough to add more mappings if necessary in the future.

TEST=mmap_test on Pixel 2015
BUG=chromium:356871

Change-Id: Ia3285560eacaabd7d8954d503fc55c7135b3cea2
Reviewed-on: https://chromium-review.googlesource.com/456420
Commit-Ready: Dongseong Hwang <dongseong.hwang@intel.com>
Tested-by: Dongseong Hwang <dongseong.hwang@intel.com>
Reviewed-by: Dongseong Hwang <dongseong.hwang@intel.com>
Reviewed-by: Zach Reizner <zachr@chromium.org>
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
14 files changed