Subversion Repositories Kolibri OS

Rev

Rev 6321 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6321 Rev 6661
Line 27... Line 27...
27
 */
27
 */
28
#include 
28
#include 
29
#include 
29
#include 
30
#include "radeon.h"
30
#include "radeon.h"
Line 31... Line -...
31
 
-
 
32
#undef CONFIG_X86
-
 
33
void* pci_alloc_consistent(struct pci_dev *hwdev, size_t size,
-
 
34
                      addr_t *dma_handle)
-
 
35
{
-
 
36
 
-
 
37
    size = (size + 0x7FFF) & ~0x7FFF;
-
 
38
 
-
 
39
    *dma_handle = AllocPages(size >> 12);
-
 
40
    return (void*)MapIoMem(*dma_handle, size, PG_SW+PG_NOCACHE);
-
 
41
}
-
 
42
 
31
 
43
/*
32
/*
44
 * GART
33
 * GART
45
 * The GART (Graphics Aperture Remapping Table) is an aperture
34
 * The GART (Graphics Aperture Remapping Table) is an aperture
46
 * in the GPU's address space.  System pages can be mapped into
35
 * in the GPU's address space.  System pages can be mapped into