Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 77779
b: refs/heads/master
c: 0f2c15c
h: refs/heads/master
i:
  77777: 43f6cc4
  77775: 9baed2d
v: v3
  • Loading branch information
Paul Mundt committed Jan 28, 2008
1 parent e4b15ce commit f3830ed
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 198 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: 1e1ed39faec635b109ff8c516377310600623674
refs/heads/master: 0f2c15cecee0ff00e4bfa91dd20b33ccd9285360
17 changes: 16 additions & 1 deletion trunk/include/asm-sh/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,8 @@ __BUILD_MEMORY_STRING(w, u16)

#define mmiowb() wmb() /* synco on SH-4A, otherwise a nop */

#define IO_SPACE_LIMIT 0xffffffff

/*
* This function provides a method for the generic case where a board-specific
* ioport_map simply needs to return the port + some arbitrary port base.
Expand Down Expand Up @@ -226,6 +228,11 @@ static inline unsigned int ctrl_inl(unsigned long addr)
return *(volatile unsigned long*)addr;
}

static inline unsigned long long ctrl_inq(unsigned long addr)
{
return *(volatile unsigned long long*)addr;
}

static inline void ctrl_outb(unsigned char b, unsigned long addr)
{
*(volatile unsigned char*)addr = b;
Expand All @@ -241,6 +248,11 @@ static inline void ctrl_outl(unsigned int b, unsigned long addr)
*(volatile unsigned long*)addr = b;
}

static inline void ctrl_outq(unsigned long long b, unsigned long addr)
{
*(volatile unsigned long long*)addr = b;
}

static inline void ctrl_delay(void)
{
#ifdef P2SEG
Expand All @@ -253,7 +265,10 @@ unsigned long long peek_real_address_q(unsigned long long addr);
unsigned long long poke_real_address_q(unsigned long long addr,
unsigned long long val);

#define IO_SPACE_LIMIT 0xffffffff
/* arch/sh/mm/ioremap_64.c */
unsigned long onchip_remap(unsigned long addr, unsigned long size,
const char *name);
extern void onchip_unmap(unsigned long vaddr);

#if !defined(CONFIG_MMU)
#define virt_to_phys(address) ((unsigned long)(address))
Expand Down
196 changes: 0 additions & 196 deletions trunk/include/asm-sh64/io.h

This file was deleted.

0 comments on commit f3830ed

Please sign in to comment.