net: hibmcge: Add pci table supported in this module
authorJijie Shao <shaojijie@huawei.com>
Tue, 15 Oct 2024 12:35:07 +0000 (20:35 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Mon, 21 Oct 2024 09:26:52 +0000 (11:26 +0200)
commita95ac4f92aa62abf3c5d874cc960bb4d76cd540a
treea8bbc89b76303294ada54c49508af269baf88a2f
parent90cb5f1776ba371478e2b08fbf7018c7bd781a8d
net: hibmcge: Add pci table supported in this module

Add pci table supported in this module, and implement pci_driver function
to initialize this driver.

hibmcge is a passthrough network device. Its software runs
on the host side, and the MAC hardware runs on the BMC side
to reduce the host CPU area. The software interacts with the
MAC hardware through the PCIe.

  ┌─────────────────────────┐
  │ HOST CPU network device │
  │    ┌──────────────┐     │
  │    │hibmcge driver│     │
  │    └─────┬─┬──────┘     │
  │          │ │            │
  │HOST  ┌───┴─┴───┐        │
  │      │ PCIE RC │        │
  └──────┴───┬─┬───┴────────┘
             │ │
            PCIE
             │ │
  ┌──────┬───┴─┴───┬────────┐
  │      │ PCIE EP │        │
  │BMC   └───┬─┬───┘        │
  │          │ │            │
  │ ┌────────┴─┴──────────┐ │
  │ │        GE           │ │
  │ │ ┌─────┐    ┌─────┐  │ │
  │ │ │ MAC │    │ MAC │  │ │
  └─┴─┼─────┼────┼─────┼──┴─┘
      │ PHY │    │ PHY │
      └─────┘    └─────┘

Signed-off-by: Jijie Shao <shaojijie@huawei.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/hisilicon/hibmcge/hbg_common.h [new file with mode: 0644]
drivers/net/ethernet/hisilicon/hibmcge/hbg_main.c [new file with mode: 0644]