0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033
0034
0035
0036
0037
0038
0039 #ifndef HOST1X_HW_HOST1X04_CHANNEL_H
0040 #define HOST1X_HW_HOST1X04_CHANNEL_H
0041
0042 static inline u32 host1x_channel_fifostat_r(void)
0043 {
0044 return 0x0;
0045 }
0046 #define HOST1X_CHANNEL_FIFOSTAT \
0047 host1x_channel_fifostat_r()
0048 static inline u32 host1x_channel_fifostat_cfempty_v(u32 r)
0049 {
0050 return (r >> 11) & 0x1;
0051 }
0052 #define HOST1X_CHANNEL_FIFOSTAT_CFEMPTY_V(r) \
0053 host1x_channel_fifostat_cfempty_v(r)
0054 static inline u32 host1x_channel_dmastart_r(void)
0055 {
0056 return 0x14;
0057 }
0058 #define HOST1X_CHANNEL_DMASTART \
0059 host1x_channel_dmastart_r()
0060 static inline u32 host1x_channel_dmaput_r(void)
0061 {
0062 return 0x18;
0063 }
0064 #define HOST1X_CHANNEL_DMAPUT \
0065 host1x_channel_dmaput_r()
0066 static inline u32 host1x_channel_dmaget_r(void)
0067 {
0068 return 0x1c;
0069 }
0070 #define HOST1X_CHANNEL_DMAGET \
0071 host1x_channel_dmaget_r()
0072 static inline u32 host1x_channel_dmaend_r(void)
0073 {
0074 return 0x20;
0075 }
0076 #define HOST1X_CHANNEL_DMAEND \
0077 host1x_channel_dmaend_r()
0078 static inline u32 host1x_channel_dmactrl_r(void)
0079 {
0080 return 0x24;
0081 }
0082 #define HOST1X_CHANNEL_DMACTRL \
0083 host1x_channel_dmactrl_r()
0084 static inline u32 host1x_channel_dmactrl_dmastop(void)
0085 {
0086 return 1 << 0;
0087 }
0088 #define HOST1X_CHANNEL_DMACTRL_DMASTOP \
0089 host1x_channel_dmactrl_dmastop()
0090 static inline u32 host1x_channel_dmactrl_dmastop_v(u32 r)
0091 {
0092 return (r >> 0) & 0x1;
0093 }
0094 #define HOST1X_CHANNEL_DMACTRL_DMASTOP_V(r) \
0095 host1x_channel_dmactrl_dmastop_v(r)
0096 static inline u32 host1x_channel_dmactrl_dmagetrst(void)
0097 {
0098 return 1 << 1;
0099 }
0100 #define HOST1X_CHANNEL_DMACTRL_DMAGETRST \
0101 host1x_channel_dmactrl_dmagetrst()
0102 static inline u32 host1x_channel_dmactrl_dmainitget(void)
0103 {
0104 return 1 << 2;
0105 }
0106 #define HOST1X_CHANNEL_DMACTRL_DMAINITGET \
0107 host1x_channel_dmactrl_dmainitget()
0108 static inline u32 host1x_channel_channelctrl_r(void)
0109 {
0110 return 0x98;
0111 }
0112 #define HOST1X_CHANNEL_CHANNELCTRL \
0113 host1x_channel_channelctrl_r()
0114 static inline u32 host1x_channel_channelctrl_kernel_filter_gbuffer_f(u32 v)
0115 {
0116 return (v & 0x1) << 2;
0117 }
0118 #define HOST1X_CHANNEL_CHANNELCTRL_KERNEL_FILTER_GBUFFER(v) \
0119 host1x_channel_channelctrl_kernel_filter_gbuffer_f(v)
0120
0121 #endif