/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2008, Creative Technology Ltd. All Rights Reserved. * * @File ctvmem.h * * @Brief * This file contains the definition of virtual memory management object * for card device. * * @Author Liu Chun * @Date Mar 28 2008 */ #ifndef CTVMEM_H #define CTVMEM_H #define CT_PTP_NUM … #include <linux/mutex.h> #include <linux/list.h> #include <linux/pci.h> #include <sound/memalloc.h> /* The chip can handle the page table of 4k pages * (emu20k1 can handle even 8k pages, but we don't use it right now) */ #define CT_PAGE_SIZE … #define CT_PAGE_SHIFT … #define CT_PAGE_MASK … #define CT_PAGE_ALIGN(addr) … struct ct_vm_block { … }; struct snd_pcm_substream; /* Virtual memory management object for card device */ struct ct_vm { … }; int ct_vm_create(struct ct_vm **rvm, struct pci_dev *pci); void ct_vm_destroy(struct ct_vm *vm); #endif /* CTVMEM_H */