summaryrefslogtreecommitdiffstats
path: root/vpnor/test/write_ro.cpp
Commit message (Collapse)AuthorAgeFilesLines
* mboxd: Remove flash API compatibility shimAndrew Jeffery2019-03-181-1/+1
| | | | | | | | | The flash API compatibility was kept to reduce the line noise in the previous backend patch. Remove the compatibility layer now and convert the remaining call-sites. Change-Id: I4b6e54f4463059a7804918add81e7572db7b7c21 Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
* mboxd: Add a backend abstraction layer to mboxd.Evan Lojewski2019-03-181-5/+3
| | | | | | | | | | | | | | | | | | | | | | Introduce a backend abstraction, enabling multiple implementations to be compiled in at once. This change formally abstracts the two existing backends, mtd and vpnor. With the backend abstraction in place, subsequent backends are easier to implement. This change is based of Evan's work and he retains authorship credit. I (AJ) have reworked the patch to pass the vpnor tests, refactored some parts to enable broader use of const structures and others to clarify the initialisation sequences. Due to the existing lack of abstraction the patch has unfortunately wide-ranging impacts. I've whittled it down as much as I consider reasonable. Change-Id: I29984a36dae4ea86ec00b853d2a756f0b9afb3ec Signed-off-by: Evan Lojewski <github@meklort.com> Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
* vpnor: Shuffle and rework includes for sanityAndrew Jeffery2019-03-151-9/+10
| | | | | | | | | | Include ordering and whether or not C linkage is forced by `extern "C"` blocks can cause headaches at link time. Ensure that all C dependencies are included in an `extern C` block before other includes occur. Also include the C++ versions of string.h and assert.h Change-Id: Ia96f6044d40c8eccb907b65924efcf62ac7a89c3 Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
* mboxd: Refactor and rename mbox.h to mboxd.hAndrew Jeffery2018-09-121-1/+1
| | | | | | | | | | | | Refine the purpose of the header file to represent what's required for the daemon itself, not its constituent pieces. Rather, split those definitions out to their respective header files and include them as necessary. Finally the header file is renamed to better reflect its purpose. Change-Id: I48c409f57d96c844589cd865b24f197477dfe87c Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
* flash: Rename write_flash to flash_writeAndrew Jeffery2018-09-051-1/+1
| | | | | Change-Id: I4b41aac597299c93369d8998b03a7d3e2a128742 Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
* flash: Drop __cplusplus guardAndrew Jeffery2018-09-051-0/+3
| | | | | | | C++ concepts should go in C++ files. Change-Id: I7d3b16c4d176b51fb8bcf976744312632322c2a8 Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
* mboxd: Rename flash filesAndrew Jeffery2018-09-051-1/+1
| | | | | Change-Id: Icfe9d61775a198c5a0f8227bf5d6c4b7f11aeec3 Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
* test: Move vpnor tests to vpnor directoryAndrew Jeffery2018-04-041-0/+50
In the spirit of things that are together should be kept together. The repository layout now better corresponds to upstream with the exception of the vpnor directory and some modifications to Makefile.am Change-Id: I16d59a3c9ee846065f6a8c83eb4459715d525f3f Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
OpenPOWER on IntegriCloud