Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 140045
b: refs/heads/master
c: c18b460
h: refs/heads/master
i:
  140043: 6f59dc0
v: v3
  • Loading branch information
Alexander Beregalov authored and Kyle McMartin committed Apr 2, 2009
1 parent b94b8e6 commit 972e783
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 15 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f67d3c83f3f1e6523325628434bf19e5166b39b3
refs/heads/master: c18b4608958ff42ce9a1a55b0a6f40b714f47286
2 changes: 1 addition & 1 deletion trunk/drivers/parisc/asp.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ static int __init asp_init_chip(struct parisc_device *dev)
asp.hpa = ASP_INTERRUPT_ADDR;

printk(KERN_INFO "%s version %d at 0x%lx found.\n",
asp.name, asp.version, dev->hpa.start);
asp.name, asp.version, (unsigned long)dev->hpa.start);

/* the IRQ ASP should use */
ret = -EBUSY;
Expand Down
16 changes: 8 additions & 8 deletions trunk/drivers/parisc/ccio-dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -406,8 +406,6 @@ ccio_alloc_range(struct ioc *ioc, struct device *dev, size_t size)
}
ioc->avg_search[ioc->avg_idx++] = cr_start;
ioc->avg_idx &= CCIO_SEARCH_SAMPLE - 1;
#endif
#ifdef CCIO_COLLECT_STATS
ioc->used_pages += pages_needed;
#endif
/*
Expand Down Expand Up @@ -453,10 +451,10 @@ ccio_free_range(struct ioc *ioc, dma_addr_t iova, unsigned long pages_mapped)
unsigned long mask = ~(~0UL >> pages_mapped);
CCIO_FREE_MAPPINGS(ioc, res_idx, mask, 8);
#else
CCIO_FREE_MAPPINGS(ioc, res_idx, 0xff, 8);
CCIO_FREE_MAPPINGS(ioc, res_idx, 0xffUL, 8);
#endif
} else if(pages_mapped <= 16) {
CCIO_FREE_MAPPINGS(ioc, res_idx, 0xffff, 16);
CCIO_FREE_MAPPINGS(ioc, res_idx, 0xffffUL, 16);
} else if(pages_mapped <= 32) {
CCIO_FREE_MAPPINGS(ioc, res_idx, ~(unsigned int)0, 32);
#ifdef __LP64__
Expand Down Expand Up @@ -1028,8 +1026,10 @@ static int ccio_proc_info(struct seq_file *m, void *p)

while (ioc != NULL) {
unsigned int total_pages = ioc->res_size << 3;
#ifdef CCIO_COLLECT_STATS
unsigned long avg = 0, min, max;
int j;
#endif

len += seq_printf(m, "%s\n", ioc->name);

Expand Down Expand Up @@ -1060,8 +1060,7 @@ static int ccio_proc_info(struct seq_file *m, void *p)
avg /= CCIO_SEARCH_SAMPLE;
len += seq_printf(m, " Bitmap search : %ld/%ld/%ld (min/avg/max CPU Cycles)\n",
min, avg, max);
#endif
#ifdef CCIO_COLLECT_STATS

len += seq_printf(m, "pci_map_single(): %8ld calls %8ld pages (avg %d/1000)\n",
ioc->msingle_calls, ioc->msingle_pages,
(int)((ioc->msingle_pages * 1000)/ioc->msingle_calls));
Expand Down Expand Up @@ -1400,7 +1399,7 @@ ccio_init_resource(struct resource *res, char *name, void __iomem *ioaddr)
result = insert_resource(&iomem_resource, res);
if (result < 0) {
printk(KERN_ERR "%s() failed to claim CCIO bus address space (%08lx,%08lx)\n",
__func__, res->start, res->end);
__func__, (unsigned long)res->start, (unsigned long)res->end);
}
}

Expand Down Expand Up @@ -1551,7 +1550,8 @@ static int __init ccio_probe(struct parisc_device *dev)

ioc->name = dev->id.hversion == U2_IOA_RUNWAY ? "U2" : "UTurn";

printk(KERN_INFO "Found %s at 0x%lx\n", ioc->name, dev->hpa.start);
printk(KERN_INFO "Found %s at 0x%lx\n", ioc->name,
(unsigned long)dev->hpa.start);

for (i = 0; i < ioc_count; i++) {
ioc_p = &(*ioc_p)->next;
Expand Down
7 changes: 5 additions & 2 deletions trunk/drivers/parisc/dino.c
Original file line number Diff line number Diff line change
Expand Up @@ -819,7 +819,9 @@ dino_bridge_init(struct dino_device *dino_dev, const char *name)

result = ccio_request_resource(dino_dev->hba.dev, &res[i]);
if (result < 0) {
printk(KERN_ERR "%s: failed to claim PCI Bus address space %d (0x%lx-0x%lx)!\n", name, i, res[i].start, res[i].end);
printk(KERN_ERR "%s: failed to claim PCI Bus address "
"space %d (0x%lx-0x%lx)!\n", name, i,
(unsigned long)res[i].start, (unsigned long)res[i].end);
return result;
}
}
Expand Down Expand Up @@ -899,7 +901,8 @@ static int __init dino_common_init(struct parisc_device *dev,
if (request_resource(&ioport_resource, res) < 0) {
printk(KERN_ERR "%s: request I/O Port region failed "
"0x%lx/%lx (hpa 0x%p)\n",
name, res->start, res->end, dino_dev->hba.base_addr);
name, (unsigned long)res->start, (unsigned long)res->end,
dino_dev->hba.base_addr);
return 1;
}

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/parisc/eisa.c
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ static int __init eisa_probe(struct parisc_device *dev)
char *name = is_mongoose(dev) ? "Mongoose" : "Wax";

printk(KERN_INFO "%s EISA Adapter found at 0x%08lx\n",
name, dev->hpa.start);
name, (unsigned long)dev->hpa.start);

eisa_dev.hba.dev = dev;
eisa_dev.hba.iommu = ccio_get_iommu(dev);
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/parisc/eisa_enumerator.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ static int configure_memory(const unsigned char *buf,
res->start = mem_parent->start + get_24(buf+len+2);
res->end = res->start + get_16(buf+len+5)*1024;
res->flags = IORESOURCE_MEM;
printk("memory %lx-%lx ", res->start, res->end);
printk("memory %lx-%lx ", (unsigned long)res->start, (unsigned long)res->end);
result = request_resource(mem_parent, res);
if (result < 0) {
printk("\n" KERN_ERR "EISA Enumerator: failed to claim EISA Bus address space!\n");
Expand Down Expand Up @@ -188,7 +188,7 @@ static int configure_port(const unsigned char *buf, struct resource *io_parent,
res->start = get_16(buf+len+1);
res->end = get_16(buf+len+1)+(c&HPEE_PORT_SIZE_MASK)+1;
res->flags = IORESOURCE_IO;
printk("ioports %lx-%lx ", res->start, res->end);
printk("ioports %lx-%lx ", (unsigned long)res->start, (unsigned long)res->end);
result = request_resource(io_parent, res);
if (result < 0) {
printk("\n" KERN_ERR "EISA Enumerator: failed to claim EISA Bus address space!\n");
Expand Down

0 comments on commit 972e783

Please sign in to comment.