On 1/19/2017 1:23 PM, Hemant Agrawal wrote: > QBMAN, is a hardware block which interfaces with the other > accelerating hardware blocks (For e.g., WRIOP) on NXP's DPAA2 > SoC for queue, buffer and packet scheduling. > > This patch introduces a userspace driver for interfacing with > the QBMAN hw block. > > The qbman-portal component provides APIs to do the low level > hardware bit twiddling for operations such as: > -initializing Qman software portals > -building and sending portal commands > -portal interrupt configuration and processing > > This same/similar code is used in kernel and compat file is used > to make it working in user space. > > Signed-off-by: Geoff Thorpe <geoff.tho...@nxp.com> > Signed-off-by: Roy Pledge <roy.ple...@nxp.com> > Signed-off-by: Hemant Agrawal <hemant.agra...@nxp.com> > ---
<...> > diff --git a/drivers/common/dpaa2/qbman/include/compat.h > b/drivers/common/dpaa2/qbman/include/compat.h > new file mode 100644 > index 0000000..d321cc6 > --- /dev/null > +++ b/drivers/common/dpaa2/qbman/include/compat.h > @@ -0,0 +1,403 @@ > +/* Copyright (c) 2008-2016 Freescale Semiconductor, Inc. > + * All rights reserved. Should this say "# BSD LICENSE" ? As in other file comments.. There are multiple this kind of usage. > + * > + * Redistribution and use in source and binary forms, with or without > + * modification, are permitted provided that the following conditions are > met: > + * * Redistributions of source code must retain the above copyright > + * notice, this list of conditions and the following disclaimer. > + * * Redistributions in binary form must reproduce the above copyright > + * notice, this list of conditions and the following disclaimer in the > + * documentation and/or other materials provided with the distribution. > + * * Neither the name of Freescale Semiconductor nor the > + * names of its contributors may be used to endorse or promote products > + * derived from this software without specific prior written permission. > + * <...>