summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/pcic.h
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-04-15 17:47:40 +0000
committerbde <bde@FreeBSD.org>1998-04-15 17:47:40 +0000
commitb598f559b2947bb9582b53221185bb27d86cd68f (patch)
treef0a3b1121a7c68f5b6b630a3981fb3a4fbbc9c43 /sys/i386/isa/pcic.h
parent37b60f29dd0d528b8bc950b0b559f304b73db9ec (diff)
downloadFreeBSD-src-b598f559b2947bb9582b53221185bb27d86cd68f.zip
FreeBSD-src-b598f559b2947bb9582b53221185bb27d86cd68f.tar.gz
Support compiling with `gcc -ansi'.
Diffstat (limited to 'sys/i386/isa/pcic.h')
-rw-r--r--sys/i386/isa/pcic.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/i386/isa/pcic.h b/sys/i386/isa/pcic.h
index 055c5d8..e5f3c58 100644
--- a/sys/i386/isa/pcic.h
+++ b/sys/i386/isa/pcic.h
@@ -125,7 +125,7 @@ enum memtype { COMMON, ATTRIBUTE };
/*
* read a byte from a pcic register for a particular slot
*/
-static inline unsigned char
+static __inline unsigned char
pcic_getb (int slot, int reg)
{
outb (INDEX(slot), OFFSET (slot) + reg);
@@ -135,7 +135,7 @@ pcic_getb (int slot, int reg)
/*
* write a byte to a pcic register for a particular slot
*/
-static inline void
+static __inline void
pcic_putb (int slot, int reg, unsigned char val)
{
outb (INDEX(slot), OFFSET (slot) + reg);
@@ -145,7 +145,7 @@ pcic_putb (int slot, int reg, unsigned char val)
/*
* read a word from a pcic register for a particular slot
*/
-static inline unsigned short
+static __inline unsigned short
pcic_getw (int slot, int reg)
{
return pcic_getb (slot, reg) | (pcic_getb (slot, reg+1) << 8);
@@ -154,7 +154,7 @@ pcic_getw (int slot, int reg)
/*
* write a word to a pcic register at a particular slot
*/
-static inline void
+static __inline void
pcic_putw (int slot, int reg, unsigned short val)
{
pcic_putb (slot, reg, val & 0xff);
OpenPOWER on IntegriCloud