]> git.baikalelectronics.ru Git - kernel.git/commit
lib: Add support for generic packing operations
authorVladimir Oltean <olteanv@gmail.com>
Thu, 2 May 2019 20:23:29 +0000 (23:23 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 3 May 2019 14:49:17 +0000 (10:49 -0400)
commit56559a17da9f86d5195a7305d2584ab771746a87
tree188b3a98394b427d9f69e6539f7b3d871ade63b8
parentb4698998a28f2bc7c4fea02ca25980e1e1eaf6fc
lib: Add support for generic packing operations

This provides an unified API for accessing register bit fields
regardless of memory layout. The basic unit of data for these API
functions is the u64. The process of transforming an u64 from native CPU
encoding into the peripheral's encoding is called 'pack', and
transforming it from peripheral to native CPU encoding is 'unpack'.

Signed-off-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/packing.txt [new file with mode: 0644]
MAINTAINERS
include/linux/packing.h [new file with mode: 0644]
lib/Kconfig
lib/Makefile
lib/packing.c [new file with mode: 0644]