aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-22 13:18:06 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-22 13:18:06 -0400
commit21b7ef0c6c62a14bc8e1c8c0af4e1f0ba3a56d66 (patch)
tree71e53bd0464abd14d6b37c5b4487eaa438d46b65 /include
parent5c5d281a93e9816966b6131ccec19519dab0e103 (diff)
parentb179fb8ca57590eeb0a5d6c8dc99f91773f09c73 (diff)
Merge rsync://rsync.kernel.org/pub/scm/linux/kernel/git/davem/sparc-2.6.git
Diffstat (limited to 'include')
-rw-r--r--include/asm-sparc64/mostek.h6
-rw-r--r--include/asm-sparc64/pgtable.h5
2 files changed, 8 insertions, 3 deletions
diff --git a/include/asm-sparc64/mostek.h b/include/asm-sparc64/mostek.h
index ccf2f5f82d7f..1f9b1356a48e 100644
--- a/include/asm-sparc64/mostek.h
+++ b/include/asm-sparc64/mostek.h
@@ -38,7 +38,7 @@
38 * 38 *
39 * We now deal with physical addresses for I/O to the chip. -DaveM 39 * We now deal with physical addresses for I/O to the chip. -DaveM
40 */ 40 */
41static __inline__ u8 mostek_read(unsigned long addr) 41static __inline__ u8 mostek_read(void * __iomem addr)
42{ 42{
43 u8 ret; 43 u8 ret;
44 44
@@ -48,7 +48,7 @@ static __inline__ u8 mostek_read(unsigned long addr)
48 return ret; 48 return ret;
49} 49}
50 50
51static __inline__ void mostek_write(unsigned long addr, u8 val) 51static __inline__ void mostek_write(void * __iomem addr, u8 val)
52{ 52{
53 __asm__ __volatile__("stba %0, [%1] %2" 53 __asm__ __volatile__("stba %0, [%1] %2"
54 : /* no outputs */ 54 : /* no outputs */
@@ -67,7 +67,7 @@ static __inline__ void mostek_write(unsigned long addr, u8 val)
67#define MOSTEK_YEAR 0x07ffUL 67#define MOSTEK_YEAR 0x07ffUL
68 68
69extern spinlock_t mostek_lock; 69extern spinlock_t mostek_lock;
70extern unsigned long mstk48t02_regs; 70extern void *__iomem mstk48t02_regs;
71 71
72/* Control register values. */ 72/* Control register values. */
73#define MSTK_CREG_WRITE 0x80 /* Must set this before placing values. */ 73#define MSTK_CREG_WRITE 0x80 /* Must set this before placing values. */
diff --git a/include/asm-sparc64/pgtable.h b/include/asm-sparc64/pgtable.h
index af9bf175a223..ae2cd5b09a7c 100644
--- a/include/asm-sparc64/pgtable.h
+++ b/include/asm-sparc64/pgtable.h
@@ -416,6 +416,11 @@ extern int io_remap_pfn_range(struct vm_area_struct *vma, unsigned long from,
416 unsigned long pfn, 416 unsigned long pfn,
417 unsigned long size, pgprot_t prot); 417 unsigned long size, pgprot_t prot);
418 418
419/* Clear virtual and physical cachability, set side-effect bit. */
420#define pgprot_noncached(prot) \
421 (__pgprot((pgprot_val(prot) & ~(_PAGE_CP | _PAGE_CV)) | \
422 _PAGE_E))
423
419/* 424/*
420 * For sparc32&64, the pfn in io_remap_pfn_range() carries <iospace> in 425 * For sparc32&64, the pfn in io_remap_pfn_range() carries <iospace> in
421 * its high 4 bits. These macros/functions put it there or get it from there. 426 * its high 4 bits. These macros/functions put it there or get it from there.