Lines 2816-2825
Link Here
|
2816 |
#ifdef FGL |
2816 |
#ifdef FGL |
2817 |
struct _agp_memory* __ke_agp_allocate_memory_phys_list(__ke_size_t pages, unsigned long type, unsigned long * phys_addr) |
2817 |
struct _agp_memory* __ke_agp_allocate_memory_phys_list(__ke_size_t pages, unsigned long type, unsigned long * phys_addr) |
2818 |
{ |
2818 |
{ |
2819 |
#if 0 |
2819 |
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,4,0) |
2820 |
#ifdef __AGP__ |
2820 |
#ifdef __AGP__ |
2821 |
if (AGP_AVAILABLE(allocate_memory_phys_list)) |
2821 |
if (AGP_AVAILABLE(allocate_memory)) { |
2822 |
return AGP_FUNC(allocate_memory_phys_list)(pages, type, phys_addr); |
2822 |
int i; |
|
|
2823 |
struct _agp_memory* newmem = AGP_FUNC(allocate_memory)(pages, type); |
2824 |
|
2825 |
if (newmem) { |
2826 |
/* convert/copy the pysical adresses into the "new" agp_memory table */ |
2827 |
for (i = 0; i < pages; i++) { |
2828 |
phys_addr[i] = newmem->memory[i]; |
2829 |
} |
2830 |
} |
2831 |
|
2832 |
return newmem; |
2833 |
} |
2823 |
#endif /* __AGP__ */ |
2834 |
#endif /* __AGP__ */ |
2824 |
#endif |
2835 |
#endif |
2825 |
if (firegl_agp) |
2836 |
if (firegl_agp) |