
9 Sep
2013
9 Sep
'13
7:55 a.m.
Dear Zhao Qiang,
In message 1378689694-26708-1-git-send-email-B45475@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:
- Read Status register in PCIe configuration space to confirm that Capabilities List is valid.
- Find the address of Capabilities Pointer Register.
- 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: wd@denx.de
"I haven't lost my mind - it's backed up on tape somewhere."