xref: /linux/drivers/media/pci/bt8xx/btcx-risc.h (revision 1ac731c529cd4d6adbce134754b51ff7d822b145)
1*b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */
290ca8befSHans Verkuil struct btcx_riscmem {
390ca8befSHans Verkuil 	unsigned int   size;
490ca8befSHans Verkuil 	__le32         *cpu;
590ca8befSHans Verkuil 	__le32         *jmp;
690ca8befSHans Verkuil 	dma_addr_t     dma;
790ca8befSHans Verkuil };
890ca8befSHans Verkuil 
990ca8befSHans Verkuil struct btcx_skiplist {
1090ca8befSHans Verkuil 	int start;
1190ca8befSHans Verkuil 	int end;
1290ca8befSHans Verkuil };
1390ca8befSHans Verkuil 
1490ca8befSHans Verkuil int  btcx_riscmem_alloc(struct pci_dev *pci,
1590ca8befSHans Verkuil 			struct btcx_riscmem *risc,
1690ca8befSHans Verkuil 			unsigned int size);
1790ca8befSHans Verkuil void btcx_riscmem_free(struct pci_dev *pci,
1890ca8befSHans Verkuil 		       struct btcx_riscmem *risc);
19