[Skiboot] [PATCH 0/5] Update SET/GETFIELD, support nx-842

Dan Streetman ddstreet at ieee.org
Wed Feb 18 07:38:49 AEDT 2015


This patch set changes the SETFIELD() and GETFIELD() macros to no longer
require the user to specify the _LSH left shift value, since that can be
determined from the _MASK.  It also adds support for the nx-842
coprocessor.

--

Techinically, the field macro change isn't related to the nx-842 support.
But I'd like to get the nx-842 support in soon :-)  I can break this apart
if you'd prefer.

Sorry if you have got more than 1 copy of this, I don't think my mailer sent
it out to anyone the first time.


Dan Streetman (5):
  simplify GET/SETFIELD() use, add MASK_TO_LSH()
  Change user-defined _MASK/_LSH to just mask
  update users of GET/SETFIELD()
  change direct use of LSH to SETFIELD
  add nx-842 coproc support

 doc/device-tree/nx.txt |  47 +++++++++
 hw/Makefile.inc        |   3 +-
 hw/chiptod.c           |   3 +-
 hw/lpc.c               |  27 ++---
 hw/nx-842.c            | 212 +++++++++++++++++++++++++++++++++++++
 hw/nx-crypto.c         | 277 +++++++++++++++++++++++++++++++++++++++++++++++++
 hw/nx-rng.c            |  99 ++++++++++++++++++
 hw/nx.c                | 105 ++-----------------
 hw/p5ioc2-phb.c        |   7 +-
 hw/p5ioc2.c            |   2 +-
 hw/p7ioc-phb.c         |  14 +--
 hw/p8-i2c.c            |  47 +++------
 hw/phb3.c              |   8 +-
 hw/xscom.c             |  24 ++---
 include/bitutils.h     |  11 +-
 include/gx.h           |  18 ++--
 include/nx.h           | 151 +++++++++++++++++++++++++++
 include/p5ioc2-regs.h  |  51 +++------
 include/p7ioc-regs.h   | 135 ++++++++----------------
 include/pci-cfg.h      | 116 +++++++--------------
 include/phb3-regs.h    | 157 ++++++++++------------------
 include/processor.h    |  30 ++----
 include/psi.h          |   6 +-
 23 files changed, 1029 insertions(+), 521 deletions(-)
 create mode 100644 doc/device-tree/nx.txt
 create mode 100644 hw/nx-842.c
 create mode 100644 hw/nx-crypto.c
 create mode 100644 hw/nx-rng.c

-- 
1.8.3.1



More information about the Skiboot mailing list