[dts] [PATCH v2] framework crb: add new function for getting pci address by port index

Marvin Liu yong.liu at intel.com
Wed Jul 26 05:25:14 CEST 2017


Signed-off-by: Marvin Liu <yong.liu at intel.com>

diff --git a/framework/crb.py b/framework/crb.py
index 8fbd5b3..bf07345 100644
--- a/framework/crb.py
+++ b/framework/crb.py
@@ -723,6 +723,12 @@ class Crb(object):
             if port_info['pci'] == pci:
                 return port_info
 
+    def get_port_pci(self, port_id):
+        """
+        return port pci address by port index
+        """
+        return self.ports_info[port_id]['pci']
+
     def enable_promisc(self, intf):
         if intf != 'N/A':
             self.send_expect("ifconfig %s promisc" % intf, "# ", alt_session=True)
-- 
1.9.3



More information about the dts mailing list