Source
ret = devm_request_irq(dev, ir->irq, sunxi_ir_irq, 0, SUNXI_IR_DEV, ir);
/*
* Driver for Allwinner sunXi IR controller
*
* Copyright (C) 2014 Alexsey Shestacov <wingrime@linux-sunxi.org>
* Copyright (C) 2014 Alexander Bersenev <bay@hackerdom.ru>
*
* Based on sun5i-ir.c:
* Copyright (C) 2007-2012 Daniel Wang
* Allwinner Technology Co., Ltd. <www.allwinnertech.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
/* Registers */
/* IR Control */
/* Global Enable */
/* RX block enable */
/* CIR mode */
/* Rx Config */
/* Pulse Polarity Invert flag */
/* Rx Data */
/* Rx Interrupt Enable */
/* Rx FIFO Overflow */
/* Rx Packet End */
/* Rx FIFO Data Available */
/* Rx FIFO available byte level */
/* Rx Interrupt Status */
/* RX FIFO Get Available Counter */