[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL V2 40/44] tests/qtest/libqos/e1000e: Export macreg functions
From: |
Jason Wang |
Subject: |
[PULL V2 40/44] tests/qtest/libqos/e1000e: Export macreg functions |
Date: |
Fri, 10 Mar 2023 17:35:22 +0800 |
From: Akihiko Odaki <akihiko.odaki@daynix.com>
They will be useful for igb testing.
Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
---
tests/qtest/libqos/e1000e.c | 12 ------------
tests/qtest/libqos/e1000e.h | 12 ++++++++++++
2 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/tests/qtest/libqos/e1000e.c b/tests/qtest/libqos/e1000e.c
index 28fb305..925654c 100644
--- a/tests/qtest/libqos/e1000e.c
+++ b/tests/qtest/libqos/e1000e.c
@@ -36,18 +36,6 @@
#define E1000E_RING_LEN (0x1000)
-static void e1000e_macreg_write(QE1000E *d, uint32_t reg, uint32_t val)
-{
- QE1000E_PCI *d_pci = container_of(d, QE1000E_PCI, e1000e);
- qpci_io_writel(&d_pci->pci_dev, d_pci->mac_regs, reg, val);
-}
-
-static uint32_t e1000e_macreg_read(QE1000E *d, uint32_t reg)
-{
- QE1000E_PCI *d_pci = container_of(d, QE1000E_PCI, e1000e);
- return qpci_io_readl(&d_pci->pci_dev, d_pci->mac_regs, reg);
-}
-
void e1000e_tx_ring_push(QE1000E *d, void *descr)
{
QE1000E_PCI *d_pci = container_of(d, QE1000E_PCI, e1000e);
diff --git a/tests/qtest/libqos/e1000e.h b/tests/qtest/libqos/e1000e.h
index 5e2b201..30643c8 100644
--- a/tests/qtest/libqos/e1000e.h
+++ b/tests/qtest/libqos/e1000e.h
@@ -42,6 +42,18 @@ struct QE1000E_PCI {
QE1000E e1000e;
};
+static inline void e1000e_macreg_write(QE1000E *d, uint32_t reg, uint32_t val)
+{
+ QE1000E_PCI *d_pci = container_of(d, QE1000E_PCI, e1000e);
+ qpci_io_writel(&d_pci->pci_dev, d_pci->mac_regs, reg, val);
+}
+
+static inline uint32_t e1000e_macreg_read(QE1000E *d, uint32_t reg)
+{
+ QE1000E_PCI *d_pci = container_of(d, QE1000E_PCI, e1000e);
+ return qpci_io_readl(&d_pci->pci_dev, d_pci->mac_regs, reg);
+}
+
void e1000e_wait_isr(QE1000E *d, uint16_t msg_id);
void e1000e_tx_ring_push(QE1000E *d, void *descr);
void e1000e_rx_ring_push(QE1000E *d, void *descr);
--
2.7.4
- [PULL V2 28/44] MAINTAINERS: Add Akihiko Odaki as a e1000e reviewer, (continued)
- [PULL V2 28/44] MAINTAINERS: Add Akihiko Odaki as a e1000e reviewer, Jason Wang, 2023/03/10
- [PULL V2 30/44] e1000e: Combine rx traces, Jason Wang, 2023/03/10
- [PULL V2 29/44] MAINTAINERS: Add e1000e test files, Jason Wang, 2023/03/10
- [PULL V2 31/44] e1000: Count CRC in Tx statistics, Jason Wang, 2023/03/10
- [PULL V2 34/44] e1000e: Implement system clock, Jason Wang, 2023/03/10
- [PULL V2 33/44] net/eth: Report if headers are actually present, Jason Wang, 2023/03/10
- [PULL V2 32/44] e1000e: Count CRC in Tx statistics, Jason Wang, 2023/03/10
- [PULL V2 35/44] net/eth: Introduce EthL4HdrProto, Jason Wang, 2023/03/10
- [PULL V2 36/44] pcie: Introduce pcie_sriov_num_vfs, Jason Wang, 2023/03/10
- [PULL V2 37/44] e1000: Split header files, Jason Wang, 2023/03/10
- [PULL V2 40/44] tests/qtest/libqos/e1000e: Export macreg functions,
Jason Wang <=
- [PULL V2 39/44] tests/qtest/e1000e-test: Fabricate ethernet header, Jason Wang, 2023/03/10
- [PULL V2 38/44] Intrdocue igb device emulation, Jason Wang, 2023/03/10
- [PULL V2 41/44] igb: Introduce qtest for igb device, Jason Wang, 2023/03/10
- [PULL V2 42/44] tests/avocado: Add igb test, Jason Wang, 2023/03/10
- [PULL V2 43/44] docs/system/devices/igb: Add igb documentation, Jason Wang, 2023/03/10
- [PULL V2 44/44] ebpf: fix compatibility with libbpf 1.0+, Jason Wang, 2023/03/10
- Re: [PULL V2 00/44] Net patches, Peter Maydell, 2023/03/12