[Pdbg] [PATCH v2 00/16] Cleanup old code

Alistair Popple alistair at popple.id.au
Wed Nov 7 16:39:27 AEDT 2018


This is a reposting of my last cleanup series rebased on top of
current upstream master. It also incorporates some older patches to
add a couple of API functions as these were also touched in the
clean-up. Some of these had review comments from Amitay and these
should have been addressed here.

Alistair Popple (15):
  libpdbg: Add api to get 32-bit device tree property
  libpdbg: fix a bug in get_class_target_addr
  libpdbg: Add API to get device tree path and find target via path
  libpdbg: Add indirect address translation via callback
  libpdbg: Add xbus hardware unit
  libpdbg: Remove unused code
  libpdbg: Make more declarations static
  libpdbg: Move property code into libpdbg/device.c
  libpdbg: Rename property functions
  libpdbg: Rework chip-id functions
  libpdbg: Rework target addressing
  libpdbg: Remove old dt_prop functions
  libpdbg: Rework target compatible
  libpdbg: Make dt_root private
  libpdbg: Remove device.h

Amitay Isaacs (1):
  build: Allow device tree headers to be generated in subdirs

 Makefile.am           |   8 +-
 generate_dt_header.sh |   5 +-
 libpdbg/bmcfsi.c      |  38 +++--
 libpdbg/cfam.c        |   6 +-
 libpdbg/device.c      | 463 ++++++++++++--------------------------------------
 libpdbg/device.h      | 228 -------------------------
 libpdbg/host.c        |   2 +-
 libpdbg/htm.c         |  12 +-
 libpdbg/i2c.c         |   7 +-
 libpdbg/libpdbg.c     |  74 +++-----
 libpdbg/libpdbg.h     |  34 +++-
 libpdbg/p8chip.c      |   6 +-
 libpdbg/p9chip.c      |   6 +-
 libpdbg/target.c      |  28 ++-
 libpdbg/target.h      |  13 +-
 libpdbg/xbus.c        |  62 +++++++
 src/htm.c             |   1 -
 src/main.c            |   4 +-
 18 files changed, 306 insertions(+), 691 deletions(-)
 delete mode 100644 libpdbg/device.h
 create mode 100644 libpdbg/xbus.c

--
2.11.0


More information about the Pdbg mailing list