/* FUNCTION: Allocate a common buffer for DMA ARGUMENTS: AdapterHandle: AdapterHandle Length: Number of bytes to allocate Cached: Whether or not the memory can be cached VirtualAddress: Pointer to memory is returned here PhysicalAddress: Physical address corresponding to virtual address  */
void RTMP_AllocateSharedMemory(struct rt_rtmp_adapter *pAd, unsigned long Length, IN BOOLEAN Cached, void **VirtualAddress, dma_addr_t *PhysicalAddress)
/* FUNCTION: Allocate a common buffer for DMA ARGUMENTS: AdapterHandle: AdapterHandle Length: Number of bytes to allocate Cached: Whether or not the memory can be cached VirtualAddress: Pointer to memory is returned here PhysicalAddress: Physical address corresponding to virtual address  */
void RTMP_AllocateSharedMemory(struct rt_rtmp_adapter *pAd, unsigned long Length, IN BOOLEAN Cached, void **VirtualAddress, dma_addr_t *PhysicalAddress)
{
	struct os_cookie *pObj = (struct os_cookie *)pAd->OS_Cookie;
	*VirtualAddress =
	    (void *)pci_alloc_consistent(pObj->pci_dev, sizeof(char) * Length,
					 PhysicalAddress);
}