linux/lib/842/842_decompress.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * 842 Software Decompression
 *
 * Copyright (C) 2015 Dan Streetman, IBM Corp
 *
 * See 842.h for details of the 842 compressed format.
 */

#define pr_fmt(fmt)
#define MODULE_NAME

#include "842.h"
#include "842_debugfs.h"

/* rolling fifo sizes */
#define I2_FIFO_SIZE
#define I4_FIFO_SIZE
#define I8_FIFO_SIZE

static u8 decomp_ops[OPS_MAX][4] =;

struct sw842_param {};

#define beN_to_cpu(d, s)

static int next_bits(struct sw842_param *p, u64 *d, u8 n);

static int __split_next_bits(struct sw842_param *p, u64 *d, u8 n, u8 s)
{}

static int next_bits(struct sw842_param *p, u64 *d, u8 n)
{}

static int do_data(struct sw842_param *p, u8 n)
{}

static int __do_index(struct sw842_param *p, u8 size, u8 bits, u64 fsize)
{}

static int do_index(struct sw842_param *p, u8 n)
{}

static int do_op(struct sw842_param *p, u8 o)
{}

/**
 * sw842_decompress
 *
 * Decompress the 842-compressed buffer of length @ilen at @in
 * to the output buffer @out, using no more than @olen bytes.
 *
 * The compressed buffer must be only a single 842-compressed buffer,
 * with the standard format described in the comments in 842.h
 * Processing will stop when the 842 "END" template is detected,
 * not the end of the buffer.
 *
 * Returns: 0 on success, error on failure.  The @olen parameter
 * will contain the number of output bytes written on success, or
 * 0 on error.
 */
int sw842_decompress(const u8 *in, unsigned int ilen,
		     u8 *out, unsigned int *olen)
{}
EXPORT_SYMBOL_GPL();

static int __init sw842_init(void)
{}
module_init();

static void __exit sw842_exit(void)
{}
module_exit(sw842_exit);

MODULE_LICENSE();
MODULE_DESCRIPTION();
MODULE_AUTHOR();