maestro3.c (d2f6409584e2c62ffad81690562330ff3bf4a458) | maestro3.c (77933d7276ee8fa0e2947641941a6f7a100a327b) |
---|---|
1/* 2 * Driver for ESS Maestro3/Allegro (ES1988) soundcards. 3 * Copyright (c) 2000 by Zach Brown <zab@zabbo.net> 4 * Takashi Iwai <tiwai@suse.de> 5 * 6 * Most of the hardware init stuffs are based on maestro3 driver for 7 * OSS/Free by Zach Brown. Many thanks to Zach! 8 * --- 1041 unchanged lines hidden (view full) --- 1050 * lowlevel functions 1051 */ 1052 1053#define big_mdelay(msec) do {\ 1054 set_current_state(TASK_UNINTERRUPTIBLE);\ 1055 schedule_timeout(((msec) * HZ) / 1000);\ 1056} while (0) 1057 | 1/* 2 * Driver for ESS Maestro3/Allegro (ES1988) soundcards. 3 * Copyright (c) 2000 by Zach Brown <zab@zabbo.net> 4 * Takashi Iwai <tiwai@suse.de> 5 * 6 * Most of the hardware init stuffs are based on maestro3 driver for 7 * OSS/Free by Zach Brown. Many thanks to Zach! 8 * --- 1041 unchanged lines hidden (view full) --- 1050 * lowlevel functions 1051 */ 1052 1053#define big_mdelay(msec) do {\ 1054 set_current_state(TASK_UNINTERRUPTIBLE);\ 1055 schedule_timeout(((msec) * HZ) / 1000);\ 1056} while (0) 1057 |
1058inline static void snd_m3_outw(m3_t *chip, u16 value, unsigned long reg) | 1058static inline void snd_m3_outw(m3_t *chip, u16 value, unsigned long reg) |
1059{ 1060 outw(value, chip->iobase + reg); 1061} 1062 | 1059{ 1060 outw(value, chip->iobase + reg); 1061} 1062 |
1063inline static u16 snd_m3_inw(m3_t *chip, unsigned long reg) | 1063static inline u16 snd_m3_inw(m3_t *chip, unsigned long reg) |
1064{ 1065 return inw(chip->iobase + reg); 1066} 1067 | 1064{ 1065 return inw(chip->iobase + reg); 1066} 1067 |
1068inline static void snd_m3_outb(m3_t *chip, u8 value, unsigned long reg) | 1068static inline void snd_m3_outb(m3_t *chip, u8 value, unsigned long reg) |
1069{ 1070 outb(value, chip->iobase + reg); 1071} 1072 | 1069{ 1070 outb(value, chip->iobase + reg); 1071} 1072 |
1073inline static u8 snd_m3_inb(m3_t *chip, unsigned long reg) | 1073static inline u8 snd_m3_inb(m3_t *chip, unsigned long reg) |
1074{ 1075 return inb(chip->iobase + reg); 1076} 1077 1078/* 1079 * access 16bit words to the code or data regions of the dsp's memory. 1080 * index addresses 16bit words. 1081 */ --- 1829 unchanged lines hidden --- | 1074{ 1075 return inb(chip->iobase + reg); 1076} 1077 1078/* 1079 * access 16bit words to the code or data regions of the dsp's memory. 1080 * index addresses 16bit words. 1081 */ --- 1829 unchanged lines hidden --- |