Skip to content

Commit

Permalink
Add pcie.py to support pcieinfo
Browse files Browse the repository at this point in the history
  • Loading branch information
Jostar Yang committed Jul 28, 2022
1 parent d31cc4e commit 4d23c11
Show file tree
Hide file tree
Showing 2 changed files with 105 additions and 0 deletions.
86 changes: 86 additions & 0 deletions device/accton/x86_64-accton_as7712_32x-r0/pcie.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
- bus: '00'
dev: '00'
fn: '0'
id: 1f0c
name: 'Host bridge: Intel Corporation Atom processor C2000 SoC Transaction Router (rev 03)'
- bus: '00'
dev: '01'
fn: '0'
id: 1f10
name: 'PCI bridge: Intel Corporation Atom processor C2000 PCIe Root Port 1 (rev03)'
- bus: '00'
dev: '02'
fn: '0'
id: 1f11
name: 'PCI bridge: Intel Corporation Atom processor C2000 PCIe Root Port 2 (rev03)'
- bus: '00'
dev: '03'
fn: '0'
id: 1f12
name: 'PCI bridge: Intel Corporation Atom processor C2000 PCIe Root Port 3 (rev03)'
- bus: '00'
dev: 0e
fn: '0'
id: 1f14
name: 'Host bridge: Intel Corporation Atom processor C2000 RAS (rev 03)'
- bus: '00'
dev: 0f
fn: '0'
id: 1f16
name: 'IOMMU: Intel Corporation Atom processor C2000 RCEC (rev 03)'
- bus: '00'
dev: '13'
fn: '0'
id: 1f15
name: 'System peripheral: Intel Corporation Atom processor C2000 SMBus 2.0 (rev 03)'
- bus: '00'
dev: '14'
fn: '0'
id: 1f41
name: 'Ethernet controller: Intel Corporation Ethernet Connection I354 (rev 03)'
- bus: '00'
dev: '14'
fn: '1'
id: 1f41
name: 'Ethernet controller: Intel Corporation Ethernet Connection I354 (rev 03)'
- bus: '00'
dev: '14'
fn: '2'
id: 1f41
name: 'Ethernet controller: Intel Corporation Ethernet Connection I354 (rev 03)'
- bus: '00'
dev: '16'
fn: '0'
id: 1f2c
name: 'USB controller: Intel Corporation Atom processor C2000 USB Enhanced Host
Controller (rev 03)'
- bus: '00'
dev: '17'
fn: '0'
id: 1f22
name: 'SATA controller: Intel Corporation Atom processor C2000 AHCI SATA2 Controller (rev 03)'
- bus: '00'
dev: '18'
fn: '0'
id: 1f32
name: 'SATA controller: Intel Corporation Atom processor C2000 AHCI SATA3 Controller (rev 03)'
- bus: '00'
dev: 1f
fn: '0'
id: 1f38
name: 'ISA bridge: Intel Corporation Atom processor C2000 PCU (rev 03)'
- bus: '00'
dev: 1f
fn: '3'
id: 1f3c
name: 'SMBus: Intel Corporation Atom processor C2000 PCU SMBus (rev 03)'
- bus: '01'
dev: '00'
fn: '0'
id: b960
name: 'Ethernet controller: Broadcom Inc. and subsidiaries Broadcom BCM56960 Switch ASIC (rev 12)'
- bus: '01'
dev: '00'
fn: '1'
id: b960
name: 'Ethernet controller: Broadcom Inc. and subsidiaries Broadcom BCM56960 Switch ASIC (rev 12)'
19 changes: 19 additions & 0 deletions device/accton/x86_64-accton_as7712_32x-r0/sonic_platform/pcie.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#############################################################################
# Edgecore
#
# Module contains an implementation of SONiC Platform Base API and
# provides the fan status which are available in the platform
# Base PCIe class
#############################################################################

try:
from sonic_platform_base.sonic_pcie.pcie_common import PcieUtil
except ImportError as e:
raise ImportError(str(e) + "- required module not found")


class Pcie(PcieUtil):
"""Edgecore Platform-specific PCIe class"""

def __init__(self, platform_path):
PcieUtil.__init__(self, platform_path)

0 comments on commit 4d23c11

Please sign in to comment.