From: Wolfgang Denk Date: Tue, 19 May 2009 23:25:18 +0200 Subject: [U-Boot] how to use a function provided by u-boot in linux driver In-Reply-To: <23610373.post@talk.nabble.com> References: <23610373.post@talk.nabble.com> Message-ID: <20090519212518.8AE7F832E416@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Kartheek N S, In message <23610373.post@talk.nabble.com> you wrote: > > I would like to use miiphy_read and miiphy_write functions provided by > u-boot in the linux kernel driver. This is not possible, and the request makes no sense. When Linux boots, all the memory used by U-Boot is freed; no trace of U-Boot is left behind in memory. You cannot call any U-Boot functions from Linux, as U-Boot does not exist any more in RAM. > This is required for reading the link status of each of the phys > associated with a switch. Linux has it's own interface and drivers to talk to PHYs and the like. 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 It's hard to make a program foolproof because fools are so ingenious.