2 * Intel MIC Platform Software Stack (MPSS)
4 * Copyright(c) 2013 Intel Corporation.
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License, version 2, as
8 * published by the Free Software Foundation.
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * General Public License for more details.
15 * The full GNU General Public License is included in this distribution in
16 * the file called "COPYING".
25 * struct mic_mw - MIC memory window
27 * @pa: Base physical address.
28 * @va: Base ioremap'd virtual address.
29 * @len: Size of the memory window.
38 * Scratch pad register offsets used by the host to communicate
39 * device page DMA address to the card.
41 #define MIC_DPLO_SPAD 14
42 #define MIC_DPHI_SPAD 15
45 * These values are supposed to be in the config_change field of the
46 * device page when the host sends a config change interrupt to the card.
48 #define MIC_VIRTIO_PARAM_DEV_REMOVE 0x1
49 #define MIC_VIRTIO_PARAM_CONFIG_CHANGED 0x2
51 /* Maximum number of DMA channels */
52 #define MIC_MAX_DMA_CHAN 4