// SPDX-License-Identifier: GPL-2.0-or-later /* * altera-comp.c * * altera FPGA driver * * Copyright (C) Altera Corporation 1998-2001 * Copyright (C) 2010 NetUP Inc. * Copyright (C) 2010 Igor M. Liplianin <[email protected]> */ #include <linux/kernel.h> #include "altera-exprt.h" #define SHORT_BITS … #define CHAR_BITS … #define DATA_BLOB_LENGTH … #define MATCH_DATA_LENGTH … #define ALTERA_REQUEST_SIZE … #define ALTERA_BUFFER_SIZE … static u32 altera_bits_req(u32 n) { … } static u32 altera_read_packed(u8 *buffer, u32 bits, u32 *bits_avail, u32 *in_index) { … } u32 altera_shrink(u8 *in, u32 in_length, u8 *out, u32 out_length, s32 version) { … }