dma/hisilicon: introduce driver skeleton
[dpdk.git] / drivers / dma / hisilicon / hisi_dmadev.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2021 HiSilicon Limited
3  */
4
5 #ifndef HISI_DMADEV_H
6 #define HISI_DMADEV_H
7
8 #define PCI_VENDOR_ID_HUAWEI                    0x19e5
9 #define HISI_DMA_DEVICE_ID                      0xA122
10 #define HISI_DMA_PCI_REVISION_ID_REG            0x08
11 #define HISI_DMA_REVISION_HIP08B                0x21
12
13 /**
14  * The HIP08B(HiSilicon IP08) and later Chip(e.g. HiSilicon IP09) are DMA iEPs,
15  * they have the same pci device id but with different pci revision.
16  * Unfortunately, they have different register layouts, so the layout
17  * enumerations are defined.
18  */
19 enum {
20         HISI_DMA_REG_LAYOUT_INVALID = 0,
21         HISI_DMA_REG_LAYOUT_HIP08
22 };
23
24 #endif /* HISI_DMADEV_H */