msm: vidc: Initialize kernel space stack variables

This change initializes kernel space stack variables
that are passed between kernel space and user space
using ioctls.
Non initialization of these variables may lead to
leakage of memory values from the kernel stack to
user space.

Change-Id: Icb195470545ee48b55671ac09798610178e833e1
CRs-fixed: 556771,563420
Signed-off-by: Deepak Verma <dverma@codeaurora.org>
msm: vidc: Validate userspace buffer count before using it

Validate the number of buffers count variable before
using it to avoid structure overflow error.

Change-Id: I61582c93e0f26ec6842e437134fb8a42bdbc36ff
CRs-fixed: 563654
Signed-off-by: Pachika, Vikas Reddy <vpachi@codeaurora.org>
msm: vidc: Validate userspace buffer count

Makesure the number of buffers count is less than
the maximum limit to avoid structure overflow errors.

Change-Id: Icf3850de36325637ae43ac95f1c8f0f63e201d31
CRs-fixed: 563694
Signed-off-by: Pachika, Vikas Reddy <vpachi@codeaurora.org>
msm: iomap: Add HTC memory region mappings

* HTC's KERNEL_FOOTPRINT and KALLSYM areas appear to be important to the
  modem or watchdog. Add mappings for them.

Change-Id: I3f266f7a20b635035e6d46aa38bfe48e8eecdc24
msm: HTC: Use msm_iomap for ram console addresses

Change-Id: Ic94e7b066e15e05598d28dd976a9459d2febe982
msm: HTC: 8960: enable GTOD helpers, disable DLOAD mode, disable CACHE_ERP

Change-Id: I5e3d921c9d076c2464b1bfef6d39b711810f6c4e