Link: https://lore.kernel.org/r/20260217200002.683975158@linuxfoundation.org Tested-by: Florian Fainelli <florian.fainelli@broadcom.com> Tested-by: Takeshi Ogasawara <takeshi.ogasawara@futuring-girl.com> Tested-by: Peter Schneider <pschneider1968@googlemail.com> Tested-by: Jon Hunter <jonathanh@nvidia.com> Tested-by: Salvatore Bonaccorso <carnil@debian.org> Tested-by: Brett A C Sheffield <bacs@librecast.net> Tested-by: Mark Brown <broonie@kernel.org> Tested-by: Luna Jernberg <droidbittin@gmail.com> Tested-by: Ronald Warsow <rwarsow@gmx.de> Tested-by: Justin M. Forbes <jforbes@fedoraproject.org> Tested-by: Ron Economos <re@w6rz.net> Tested-by: Miguel Ojeda <ojeda@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
39 lines
699 B
C
39 lines
699 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
/*
|
|
* Copyright 2020 IBM Corp.
|
|
*
|
|
*/
|
|
#ifndef _NX_H
|
|
#define _NX_H
|
|
|
|
#include <stdbool.h>
|
|
|
|
#define NX_FUNC_COMP_842 1
|
|
#define NX_FUNC_COMP_GZIP 2
|
|
|
|
#ifndef __aligned
|
|
#define __aligned(x) __attribute__((aligned(x)))
|
|
#endif
|
|
|
|
struct nx842_func_args {
|
|
bool use_crc;
|
|
bool decompress; /* true decompress; false compress */
|
|
bool move_data;
|
|
int timeout; /* seconds */
|
|
};
|
|
|
|
struct nxbuf_t {
|
|
int len;
|
|
char *buf;
|
|
};
|
|
|
|
/* @function should be EFT (aka 842), GZIP etc */
|
|
void *nx_function_begin(int function, int pri);
|
|
|
|
int nx_function(void *handle, struct nxbuf_t *in, struct nxbuf_t *out,
|
|
void *arg);
|
|
|
|
int nx_function_end(void *handle);
|
|
|
|
#endif /* _NX_H */
|