Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 43384
b: refs/heads/master
c: 74af1c2
h: refs/heads/master
v: v3
  • Loading branch information
Russell King authored and Russell King committed Nov 30, 2006
1 parent f116e41 commit 5d0f4ba
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 28 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: 96b13f5c074fab56797109aedacc2405544d6f95
refs/heads/master: 74af1c227cf17caff3bb8c6547858655a473a39b
27 changes: 0 additions & 27 deletions trunk/include/asm-arm/arch-l7200/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,35 +17,8 @@
/*
* There are not real ISA nor PCI buses, so we fake it.
*/
#define __io_pci(a) ((void __iomem *)(PCIO_BASE + (a)))
#define __mem_pci(a) (a)

#define __ioaddr(p) __io_pci(p)

/*
* Generic virtual read/write
*/
#define __arch_getb(a) (*(volatile unsigned char *)(a))
#define __arch_getl(a) (*(volatile unsigned int *)(a))

static inline unsigned int __arch_getw(unsigned long a)
{
unsigned int value;
__asm__ __volatile__("ldrh %0, [%1, #0] @ getw"
: "=&r" (value)
: "r" (a) : "cc");
return value;
}

#define __arch_putb(v,a) (*(volatile unsigned char *)(a) = (v))
#define __arch_putl(v,a) (*(volatile unsigned int *)(a) = (v))

static inline void __arch_putw(unsigned int value, unsigned long a)
{
__asm__ __volatile__("strh %0, [%1, #0] @ putw"
: : "r" (value), "r" (a) : "cc");
}

/*
* Translated address IO functions
*
Expand Down

0 comments on commit 5d0f4ba

Please sign in to comment.