hpi_internal.h (6ac1ef482d7ae0c690f1640bf6eb818ff9a2d91e) | hpi_internal.h (d5efccd5b6843c504042735c1e20d9252daefd98) |
---|---|
1/****************************************************************************** 2 3 AudioScience HPI driver | 1/****************************************************************************** 2 3 AudioScience HPI driver |
4 Copyright (C) 1997-2011 AudioScience Inc. <support@audioscience.com> | 4 Copyright (C) 1997-2012 AudioScience Inc. <support@audioscience.com> |
5 6 This program is free software; you can redistribute it and/or modify 7 it under the terms of version 2 of the GNU General Public License as 8 published by the Free Software Foundation; 9 10 This program is distributed in the hope that it will be useful, 11 but WITHOUT ANY WARRANTY; without even the implied warranty of 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- 24 unchanged lines hidden (view full) --- 37/** Allocate and map an area of locked memory for bus master DMA operations. 38 39On success, *pLockedMemeHandle is a valid handle, and 0 is returned 40On error *pLockedMemHandle marked invalid, non-zero returned. 41 42If this function succeeds, then HpiOs_LockedMem_GetVirtAddr() and 43HpiOs_LockedMem_GetPyhsAddr() will always succed on the returned handle. 44*/ | 5 6 This program is free software; you can redistribute it and/or modify 7 it under the terms of version 2 of the GNU General Public License as 8 published by the Free Software Foundation; 9 10 This program is distributed in the hope that it will be useful, 11 but WITHOUT ANY WARRANTY; without even the implied warranty of 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- 24 unchanged lines hidden (view full) --- 37/** Allocate and map an area of locked memory for bus master DMA operations. 38 39On success, *pLockedMemeHandle is a valid handle, and 0 is returned 40On error *pLockedMemHandle marked invalid, non-zero returned. 41 42If this function succeeds, then HpiOs_LockedMem_GetVirtAddr() and 43HpiOs_LockedMem_GetPyhsAddr() will always succed on the returned handle. 44*/ |
45int hpios_locked_mem_alloc(struct consistent_dma_area *p_locked_mem_handle, | 45u16 hpios_locked_mem_alloc(struct consistent_dma_area *p_locked_mem_handle, |
46 /**< memory handle */ 47 u32 size, /**< Size in bytes to allocate */ 48 struct pci_dev *p_os_reference 49 /**< OS specific data required for memory allocation */ 50 ); 51 52/** Free mapping and memory represented by LockedMemHandle 53 --- 1378 unchanged lines hidden --- | 46 /**< memory handle */ 47 u32 size, /**< Size in bytes to allocate */ 48 struct pci_dev *p_os_reference 49 /**< OS specific data required for memory allocation */ 50 ); 51 52/** Free mapping and memory represented by LockedMemHandle 53 --- 1378 unchanged lines hidden --- |