[dts] [PATCH v1] framework crb: add function for get pci address

Marvin Liu yong.liu at intel.com
Wed Jul 26 04:31:54 CEST 2017


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

diff --git a/framework/crb.py b/framework/crb.py
index 8fbd5b3..e0267dc 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):
+        try:
+            return self.ports_info[port_id]['pci']
+        except:
+            return ""
+
     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