linux/drivers/media/rc/ir-sony-decoder.c

// SPDX-License-Identifier: GPL-2.0-only
/* ir-sony-decoder.c - handle Sony IR Pulse/Space protocol
 *
 * Copyright (C) 2010 by David Härdeman <[email protected]>
 */

#include <linux/bitrev.h>
#include <linux/module.h>
#include "rc-core-priv.h"

#define SONY_UNIT
#define SONY_HEADER_PULSE
#define SONY_HEADER_SPACE
#define SONY_BIT_0_PULSE
#define SONY_BIT_1_PULSE
#define SONY_BIT_SPACE
#define SONY_TRAILER_SPACE

enum sony_state {};

/**
 * ir_sony_decode() - Decode one Sony pulse or space
 * @dev:	the struct rc_dev descriptor of the device
 * @ev:         the struct ir_raw_event descriptor of the pulse/space
 *
 * This function returns -EINVAL if the pulse violates the state machine
 */
static int ir_sony_decode(struct rc_dev *dev, struct ir_raw_event ev)
{}

static const struct ir_raw_timings_pl ir_sony_timings =;

/**
 * ir_sony_encode() - Encode a scancode as a stream of raw events
 *
 * @protocol:	protocol to encode
 * @scancode:	scancode to encode
 * @events:	array of raw ir events to write into
 * @max:	maximum size of @events
 *
 * Returns:	The number of events written.
 *		-ENOBUFS if there isn't enough space in the array to fit the
 *		encoding. In this case all @max events will have been written.
 */
static int ir_sony_encode(enum rc_proto protocol, u32 scancode,
			  struct ir_raw_event *events, unsigned int max)
{}

static struct ir_raw_handler sony_handler =;

static int __init ir_sony_decode_init(void)
{}

static void __exit ir_sony_decode_exit(void)
{}

module_init();
module_exit(ir_sony_decode_exit);

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