[RFC] SystemACE driver - abstract register ops

John Williams jwilliams at itee.uq.edu.au
Fri Apr 27 16:36:31 EST 2007


Grant,

Thanks for your work on the SystemACE driver - I'll be porting/merging 
this across to MicroBlaze very shortly.

Given that SysACE can be hooked up in any number of ways, bit widths, 
endians, PPC/Microblaze, can you please offer your comments on the 
attached patch?

It introduce a private ace_reg_ops structure, with various member 
functions for the different kinds of accesses to the HW.

This patch should not change the functionality of your original driver 
at all, it's just groundwork for what's to come.

I recognise that it adds indirection into the various access paths, and 
potentially a little bloat.  Whether this is better than #if 
1...#else...#endif is debatable.

Similar issues will arise for most (all?) of the Xilinx drivers that we 
will share between PPC and MicroBlaze.  Hopefully we can converge on a 
nice consistent and clean way of handling these dual arch drivers.

Cheers,

John
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: xsysace-regops.patch
Url: http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20070427/267f41c0/attachment.txt 


More information about the Linuxppc-embedded mailing list