1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Intel MIC Platform Software Stack (MPSS)
5 * Copyright(c) 2013 Intel Corporation.
12 /* The maximum number of MIC devices supported in a single host system. */
13 #define MIC_MAX_NUM_DEVS 128
16 * enum mic_hw_family - The hardware family to which a device belongs.
26 * struct mic_mw - MIC memory window
28 * @pa: Base physical address.
29 * @va: Base ioremap'd virtual address.
30 * @len: Size of the memory window.
39 * Scratch pad register offsets used by the host to communicate
40 * device page DMA address to the card.
42 #define MIC_DPLO_SPAD 14
43 #define MIC_DPHI_SPAD 15
46 * These values are supposed to be in the config_change field of the
47 * device page when the host sends a config change interrupt to the card.
49 #define MIC_VIRTIO_PARAM_DEV_REMOVE 0x1
50 #define MIC_VIRTIO_PARAM_CONFIG_CHANGED 0x2
52 /* Maximum number of DMA channels */
53 #define MIC_MAX_DMA_CHAN 4