> On May 26, 2015, at 11:03 AM, Bill Paul <wp...@windriver.com> wrote:
> 
> Long story short, I think it's generally left up to the driver writer to deal 
> with this in whatever way they deem is least offensive. There isn't a good 
> way 
> to handle this stuff: only the least awful way. I don't think the EDK 
> specification will ever directly address this as it's considered an 
> implementation detail, though a little guidance would be nice.
> 

Hardware is not known for being object oriented… and likes to make things 
complex for software. 

In general on a PC the PCI Root Bridge is a DXE driver and it abstracts the PCI 
Root Bridge with known protocols….

On a SoC we don’t currently have a generic root bridge driver scheme, folks 
have talked about, but we have not implemented one. 

The closest thing to your case is probably SMBUS. So what you can do is have a 
protocol that abstracts accessing your shared config bus and all the NIC driver 
needs to know is the address of the device on the shared bus. If the MAC’s look 
very different from on another you may want a protocol that abstracts 
configuring the MAC? How to do this is really the object model of how to solve 
this problem. Given I don’t know all the constraints it is hard for me to 
design the correct object module to solve your specific issue. 

Thanks,

Andrew Fish

> -Bill

------------------------------------------------------------------------------
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to