summaryrefslogtreecommitdiffstats
path: root/ccan
Commit message (Collapse)AuthorAgeFilesLines
* ccan/cppmaigc: Add CPPMAGIC_MAP_CNT(...) macroAlistair Popple2018-06-251-0/+19
| | | | | | | It can be useful to have a count to keep track of which argument number in the list is being expanded. Signed-off-by: Alistair Popple <alistair@popple.id.au>
* ccan/cppmagic: Add CPPMAGIC_INC(x) macroAlistair Popple2018-06-251-0/+41
| | | | | | | The original ccan module does not include a macro to increment numbers. Add one which will increment upto 32 which is enough for our usage. Signed-off-by: Alistair Popple <alistair@popple.id.au>
* ccan/cppmagic: Fix NONEMPTY macroAlistair Popple2018-06-251-2/+8
| | | | | | | | The original implementation of non-empty will fail to compile if passed an argument of the form 'CPPMAGIC_NONEMPTY((...))'. Add a check for parentheses and return true if passed. Signed-off-by: Alistair Popple <alistair@popple.id.au>
* ccan: Add cppmagicAlistair Popple2018-06-254-0/+314
| | | | | | A couple of arguably useful C preprocessor abuses. License is BSD-MIT. Signed-off-by: Alistair Popple <alistair@popple.id.au>
* device: remove use of ccan's endianJoel Stanley2017-09-225-520/+0
| | | | | | | | | | | | | | | | | | | | | | | | | When cross compiling with uclibc under buildroot, we get the following clash: ./ccan/endian/endian.h:84:24: error: redefinition of ‘__bswap_32’ static inline uint32_t bswap_32(uint32_t val) ^ In file included from usr/include/bits/byteswap.h:1:0, from usr/include/byteswap.h:22, from usr/include/endian.h:59, from usr/include/bits/pthreadtypes.h:21, from usr/include/bits/uClibc_stdio.h:92, from usr/include/stdio.h:71, from libpdbg/device.c:18: usr/include/bits/byteswap-common.h:44:1: note: previous definition of ‘__bswap_32’ was here __bswap_32 (unsigned int __bsx) ^~~~~~~~~~ Work around it by not using ccan's endian. There's only one call site, and we can use a libc function instead. Signed-off-by: Joel Stanley <joel@jms.id.au> Signed-off-by: Alistair Popple <alistair@popple.id.au>
* Clean-up target configuration in preparation for adding P9 supportAlistair Popple2017-03-3033-0/+1458
| | | | | | | | | | The previous implementation of targeting was hardcoded, cumbersome and difficult to reconfigure for different chip types. This moves to a method of configuring targets using device-tree which is much easier to maintain and allows methods to be added to support operations like getmem on POWER9. Signed-off-by: Alistair Popple <alistair@popple.id.au>
* Add support for i2c access to secondary processorsAlistair Popple2016-10-2528-8/+1762
| | | | | | | | This includes better support for selecting targets, probing thread status and a number of other minor bugfixes. Also adds an option to print version numbers. Signed-off-by: Alistair Popple <alistair@popple.id.au>
* Initial release of pdbgAlistair Popple2016-01-1115-0/+337
pdbg is a tool to access P8 host registers and memory from the BMC for kernel and firmware debugging purposes. Signed-off-by: Alistair Popple <alistair@popple.id.au>
OpenPOWER on IntegriCloud