Rev 1430 | Rev 1963 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1430 | Rev 1631 | ||
---|---|---|---|
Line 28... | Line 28... | ||
28 | #include "drmP.h" |
28 | #include "drmP.h" |
29 | #include "radeon_drm.h" |
29 | #include "radeon_drm.h" |
30 | #include "radeon.h" |
30 | #include "radeon.h" |
31 | #include "radeon_reg.h" |
31 | #include "radeon_reg.h" |
Line -... | Line 32... | ||
- | 32 | ||
- | 33 | ||
- | 34 | static inline void * |
|
- | 35 | pci_alloc_consistent(struct pci_dev *hwdev, size_t size, |
|
- | 36 | addr_t *dma_handle) |
|
- | 37 | { |
|
- | 38 | ||
- | 39 | size = (size + 0x7FFF) & ~0x7FFF; |
|
- | 40 | ||
- | 41 | *dma_handle = AllocPages(size >> 12); |
|
- | 42 | return (void*)MapIoMem(*dma_handle, size, PG_SW+PG_NOCACHE); |
|
- | 43 | } |
|
32 | 44 | ||
33 | /* |
45 | /* |
34 | * Common GART table functions. |
46 | * Common GART table functions. |
35 | */ |
47 | */ |
36 | int radeon_gart_table_ram_alloc(struct radeon_device *rdev) |
48 | int radeon_gart_table_ram_alloc(struct radeon_device *rdev) |
Line 269... | Line 281... | ||
269 | kfree(rdev->gart.pages); |
281 | kfree(rdev->gart.pages); |
270 | kfree(rdev->gart.pages_addr); |
282 | kfree(rdev->gart.pages_addr); |
271 | rdev->gart.pages = NULL; |
283 | rdev->gart.pages = NULL; |
272 | rdev->gart.pages_addr = NULL; |
284 | rdev->gart.pages_addr = NULL; |
273 | }>>>>>>>> |
285 | }>>>>>>>> |
- | 286 | ||
- | 287 |