Dear Zhao Qiang, In message <1378689694-26708-1-git-send-email-b45...@freescale.com> you wrote: > Add a function to get the address of requested capability structure in PCIe > configuration space by capability ID. > The step of this function: > 1. Read Status register in PCIe configuration space to confirm that > Capabilities List is valid. > 2. Find the address of Capabilities Pointer Register. > 3. Find the address of requested capability from the first capability.
Why would such an extension be needed? As is, you are just adding dead code. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de "I haven't lost my mind - it's backed up on tape somewhere." _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot