fm10k: Add support for mailbox
authorAlexander Duyck <alexander.h.duyck@intel.com>
Sat, 20 Sep 2014 23:47:13 +0000 (19:47 -0400)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 23 Sep 2014 10:59:14 +0000 (03:59 -0700)
commit6b1f201f1a32cc88af405b07cc2cfd5dcc308df1
treedc571f282fb7c18d56d78b6e299cd57172e3c4d0
parent04a5aefbfb0109961e1bc3c84ecee00693f78005
fm10k: Add support for mailbox

This patch adds generic mailbox support.  The general idea of the mailboxes
is to use a pair of ring buffers, one for request, one for response to send
data between the local driver and some remote entity be it the PF of the
Switch Manager.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/fm10k/fm10k_mbx.h [new file with mode: 0644]
drivers/net/ethernet/intel/fm10k/fm10k_tlv.c
drivers/net/ethernet/intel/fm10k/fm10k_tlv.h
drivers/net/ethernet/intel/fm10k/fm10k_type.h