| /* |
| * drivers/amlogic/dvb_tv/dvb_reg.h |
| * |
| * Copyright (C) 2015 Amlogic, Inc. All rights reserved. |
| * |
| * 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. |
| * |
| */ |
| |
| #ifndef _DVB_REG_H_ |
| #define _DVB_REG_H_ |
| |
| //#include <linux/amlogic/iomap.h> |
| #include <linux/amlogic/media/registers/register_map.h> |
| //#include <linux/amlogic/media/registers/cpu_version.h> |
| |
| #define ID_STB_CBUS_BASE 0 |
| #define ID_SMARTCARD_REG_BASE 1 |
| #define ID_ASYNC_FIFO_REG_BASE 2 |
| #define ID_ASYNC_FIFO1_REG_BASE 3 |
| #define ID_ASYNC_FIFO2_REG_BASE 4 |
| #define ID_RESET_BASE 5 |
| #define ID_PARSER_SUB_START_PTR_BASE 6 |
| |
| long aml_stb_get_base(int id); |
| #include "c_stb_define.h" |
| #include "c_stb_regs_define.h" |
| |
| #define WRITE_MPEG_REG(_r, _v) aml_write_cbus(_r, _v) |
| #define READ_MPEG_REG(_r) aml_read_cbus(_r) |
| |
| #define WRITE_CBUS_REG(_r, _v) aml_write_cbus(_r, _v) |
| #define READ_CBUS_REG(_r) aml_read_cbus(_r) |
| |
| #define WRITE_VCBUS_REG(_r, _v) aml_write_vcbus(_r, _v) |
| #define READ_VCBUS_REG(_r) aml_read_vcbus(_r) |
| |
| #define BASE_IRQ 32 |
| #define AM_IRQ(reg) (reg + BASE_IRQ) |
| #define INT_DEMUX AM_IRQ(23) |
| #define INT_DEMUX_1 AM_IRQ(5) |
| #define INT_DEMUX_2 AM_IRQ(21) //AM_IRQ(53) |
| #define INT_ASYNC_FIFO_FILL AM_IRQ(18) |
| #define INT_ASYNC_FIFO_FLUSH AM_IRQ(19) |
| #define INT_ASYNC_FIFO2_FILL AM_IRQ(24) |
| #define INT_ASYNC_FIFO2_FLUSH AM_IRQ(25) |
| |
| #define INT_ASYNC_FIFO3_FLUSH AM_IRQ(17) |
| #endif |
| |