diff options
Diffstat (limited to 'sys/pccard/pcic.c')
-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); |