diff options
Diffstat (limited to 'sound/pci/cmipci.c')
-rw-r--r-- | sound/pci/cmipci.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/sound/pci/cmipci.c b/sound/pci/cmipci.c index b4503385ea69..4725b4a010be 100644 --- a/sound/pci/cmipci.c +++ b/sound/pci/cmipci.c | |||
@@ -488,32 +488,34 @@ struct snd_stru_cmipci { | |||
488 | 488 | ||
489 | 489 | ||
490 | /* read/write operations for dword register */ | 490 | /* read/write operations for dword register */ |
491 | inline static void snd_cmipci_write(cmipci_t *cm, unsigned int cmd, unsigned int data) | 491 | static inline void snd_cmipci_write(cmipci_t *cm, unsigned int cmd, unsigned int data) |
492 | { | 492 | { |
493 | outl(data, cm->iobase + cmd); | 493 | outl(data, cm->iobase + cmd); |
494 | } | 494 | } |
495 | inline static unsigned int snd_cmipci_read(cmipci_t *cm, unsigned int cmd) | 495 | |
496 | static inline unsigned int snd_cmipci_read(cmipci_t *cm, unsigned int cmd) | ||
496 | { | 497 | { |
497 | return inl(cm->iobase + cmd); | 498 | return inl(cm->iobase + cmd); |
498 | } | 499 | } |
499 | 500 | ||
500 | /* read/write operations for word register */ | 501 | /* read/write operations for word register */ |
501 | inline static void snd_cmipci_write_w(cmipci_t *cm, unsigned int cmd, unsigned short data) | 502 | static inline void snd_cmipci_write_w(cmipci_t *cm, unsigned int cmd, unsigned short data) |
502 | { | 503 | { |
503 | outw(data, cm->iobase + cmd); | 504 | outw(data, cm->iobase + cmd); |
504 | } | 505 | } |
505 | inline static unsigned short snd_cmipci_read_w(cmipci_t *cm, unsigned int cmd) | 506 | |
507 | static inline unsigned short snd_cmipci_read_w(cmipci_t *cm, unsigned int cmd) | ||
506 | { | 508 | { |
507 | return inw(cm->iobase + cmd); | 509 | return inw(cm->iobase + cmd); |
508 | } | 510 | } |
509 | 511 | ||
510 | /* read/write operations for byte register */ | 512 | /* read/write operations for byte register */ |
511 | inline static void snd_cmipci_write_b(cmipci_t *cm, unsigned int cmd, unsigned char data) | 513 | static inline void snd_cmipci_write_b(cmipci_t *cm, unsigned int cmd, unsigned char data) |
512 | { | 514 | { |
513 | outb(data, cm->iobase + cmd); | 515 | outb(data, cm->iobase + cmd); |
514 | } | 516 | } |
515 | 517 | ||
516 | inline static unsigned char snd_cmipci_read_b(cmipci_t *cm, unsigned int cmd) | 518 | static inline unsigned char snd_cmipci_read_b(cmipci_t *cm, unsigned int cmd) |
517 | { | 519 | { |
518 | return inb(cm->iobase + cmd); | 520 | return inb(cm->iobase + cmd); |
519 | } | 521 | } |