mirror of
https://github.com/patjak/facetimehd.git
synced 2026-04-09 11:02:31 +02:00
facetimehd: don't access __iomem directly
This commit is contained in:
@@ -45,6 +45,7 @@ struct dma_descriptor_list {
|
||||
u32 field0;
|
||||
u32 count;
|
||||
struct dma_descriptor desc[4];
|
||||
char unknown[216];
|
||||
} __attribute__((packed));
|
||||
|
||||
struct iommu_obj {
|
||||
@@ -56,7 +57,7 @@ struct iommu_obj {
|
||||
struct fthd_plane {
|
||||
u8 *virt;
|
||||
u64 phys;
|
||||
dma_addr_t dma;
|
||||
dma_addr_t dma;
|
||||
int len;
|
||||
struct iommu_obj *iommu;
|
||||
};
|
||||
@@ -66,7 +67,7 @@ struct h2t_buf_ctx {
|
||||
struct vb2_buffer *vb;
|
||||
struct iommu_obj *plane[4];
|
||||
struct isp_mem_obj *dma_desc_obj;
|
||||
struct dma_descriptor_list *dma_desc_list;
|
||||
struct dma_descriptor_list dma_desc_list;
|
||||
/* waitqueue for signaling buffer completion */
|
||||
wait_queue_head_t wq;
|
||||
int done;
|
||||
@@ -75,8 +76,8 @@ struct h2t_buf_ctx {
|
||||
extern int setup_buffers(struct fthd_private *dev_priv);
|
||||
extern int fthd_buffer_init(struct fthd_private *dev_priv);
|
||||
extern void fthd_buffer_exit(struct fthd_private *dev_priv);
|
||||
extern void fthd_buffer_return_handler(struct fthd_private *dev_priv, struct dma_descriptor_list *list, int size);
|
||||
extern void fthd_buffer_queued_handler(struct fthd_private *dev_priv, struct dma_descriptor_list *list);
|
||||
extern void fthd_buffer_return_handler(struct fthd_private *dev_priv, u32 offset, int size);
|
||||
extern void fthd_buffer_queued_handler(struct fthd_private *dev_priv, u32 offset);
|
||||
extern struct iommu_obj *iommu_allocate_sgtable(struct fthd_private *dev_priv, struct sg_table *);
|
||||
extern void iommu_free(struct fthd_private *dev_priv, struct iommu_obj *obj);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user