diff options
author | bde <bde@FreeBSD.org> | 1998-04-15 17:47:40 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1998-04-15 17:47:40 +0000 |
commit | b598f559b2947bb9582b53221185bb27d86cd68f (patch) | |
tree | f0a3b1121a7c68f5b6b630a3981fb3a4fbbc9c43 /sys/pccard | |
parent | 37b60f29dd0d528b8bc950b0b559f304b73db9ec (diff) | |
download | FreeBSD-src-b598f559b2947bb9582b53221185bb27d86cd68f.zip FreeBSD-src-b598f559b2947bb9582b53221185bb27d86cd68f.tar.gz |
Support compiling with `gcc -ansi'.
Diffstat (limited to 'sys/pccard')
-rw-r--r-- | sys/pccard/pcic.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/pccard/pcic.c b/sys/pccard/pcic.c index 03deeb9..04efe59 100644 --- a/sys/pccard/pcic.c +++ b/sys/pccard/pcic.c @@ -100,14 +100,14 @@ static struct slot_ctrl cinfo; /* * Read a register from the PCIC. */ -static inline unsigned char +static __inline unsigned char getb1(struct pcic_slot *sp, int reg) { outb(sp->index, sp->offset + reg); return inb(sp->data); } -static inline unsigned char +static __inline unsigned char getb2(struct pcic_slot *sp, int reg) { return (sp->regs[reg]); @@ -116,14 +116,14 @@ getb2(struct pcic_slot *sp, int reg) /* * Write a register on the PCIC */ -static inline void +static __inline void putb1(struct pcic_slot *sp, int reg, unsigned char val) { outb(sp->index, sp->offset + reg); outb(sp->data, val); } -static inline void +static __inline void putb2(struct pcic_slot *sp, int reg, unsigned char val) { sp->regs[reg] = val; @@ -132,7 +132,7 @@ putb2(struct pcic_slot *sp, int reg, unsigned char val) /* * Clear bit(s) of a register. */ -static inline void +static __inline void clrb(struct pcic_slot *sp, int reg, unsigned char mask) { sp->putb(sp, reg, sp->getb(sp, reg) & ~mask); @@ -141,7 +141,7 @@ clrb(struct pcic_slot *sp, int reg, unsigned char mask) /* * Set bit(s) of a register */ -static inline void +static __inline void setb(struct pcic_slot *sp, int reg, unsigned char mask) { sp->putb(sp, reg, sp->getb(sp, reg) | mask); @@ -150,7 +150,7 @@ setb(struct pcic_slot *sp, int reg, unsigned char mask) /* * Write a 16 bit value to 2 adjacent PCIC registers */ -static inline void +static __inline void putw(struct pcic_slot *sp, int reg, unsigned short word) { sp->putb(sp, reg, word & 0xFF); |