History log of /external/libese/libese-hw/nxp/include/ese/hw/nxp/pn80t/common.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
8f367fc0e44ff19150608bae6e5742ae4d3d0fe2 31-Mar-2017 Will Drewry <wad@google.com> libese-hw: move transceive to scattergather

This change migrates hardware callbacks for transceive to a
scatter-gather interface, updates the tests, and adds specific tests for
ese_sg.

Additionally, a small amount of code reorganization is included, like
moving API to ESE_API and into sysdeps to reduce some duplicatation as
well as removing dead code (two sysdeps.h).

As the T=1 implementation already copies data during framing, it was
becoming ungainly to recopy data to frame APDUs which will then be
copied only to be reframed. This is especially true for extended APDUs
as the payloads may be up to 65k.

Change-Id: I37f586645965d32577f8b724dbe41c9041439887
Test: ese_replay still works (open channel, select, close channel)
Bug: 34467857
/external/libese/libese-hw/nxp/include/ese/hw/nxp/pn80t/common.h
8f83023a245a9739b003e2dfc129cec35c3f8f7e 13-Mar-2017 Will Drewry <wad@google.com> libese: clean up error messages

This added more granularity to error logging (verbose -> warning and
error as needed) as well as moving to C99 designated initializers
for T=1 and NXP hardware error messages.

Test: unit tests pass; hw tests pass; moving the device node yielded the
correct platform init error.
Bug: 35105409

Change-Id: I374f1a1e45862e6e28a230baabda78c4c525687d
/external/libese/libese-hw/nxp/include/ese/hw/nxp/pn80t/common.h
de2cad7a8c2718d22f23a72d30c6cf5bc27a35b5 10-Mar-2017 Will Drewry <wad@google.com> Clean up and refactor; new hw support

(Originally, https://android-review.googlesource.com/#/c/341550/)

This change addresses portability, a pn80t platform abstraction, and
nq-nci support.

Refactor/clean up:
- Adds darwin-sysdeps.c to help avoid reverting again.
- Clean up Android.bp
- T=1: moved T=1 to using bit_specs to keep some
of the readability of bitfields without incurring
weird toolchain side effects.
- T=1 will still rely on compilers keeping uchars
aligned and check it with a div-by-zero build
assertion.
- ESE platform specific methods are now wrapped.
- Adjusted error message constant usage.
- Enclosing {} for every if statement.
- Moved to relative headers for inclusion into other code
bases.
- Added a comment to log.h to make debugging easier globally
in libese code.

PN80T:
- Common code now shared across different
wire configurations.
- Add support for kernel based driver (called nq-nci)
which interacts with the nq-nci behavior for power
management.
- Added cooldown/end of session code to pn80t/common.c
- Migrated the ese_nxp_sample code to NQ_NCI and added the empty
session to test the cooldown code submission.

Bug: 34193473,35105409
Change-Id: I8fc320c8c236282ed103ef3ee3cb8c0dc99d8bcb
Test: unittests pass, tested ese-relay on hardware forwarding globalplatform pro
/external/libese/libese-hw/nxp/include/ese/hw/nxp/pn80t/common.h
4aa454a96f80ba674e3f887bc07520b5f5cfebe2 10-Mar-2017 Will Drewry <drewry@google.com> Revert "Clean up and refactor; new hw support"

This reverts commit ed4a7a70c0f8a69188aab74fecf65f9c31b1f57c.

Missed a darwin disable.

Change-Id: Ifa052cb6b6686d1e6c408f64dfd9b82b362048c0
/external/libese/libese-hw/nxp/include/ese/hw/nxp/pn80t/common.h
ed4a7a70c0f8a69188aab74fecf65f9c31b1f57c 10-Mar-2017 Will Drewry <wad@google.com> Clean up and refactor; new hw support

This change addresses portability, a pn80t platform abstraction, and
nq-nci support.

Refactor/clean up:
- Clean up Android.bp
- T=1: moved T=1 to using bit_specs to keep some
of the readability of bitfields without incurring
weird toolchain side effects.
- T=1 will still rely on compilers keeping uchars
aligned and check it with a div-by-zero build
assertion.
- ESE platform specific methods are now wrapped.
- Adjusted error message constant usage.
- Enclosing {} for every if statement.
- Moved to relative headers for inclusion into other code
bases.
- Added a comment to log.h to make debugging easier globally
in libese code.

PN80T:
- Common code now shared across different
wire configurations.
- Add support for kernel based driver (called nq-nci)
which interacts with the nq-nci behavior for power
management.
- Added cooldown/end of session code to pn80t/common.c
- Migrated the ese_nxp_sample code to NQ_NCI and added the empty
session to test the cooldown code submission.

Bug: 34193473,35105409
Test: unittests pass, tested ese-relay on hardware forwarding globalplatform pro
Change-Id: I82e8af9af7a560e558f9bb8423aceae61d902509
/external/libese/libese-hw/nxp/include/ese/hw/nxp/pn80t/common.h