Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 34126
b: refs/heads/master
c: caf8132
h: refs/heads/master
v: v3
  • Loading branch information
Stephen Rothwell authored and Paul Mackerras committed Sep 22, 2006
1 parent 91fa2a1 commit ed9627c
Show file tree
Hide file tree
Showing 5 changed files with 320 additions and 184 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: 7da8a2e5c1fd2ee513fdeac8d13c4f3623838fd0
refs/heads/master: caf81329c39b5c48f6cc0d78fa159b5a587e37f9
14 changes: 14 additions & 0 deletions trunk/arch/powerpc/kernel/io.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,16 @@
#include <linux/module.h>

#include <asm/io.h>
#include <asm/firmware.h>
#include <asm/bug.h>

void _insb(volatile u8 __iomem *port, void *buf, long count)
{
u8 *tbuf = buf;
u8 tmp;

BUG_ON(firmware_has_feature(FW_FEATURE_ISERIES));

if (unlikely(count <= 0))
return;
asm volatile("sync");
Expand All @@ -44,6 +48,8 @@ void _outsb(volatile u8 __iomem *port, const void *buf, long count)
{
const u8 *tbuf = buf;

BUG_ON(firmware_has_feature(FW_FEATURE_ISERIES));

if (unlikely(count <= 0))
return;
asm volatile("sync");
Expand All @@ -59,6 +65,8 @@ void _insw_ns(volatile u16 __iomem *port, void *buf, long count)
u16 *tbuf = buf;
u16 tmp;

BUG_ON(firmware_has_feature(FW_FEATURE_ISERIES));

if (unlikely(count <= 0))
return;
asm volatile("sync");
Expand All @@ -75,6 +83,8 @@ void _outsw_ns(volatile u16 __iomem *port, const void *buf, long count)
{
const u16 *tbuf = buf;

BUG_ON(firmware_has_feature(FW_FEATURE_ISERIES));

if (unlikely(count <= 0))
return;
asm volatile("sync");
Expand All @@ -90,6 +100,8 @@ void _insl_ns(volatile u32 __iomem *port, void *buf, long count)
u32 *tbuf = buf;
u32 tmp;

BUG_ON(firmware_has_feature(FW_FEATURE_ISERIES));

if (unlikely(count <= 0))
return;
asm volatile("sync");
Expand All @@ -106,6 +118,8 @@ void _outsl_ns(volatile u32 __iomem *port, const void *buf, long count)
{
const u32 *tbuf = buf;

BUG_ON(firmware_has_feature(FW_FEATURE_ISERIES));

if (unlikely(count <= 0))
return;
asm volatile("sync");
Expand Down
Loading

0 comments on commit ed9627c

Please sign in to comment.