Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 123211
b: refs/heads/master
c: 8ce7996
h: refs/heads/master
i:
  123209: db33803
  123207: 06490ce
v: v3
  • Loading branch information
Jeremy Fitzhardinge authored and Ingo Molnar committed Dec 17, 2008
1 parent b8dd148 commit 03bc77e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2e5b2b86b65fe36bb8401e5608eb0b7603aa1cab
refs/heads/master: 8ce7996009bab7b2d23e7af7ad831fed7eb6faa1
12 changes: 12 additions & 0 deletions trunk/arch/x86/kernel/pci-swiotlb_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
#include <linux/pci.h>
#include <linux/cache.h>
#include <linux/module.h>
#include <linux/swiotlb.h>
#include <linux/bootmem.h>
#include <linux/dma-mapping.h>

#include <asm/iommu.h>
Expand All @@ -11,6 +13,16 @@

int swiotlb __read_mostly;

void *swiotlb_alloc_boot(size_t size, unsigned long nslabs)
{
return alloc_bootmem_low_pages(size);
}

void *swiotlb_alloc(unsigned order, unsigned long nslabs)
{
return (void *)__get_free_pages(GFP_DMA | __GFP_NOWARN, order);
}

static dma_addr_t
swiotlb_map_single_phys(struct device *hwdev, phys_addr_t paddr, size_t size,
int direction)
Expand Down

0 comments on commit 03bc77e

Please sign in to comment.