Commit a56f626b authored by Alexander Viro's avatar Alexander Viro Committed by Linus Torvalds

[PATCH] umem iomem and (partial) endianness annotations

Signed-off-by: default avatarAl Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent e5883559
...@@ -108,11 +108,11 @@ struct cardinfo { ...@@ -108,11 +108,11 @@ struct cardinfo {
int irq; int irq;
unsigned long csr_base; unsigned long csr_base;
unsigned char *csr_remap; unsigned char __iomem *csr_remap;
unsigned long csr_len; unsigned long csr_len;
#ifdef CONFIG_MM_MAP_MEMORY #ifdef CONFIG_MM_MAP_MEMORY
unsigned long mem_base; unsigned long mem_base;
unsigned char *mem_remap; unsigned char __iomem *mem_remap;
unsigned long mem_len; unsigned long mem_len;
#endif #endif
...@@ -926,7 +926,7 @@ static int __devinit mm_pci_probe(struct pci_dev *dev, const struct pci_device_i ...@@ -926,7 +926,7 @@ static int __devinit mm_pci_probe(struct pci_dev *dev, const struct pci_device_i
goto failed_req_mem; goto failed_req_mem;
} }
if (!(card->mem_remap = (unsigned char *)ioremap(card->mem_base, cards->mem_len))) { if (!(card->mem_remap = ioremap(card->mem_base, cards->mem_len))) {
printk(KERN_ERR "MM%d: Unable to remap memory region\n", card->card_number); printk(KERN_ERR "MM%d: Unable to remap memory region\n", card->card_number);
ret = -ENOMEM; ret = -ENOMEM;
...@@ -1107,12 +1107,12 @@ static int __devinit mm_pci_probe(struct pci_dev *dev, const struct pci_device_i ...@@ -1107,12 +1107,12 @@ static int __devinit mm_pci_probe(struct pci_dev *dev, const struct pci_device_i
card->mm_pages[1].page_dma); card->mm_pages[1].page_dma);
failed_magic: failed_magic:
#ifdef CONFIG_MM_MAP_MEMORY #ifdef CONFIG_MM_MAP_MEMORY
iounmap((void *) card->mem_remap); iounmap(card->mem_remap);
failed_remap_mem: failed_remap_mem:
release_mem_region(card->mem_base, card->mem_len); release_mem_region(card->mem_base, card->mem_len);
failed_req_mem: failed_req_mem:
#endif #endif
iounmap((void *) card->csr_remap); iounmap(card->csr_remap);
failed_remap_csr: failed_remap_csr:
release_mem_region(card->csr_base, card->csr_len); release_mem_region(card->csr_base, card->csr_len);
failed_req_csr: failed_req_csr:
......
...@@ -110,19 +110,19 @@ DMA READ OPERATIONS. ...@@ -110,19 +110,19 @@ DMA READ OPERATIONS.
#define DMA_WRITE_TO_HOST 1 #define DMA_WRITE_TO_HOST 1
struct mm_dma_desc { struct mm_dma_desc {
u64 pci_addr; __le64 pci_addr;
u64 local_addr; __le64 local_addr;
u32 transfer_size; __le32 transfer_size;
u32 zero1; u32 zero1;
u64 next_desc_addr; __le64 next_desc_addr;
u64 sem_addr; __le64 sem_addr;
u32 control_bits; __le32 control_bits;
u32 zero2; u32 zero2;
dma_addr_t data_dma_handle; dma_addr_t data_dma_handle;
/* Copy of the bits */ /* Copy of the bits */
u64 sem_control_bits; __le64 sem_control_bits;
} __attribute__((aligned(8))); } __attribute__((aligned(8)));
#define PCI_VENDOR_ID_MICRO_MEMORY 0x1332 #define PCI_VENDOR_ID_MICRO_MEMORY 0x1332
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment