[U-Boot] [PATCH] PCIe:Add a function to get the address of requested capability structure.

Wolfgang Denk wd at denx.de
Mon Sep 9 07:55:03 CEST 2013


Dear Zhao Qiang,

In message <1378689694-26708-1-git-send-email-B45475 at 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: wd at denx.de
"I haven't lost my mind - it's backed up on tape somewhere."


More information about the U-Boot mailing list