--- zzzz-none-000/linux-4.9.279/drivers/misc/mei/hw-txe.h 2021-08-08 06:38:54.000000000 +0000 +++ puma7-atom-6591-750/linux-4.9.279/drivers/misc/mei/hw-txe.h 2023-02-08 11:43:42.000000000 +0000 @@ -21,6 +21,7 @@ #include "hw.h" #include "hw-txe-regs.h" +#include "mm-txe.h" #define MEI_TXI_RPM_TIMEOUT 500 /* ms */ @@ -53,6 +54,16 @@ wait_queue_head_t wait_aliveness_resp; unsigned long intr_cause; + + /** mei mm support */ + struct mei_mm_device *mdev; + + /** dma support */ + void *pool_vaddr; + dma_addr_t pool_paddr; + size_t pool_size; + + void (*pool_release)(struct mei_txe_hw *hw); }; #define to_txe_hw(dev) (struct mei_txe_hw *)((dev)->hw) @@ -71,5 +82,8 @@ int mei_txe_setup_satt2(struct mei_device *dev, phys_addr_t addr, u32 range); +int mei_txe_dma_setup(struct mei_device *dev); +void mei_txe_dma_unset(struct mei_device *dev); + #endif /* _MEI_HW_TXE_H_ */