misc: mic: Fixes for randconfig build errors and warnings.

This patch fixes the build errors and warnings reported at
https://lkml.org/lkml/2013/10/29/421.

Co-author: Dasaratharaman Chandramouli <dasaratharaman.chandramouli@intel.com>
Reviewed-by: Sudeep Dutt <sudeep.dutt@intel.com>
Reported-by: Jim Davis <jim.epost@gmail.com>
Signed-off-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
misc: mic: Move mic_dev.h to include/linux

mic_dev.h is going to be shared with MIC X100 DMA library
which is added in the next patch.

Signed-off-by: Siva Yerramreddy <siva.krishna.kumar.reddy.yerramreddy@intel.com>
MIC X100 DMA Library

This patch implements DMA Engine API for DMA controller
on MIC X100 Coprocessors. It can be used by both
MIC host and card drivers. The api for this library is
defined in include/linux/mic_dev.h. Allowed dma transfer
directions are host to card, card to host and card to card.
Only memcpy is supported by this hardware. This library
reserves four channels for host driver and the remaining
four for card driver. DMA channels are private on host
and generally available on card. Source, destination and length
need to be 64 byte aligned.

There is a descriptor ring for each of the channels. Software
programs descriptors into the ring and updates the head pointer.
Hardware processes all the descriptors between tail & head and
updates tail upon completion. The descriptor ring is allocated
and initialized when the channel is setup and freed during
channel uninitialization.

MIC DMA library exports APIs to enable the MIC host and card
drivers to register and unregister with it. Once registered,
the Linux DMA Engine API is used to initiate DMAs.

Signed-off-by: Siva Yerramreddy <siva.krishna.kumar.reddy.yerramreddy@intel.com>
Signed-off-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Signed-off-by: Dasaratharaman Chandramouli <dasaratharaman.chandramouli@intel.com>
Signed-off-by: Nikhil Rao <nikhil.rao@intel.com>
Signed-off-by: Harshavardhan R Kharche <harshavardhan.r.kharche@intel.com>
Signed-off-by: Sudeep Dutt <sudeep.dutt@intel.com>
Signed-off-by: Caz Yokoyama <Caz.Yokoyama@intel.com>