-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathaml_dvb_reg.h
46 lines (37 loc) · 1.41 KB
/
aml_dvb_reg.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/*
* 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 "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(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)
#endif