[PATCHv2 0/2] register-field manipulation macros

2016-06-14 Thread Jakub Kicinski
Hi! This set moves to a global header file macros which I find very useful and worth popularising. The basic problem is that since C bitfields are not very dependable accessing subfields of registers becomes slightly inconvenient. It is nice to have the necessary mask and shift operations

[PATCHv2 0/2] register-field manipulation macros

2016-06-14 Thread Jakub Kicinski
Hi! This set moves to a global header file macros which I find very useful and worth popularising. The basic problem is that since C bitfields are not very dependable accessing subfields of registers becomes slightly inconvenient. It is nice to have the necessary mask and shift operations