842.h (01b944fe1cd4e21a2a9ed51adbdbafe2d5e905ba) | 842.h (ea0b3984c1cc8b28de27a3bec285102b4e366a4c) |
---|---|
1 2#ifndef __842_H__ 3#define __842_H__ 4 5/* The 842 compressed format is made up of multiple blocks, each of 6 * which have the format: 7 * 8 * <template>[arg1][arg2][arg3][arg4] --- 62 unchanged lines hidden (view full) --- 71 * After all actions for each operation code are processed, another template 72 * code is in the next 5 bits. The decompression ends once the "end" template 73 * code is detected. 74 */ 75 76#include <linux/module.h> 77#include <linux/kernel.h> 78#include <linux/bitops.h> | 1 2#ifndef __842_H__ 3#define __842_H__ 4 5/* The 842 compressed format is made up of multiple blocks, each of 6 * which have the format: 7 * 8 * <template>[arg1][arg2][arg3][arg4] --- 62 unchanged lines hidden (view full) --- 71 * After all actions for each operation code are processed, another template 72 * code is in the next 5 bits. The decompression ends once the "end" template 73 * code is detected. 74 */ 75 76#include <linux/module.h> 77#include <linux/kernel.h> 78#include <linux/bitops.h> |
79#include <linux/crc32.h> |
|
79#include <asm/unaligned.h> 80 81#include <linux/sw842.h> 82 83/* special templates */ 84#define OP_REPEAT (0x1B) 85#define OP_ZEROS (0x1C) 86#define OP_END (0x1E) --- 6 unchanged lines hidden (view full) --- 93 94/* additional bits of each op param */ 95#define OP_BITS (5) 96#define REPEAT_BITS (6) 97#define SHORT_DATA_BITS (3) 98#define I2_BITS (8) 99#define I4_BITS (9) 100#define I8_BITS (8) | 80#include <asm/unaligned.h> 81 82#include <linux/sw842.h> 83 84/* special templates */ 85#define OP_REPEAT (0x1B) 86#define OP_ZEROS (0x1C) 87#define OP_END (0x1E) --- 6 unchanged lines hidden (view full) --- 94 95/* additional bits of each op param */ 96#define OP_BITS (5) 97#define REPEAT_BITS (6) 98#define SHORT_DATA_BITS (3) 99#define I2_BITS (8) 100#define I4_BITS (9) 101#define I8_BITS (8) |
102#define CRC_BITS (32) |
|
101 102#define REPEAT_BITS_MAX (0x3f) 103#define SHORT_DATA_BITS_MAX (0x7) 104 105/* Arbitrary values used to indicate action */ 106#define OP_ACTION (0x70) 107#define OP_ACTION_INDEX (0x10) 108#define OP_ACTION_DATA (0x20) --- 19 unchanged lines hidden --- | 103 104#define REPEAT_BITS_MAX (0x3f) 105#define SHORT_DATA_BITS_MAX (0x7) 106 107/* Arbitrary values used to indicate action */ 108#define OP_ACTION (0x70) 109#define OP_ACTION_INDEX (0x10) 110#define OP_ACTION_DATA (0x20) --- 19 unchanged lines hidden --- |