123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235 |
- #ifndef __ADRENO_GEN8_HFI_H
- #define __ADRENO_GEN8_HFI_H
- #include "adreno_hfi.h"
- struct gen8_hfi {
-
- int irq;
-
- atomic_t seqnum;
-
- struct kgsl_memdesc *hfi_mem;
-
- struct hfi_bwtable_cmd bw_table;
-
- struct hfi_acd_table_cmd acd_table;
-
- spinlock_t cmdq_lock;
-
- unsigned long wb_set_record_bitmask[BITS_TO_LONGS(HFI_MAX_ID)];
- };
- struct gen8_gmu_device;
- irqreturn_t gen8_hfi_irq_handler(int irq, void *data);
- int gen8_hfi_start(struct adreno_device *adreno_dev);
- void gen8_hfi_stop(struct adreno_device *adreno_dev);
- int gen8_hfi_init(struct adreno_device *adreno_dev);
- struct gen8_hfi *to_gen8_hfi(struct adreno_device *adreno_dev);
- int gen8_hfi_queue_write(struct adreno_device *adreno_dev, u32 queue_idx,
- u32 *msg, u32 size_bytes);
- int gen8_hfi_queue_read(struct gen8_gmu_device *gmu, u32 queue_idx,
- u32 *output, u32 max_size);
- int gen8_receive_ack_cmd(struct gen8_gmu_device *gmu, void *rcvd,
- struct pending_cmd *ret_cmd);
- int gen8_hfi_send_feature_ctrl(struct adreno_device *adreno_dev,
- u32 feature, u32 enable, u32 data);
- int gen8_hfi_send_get_value(struct adreno_device *adreno_dev, u32 type, u32 subtype);
- int gen8_hfi_send_set_value(struct adreno_device *adreno_dev,
- u32 type, u32 subtype, u32 data);
- int gen8_hfi_send_core_fw_start(struct adreno_device *adreno_dev);
- int gen8_hfi_send_acd_feature_ctrl(struct adreno_device *adreno_dev);
- int gen8_hfi_send_generic_req(struct adreno_device *adreno_dev, void *cmd, u32 size_bytes);
- int gen8_hfi_send_generic_req_v5(struct adreno_device *adreno_dev, void *cmd,
- struct pending_cmd *ret_cmd, u32 size_bytes);
- int gen8_hfi_send_bcl_feature_ctrl(struct adreno_device *adreno_dev);
- int gen8_hfi_send_clx_feature_ctrl(struct adreno_device *adreno_dev);
- int gen8_hfi_send_ifpc_feature_ctrl(struct adreno_device *adreno_dev);
- int gen8_hfi_send_gpu_perf_table(struct adreno_device *adreno_dev);
- int gen8_hfi_process_queue(struct gen8_gmu_device *gmu,
- u32 queue_idx, struct pending_cmd *ret_cmd);
- int gen8_hfi_cmdq_write(struct adreno_device *adreno_dev, u32 *msg, u32 size_bytes);
- void adreno_gen8_receive_err_req(struct gen8_gmu_device *gmu, void *rcvd);
- void adreno_gen8_receive_debug_req(struct gen8_gmu_device *gmu, void *rcvd);
- #endif
|