Commit bb62d5cb authored by Linus Torvalds's avatar Linus Torvalds

Linux 2.1.87

Ok, 2.1.87 is out there on ftp.kernel.org now, and it has the clever
PROT_NONE thing done. It seems to work for the little test-case I wrote,
and I also verified that swapping still works, so it seems to be all ok.
I'd still like people who have test programs or similar to actually check
it out,

                Linus
parent a03099aa
...@@ -364,7 +364,7 @@ S: USA ...@@ -364,7 +364,7 @@ S: USA
N: Eddie C. Dost N: Eddie C. Dost
E: ecd@skynet.be E: ecd@skynet.be
D: Linux/Sparc kernel hacker D: Linux/Sparc kernel hacker
D: New Linux/Sparc maintainer (while davem is at SGI) D: Linux/Sparc maintainer
S: Rue de la Chapelle 51 S: Rue de la Chapelle 51
S: 4850 Moresnet S: 4850 Moresnet
S: Belgium S: Belgium
...@@ -1049,7 +1049,7 @@ D: Initial implementation of VC's, pty's and select() ...@@ -1049,7 +1049,7 @@ D: Initial implementation of VC's, pty's and select()
N: Pavel Machek N: Pavel Machek
E: pavel@atrey.karlin.mff.cuni.cz E: pavel@atrey.karlin.mff.cuni.cz
D: Softcursor for vga, hypertech cdrom support, vcsa bugfix D: Softcursor for vga, hypertech cdrom support, vcsa bugfix
D: Network block device D: Network block device, sun4/330 port
S: Volkova 1131 S: Volkova 1131
S: 198 00 Praha 9 S: 198 00 Praha 9
S: Czech Republic S: Czech Republic
...@@ -1175,8 +1175,8 @@ D: Sparc hacker ...@@ -1175,8 +1175,8 @@ D: Sparc hacker
D: New Linux-Activists maintainer D: New Linux-Activists maintainer
D: Linux Emacs elf/qmagic support + other libc/gcc things D: Linux Emacs elf/qmagic support + other libc/gcc things
D: Yee bore de yee bore! ;-) D: Yee bore de yee bore! ;-)
S: 2 Bristol Court S: 111 Alta Tierra Court
S: East Brunswick, New Jersey 08816 S: Los Gatos, CA 95032
S: USA S: USA
N: Rick Miller N: Rick Miller
......
...@@ -518,8 +518,8 @@ M: Alan Cox@linux.org ...@@ -518,8 +518,8 @@ M: Alan Cox@linux.org
S: Maintained S: Maintained
SPARC: SPARC:
P: David S. Miller P: Eddie C. Dost
M: davem@caip.rutgers.edu M: ecd@skynet.be
L: sparclinux@vger.rutgers.edu L: sparclinux@vger.rutgers.edu
S: Maintained S: Maintained
......
...@@ -637,3 +637,12 @@ ENTRY(gdt_table) ...@@ -637,3 +637,12 @@ ENTRY(gdt_table)
.quad 0x00809a0000000000 /* 0x50 APM CS 16 code (16 bit) */ .quad 0x00809a0000000000 /* 0x50 APM CS 16 code (16 bit) */
.quad 0x00c0920000000000 /* 0x58 APM DS data */ .quad 0x00c0920000000000 /* 0x58 APM DS data */
.fill 2*NR_TASKS,8,0 /* space for LDT's and TSS's etc */ .fill 2*NR_TASKS,8,0 /* space for LDT's and TSS's etc */
/*
* This is to aid debugging, the various locking macros will be putting
* code fragments here. When an oops occurs we'd rather know that it's
* inside the .text.lock section rather than as some offset from whatever
* function happens to be last in the .text segment.
*/
.section .text.lock
ENTRY(stext_lock)
...@@ -716,10 +716,8 @@ void enable_ioapic_irq (unsigned int irq) ...@@ -716,10 +716,8 @@ void enable_ioapic_irq (unsigned int irq)
irq_exit(cpu, irq); irq_exit(cpu, irq);
__restore_flags(flags); __restore_flags(flags);
} else { } else
enable_IO_APIC_irq(irq);
spin_unlock_irqrestore(&irq_controller_lock, flags); spin_unlock_irqrestore(&irq_controller_lock, flags);
}
} }
#endif #endif
......
...@@ -1420,7 +1420,9 @@ void smp_apic_timer_interrupt(struct pt_regs * regs) ...@@ -1420,7 +1420,9 @@ void smp_apic_timer_interrupt(struct pt_regs * regs)
* want to be able to accept NMI tlb invalidates * want to be able to accept NMI tlb invalidates
* during this time. * during this time.
*/ */
spin_lock(&irq_controller_lock);
ack_APIC_irq (); ack_APIC_irq ();
spin_unlock(&irq_controller_lock);
smp_local_timer_interrupt(regs); smp_local_timer_interrupt(regs);
} }
......
...@@ -148,7 +148,7 @@ static int allowed_drive_mask = 0x33; ...@@ -148,7 +148,7 @@ static int allowed_drive_mask = 0x33;
#include <asm/io.h> #include <asm/io.h>
#include <asm/uaccess.h> #include <asm/uaccess.h>
static int can_use_virtual_dma=2; static int can_use_virtual_dma=0;
/* ======= /* =======
* can use virtual DMA: * can use virtual DMA:
* 0 = use of virtual DMA disallowed by config * 0 = use of virtual DMA disallowed by config
......
...@@ -1297,11 +1297,10 @@ static int bttv_ioctl(struct video_device *dev, unsigned int cmd, void *arg) ...@@ -1297,11 +1297,10 @@ static int bttv_ioctl(struct video_device *dev, unsigned int cmd, void *arg)
struct video_audio v; struct video_audio v;
if(copy_from_user(&v,arg, sizeof(v))) if(copy_from_user(&v,arg, sizeof(v)))
return -EFAULT; return -EFAULT;
if(v.audio!=0)
return -EINVAL;
if(v.flags&VIDEO_AUDIO_MUTE) if(v.flags&VIDEO_AUDIO_MUTE)
audio(btv, AUDIO_MUTE); audio(btv, AUDIO_MUTE);
if(v.audio<0||v.audio>2)
return -EINVAL;
bt848_muxsel(btv,v.audio);
if(!(v.flags&VIDEO_AUDIO_MUTE)) if(!(v.flags&VIDEO_AUDIO_MUTE))
audio(btv, AUDIO_UNMUTE); audio(btv, AUDIO_UNMUTE);
btv->audio_dev=v; btv->audio_dev=v;
......
This diff is collapsed.
...@@ -258,48 +258,48 @@ bin2hex: bin2hex.c ...@@ -258,48 +258,48 @@ bin2hex: bin2hex.c
hex2hex: hex2hex.c hex2hex: hex2hex.c
$(HOSTCC) -o hex2hex hex2hex.c $(HOSTCC) -o hex2hex hex2hex.c
ifeq ($(MAUI_HAVE_BOOT),y) ifeq ($(CONFIG_MAUI_HAVE_BOOT),y)
MAUI_BOOT_FILE := $(patsubst "%", %, $(MAUI_BOOT_FILE)) CONFIG_MAUI_BOOT_FILE := $(patsubst "%", %, $(CONFIG_MAUI_BOOT_FILE))
maui.o: maui_boot.h maui.o: maui_boot.h
maui_boot.h: $(MAUI_BOOT_FILE) bin2hex maui_boot.h: $(CONFIG_MAUI_BOOT_FILE) bin2hex
bin2hex maui_os < "$(MAUI_BOOT_FILE)" > $@ bin2hex maui_os < "$(CONFIG_MAUI_BOOT_FILE)" > $@
@ ( \ @ ( \
echo 'ifeq ($(strip $(MAUI_BOOT_FILE)),$$(strip $$(MAUI_BOOT_FILE)))'; \ echo 'ifeq ($(strip $(CONFIG_MAUI_BOOT_FILE)),$$(strip $$(CONFIG_MAUI_BOOT_FILE)))'; \
echo 'FILES_BOOT_UP_TO_DATE += $@'; \ echo 'FILES_BOOT_UP_TO_DATE += $@'; \
echo 'endif' \ echo 'endif' \
) > .$@.boot ) > .$@.boot
endif endif
ifeq ($(PSS_HAVE_BOOT),y) ifeq ($(CONFIG_PSS_HAVE_BOOT),y)
PSS_BOOT_FILE := $(patsubst "%", %, $(PSS_BOOT_FILE)) CONFIG_PSS_BOOT_FILE := $(patsubst "%", %, $(CONFIG_PSS_BOOT_FILE))
pss.o: pss_boot.h pss.o: pss_boot.h
pss_boot.h: $(PSS_BOOT_FILE) bin2hex pss_boot.h: $(CONFIG_PSS_BOOT_FILE) bin2hex
bin2hex pss_synth < "$(PSS_BOOT_FILE)" > $@ bin2hex pss_synth < "$(CONFIG_PSS_BOOT_FILE)" > $@
@ ( \ @ ( \
echo 'ifeq ($(strip $(PSS_BOOT_FILE)),$$(strip $$(PSS_BOOT_FILE)))'; \ echo 'ifeq ($(strip $(CONFIG_PSS_BOOT_FILE)),$$(strip $$(CONFIG_PSS_BOOT_FILE)))'; \
echo 'FILES_BOOT_UP_TO_DATE += $@'; \ echo 'FILES_BOOT_UP_TO_DATE += $@'; \
echo 'endif' \ echo 'endif' \
) > .$@.boot ) > .$@.boot
endif endif
ifeq ($(TRIX_HAVE_BOOT),y) ifeq ($(CONFIG_TRIX_HAVE_BOOT),y)
TRIX_BOOT_FILE := $(patsubst "%", %, $(TRIX_BOOT_FILE)) CONFIG_TRIX_BOOT_FILE := $(patsubst "%", %, $(CONFIG_TRIX_BOOT_FILE))
trix.o: trix_boot.h trix.o: trix_boot.h
trix_boot.h: $(TRIX_BOOT_FILE) hex2hex trix_boot.h: $(CONFIG_TRIX_BOOT_FILE) hex2hex
hex2hex trix_boot < "$(TRIX_BOOT_FILE)" > $@ hex2hex trix_boot < "$(CONFIG_TRIX_BOOT_FILE)" > $@
@ ( \ @ ( \
echo 'ifeq ($(strip $(TRIX_BOOT_FILE)),$$(strip $$(strip $$(TRIX_BOOT_FILE)))'; \ echo 'ifeq ($(strip $(CONFIG_TRIX_BOOT_FILE)),$$(strip $$(CONFIG_TRIX_BOOT_FILE)))'; \
echo 'FILES_BOOT_UP_TO_DATE += $@'; \ echo 'FILES_BOOT_UP_TO_DATE += $@'; \
echo 'endif' \ echo 'endif' \
) > .$@.boot ) > .$@.boot
......
...@@ -3,7 +3,7 @@ Configuring version 3.8 (for Linux) with some most common soundcards ...@@ -3,7 +3,7 @@ Configuring version 3.8 (for Linux) with some most common soundcards
This document describes configuring soundcards with freeware version of This document describes configuring soundcards with freeware version of
Open Sound Systems (OSS/Free). Information about the commercial version Open Sound Systems (OSS/Free). Information about the commercial version
(OSS/Linux) and it's configuration is available from (OSS/Linux) and its configuration is available from
http://www.opensound.com/linux.html. Information presented here is http://www.opensound.com/linux.html. Information presented here is
not valid for OSS/Linux. not valid for OSS/Linux.
...@@ -67,7 +67,7 @@ to be the most common cause. ...@@ -67,7 +67,7 @@ to be the most common cause.
2. Trying to use a PnP (Plug & Play) card just like an ordinary soundcard 2. Trying to use a PnP (Plug & Play) card just like an ordinary soundcard
------------------------------------------------------------------------- -------------------------------------------------------------------------
Plug & Play is a protocol defined by Intel and Microsoft. It let's operating Plug & Play is a protocol defined by Intel and Microsoft. It lets operating
systems to easily identify and reconfigure I/O ports, IRQs and DMAs of ISA systems to easily identify and reconfigure I/O ports, IRQs and DMAs of ISA
cards. The problem with PnP cards is that the standard Linux doesn't currently cards. The problem with PnP cards is that the standard Linux doesn't currently
(versions 2.1.x and earlier) don't support PnP. This means that you will have (versions 2.1.x and earlier) don't support PnP. This means that you will have
...@@ -293,25 +293,26 @@ Yamaha OPL3-SA1 ...@@ -293,25 +293,26 @@ Yamaha OPL3-SA1
4Front Technologies SoftOSS 4Front Technologies SoftOSS
SoftOSS is a software based wave table emulation which works with SoftOSS is a software based wave table emulation which works with
any 16 bit stereo soundcard. Due to it's nature a fast CPU is any 16 bit stereo soundcard. Due to its nature a fast CPU is
required (P133 is minumum). Althoug SoftOSS doesn _not_ use MMX required (P133 is minimum). Although SoftOSS does _not_ use MMX
instructions it has proven out that recent processors (which appear instructions it has proven out that recent processors (which appear
to have MMX) perform significantly better with SoftOSS than earlier to have MMX) perform significantly better with SoftOSS than earlier
ones. For example a P166MMX beats a PPro200. SoftOSS should not be used ones. For example a P166MMX beats a PPro200. SoftOSS should not be used
on 486 or 386 machines. on 486 or 386 machines.
The amount of CPU load caused by SoftOSS can be controlled by The amount of CPU load caused by SoftOSS can be controlled by
selecting the SOFTOSS_RATE and SOFTOSS_VOICES parameters properly selecting the CONFIG_SOFTOSS_RATE and CONFIG_SOFTOSS_VOICES
(they will be prompted by make config). It's recommended to set parameters properly (they will be prompted by make config). It's
SOFTOSS_VOICES to 32. If you have a P166MMX or faster (PPro200 is recommended to set CONFIG_SOFTOSS_VOICES to 32. If you have a
not faster) you can set SOFTOSS_RATE to 44100 (kHz). However with P166MMX or faster (PPro200 is not faster) you can set
slower systems it recommended to use sampling rates around 22050 CONFIG_SOFTOSS_RATE to 44100 (kHz). However with slower systems it
or even 16000 kHz. Selecting too high values for these parameters recommended to use sampling rates around 22050 or even 16000 kHz.
may hang your system when playing MIDI files with hight degree of Selecting too high values for these parameters may hang your
polyphony (number of concurrently playing notes). It's also possible to system when playing MIDI files with hight degree of polyphony
decrease SOFTOSS_VOICES. This makes it possible to use higher sampling (number of concurrently playing notes). It's also possible to
rates. However using fewer voices decreases playback quality more than decrease CONFIG_SOFTOSS_VOICES. This makes it possible to use
decreasing the sampling rate. higher sampling rates. However using fewer voices decreases
playback quality more than decreasing the sampling rate.
SoftOSS keeps the samples loaded on system's RAM so large RAM is SoftOSS keeps the samples loaded on system's RAM so large RAM is
required. SoftOSS should never be used on machines with less than 16M required. SoftOSS should never be used on machines with less than 16M
...@@ -330,7 +331,7 @@ Yamaha OPL3-SA1 ...@@ -330,7 +331,7 @@ Yamaha OPL3-SA1
********************************************************************* *********************************************************************
IMPORTANT NOTICE! The original patch set distributed with Gravis IMPORTANT NOTICE! The original patch set distributed with Gravis
Ultrasound card is not in public domain (even it's available from Ultrasound card is not in public domain (even though it's available from
some ftp sites). You should contact Voice Crystal (www.voicecrystal.com) some ftp sites). You should contact Voice Crystal (www.voicecrystal.com)
if you like to use these patches with SoftOSS included in OSS/Free. if you like to use these patches with SoftOSS included in OSS/Free.
********************************************************************* *********************************************************************
...@@ -1125,9 +1126,9 @@ the ioctl() for activating the "solo" mode. ...@@ -1125,9 +1126,9 @@ the ioctl() for activating the "solo" mode.
The following configuration parameters have worked fine for the PCM12 The following configuration parameters have worked fine for the PCM12
in Markus Kuhn's system, many other configurations might work, too: in Markus Kuhn's system, many other configurations might work, too:
MAD16_BASE=0x530, MAD16_IRQ=11, MAD16_DMA=3, MAD16_DMA2=0, CONFIG_MAD16_BASE=0x530, CONFIG_MAD16_IRQ=11, CONFIG_MAD16_DMA=3,
MAD16_MPU_BASE=0x330, MAD16_MPU_IRQ=10, DSP_BUFFSIZE=65536, CONFIG_MAD16_DMA2=0, CONFIG_MAD16_MPU_BASE=0x330, CONFIG_MAD16_MPU_IRQ=10,
SELECTED_SOUND_OPTIONS=0x00281000. DSP_BUFFSIZE=65536, SELECTED_SOUND_OPTIONS=0x00281000.
The miroSOUND PCM1 pro and the PCM20 are very similar to the PCM12. The miroSOUND PCM1 pro and the PCM20 are very similar to the PCM12.
Perhaps the same ACI driver also works for these cards, however this Perhaps the same ACI driver also works for these cards, however this
......
Building a loadable sound driver Building a modular sound driver
================================ ================================
Loadable module support in version 3.5 of the driver is mostly rewritten since The following information is current as of linux-2.1.85. Check the other
the previous version (3.0.1). This means that some things have changed. readme files, especially Readme.cards, for information not specific to
making sound modular.
To compile the sound driver as a loadable module you have to perform
the following steps: First, configure your kernel. This is an idea of what you should be
setting in the sound section:
1) Install modules-1.2.8.tar.gz package (or later if available).
2a) Check that symbol remap_page_range is defined in linux/init/ksyms.c. <M> Sound card support
Insert a line containing "X(remap_page_range)," if required. The driver will
not load if this line is missing. <M> 100% Sound Blaster compatibles (SB16/32/64, ESS, Jazz16) support
2b) Recompile kernel with soundcard support disabled.
3) Boot the new kernel. I have SoundBlaster. Select your card from the list.
4) cd to the sound driver source directory (this directory). It's no
longer required that the sound driver sources are installed in the <M> Generic OPL2/OPL3 FM synthesizer support
kernel source tree (linux/drivers/sound). When installing a separately <M> FM synthesizer (YM3812/OPL-3) support
distributed sound driver you may install the sources for example to
/usr/src/sound. If you don't set these, you will probably find you can play .wav files
5) Execute make in the sound driver source directory. Enter but not .midi. As the help for them says, set them unless you know your
configuration parameters as described in Readme.cards. Then just wait until card does not use one of these chips for FM support.
the driver is compiled OK.
6) Copy sound.o to the directory where insmod expects to find it. Once you are configured, make zlilo, modules, modules_install; reboot.
("make install" copies it to /lib/modules/misc). Note that it is no longer necessary or possible to configure sound in the
7) Use command "insmod sound" to load the driver. drivers/sound dir. Now one simply configures and makes one's kernel and
modules in the usual way.
8) The sound driver can be removed using command "rmmod sound".
Then, add to your /etc/modules.conf or /etc/conf.modules something like:
Parameters accepted by the loadable sound driver alias char-major-14 sb
================================================ post-install sb modprobe "-k" "adlib_card"
options sb io=0x220 irq=7 dma=1 dma16=5 mpu_io=0x330
Setting DMA buffer size options adlib_card io=0x388 # FM synthetiser
-----------------------
The effect of this is that the sound driver and all necessary bits and
The driver allocates a DMA buffer (or two for full duplex devices) pieces autoload on demand, assuming you use kerneld (a sound choice) and
every time the audio device (/dev/dsp or /dev/audio) is opened autoclean when not in use. Also, options for the device drivers are
and frees it when the device is closed. Size of this buffer is defined set. They will not work without them. Change as appropriate for your card.
when the driver is configured (the last question). The buffer size If you are not yet using the very cool kerneld, you will have to "modprobe
can be redefined when loading the driver if required (note that this is -k sb" yourself to get things going. Eventually things may be fixed so
an optional feature which is not normally required). The buffer size that this kludgery is not necessary; for the time being, it seems to work
is redefined by adding dma_pagesize= parameter to the insmod command line. well.
For example:
Replace 'sb' with the driver for your card, and give it the right
insmod sound dma_buffsize=32768 options. To find the filename of the driver, look in
/lib/modules/<kernel-version>/misc. Mine looks like:
Minimum buffer size is 4096 and the maximum depends on the DMA channel.
For 8 bit channels (0 to 3) the limit is 64k and for 16 bit ones (5 to 7) adlib_card.o # This is the generic OPLx driver
it's 128k. Driver selects a suitable buffer size automatically in case opl3.o # The OPL3 driver
you try to specify an invalid size. sb.o # <<The SoundBlaster driver. Yours may differ.>>
sound.o # The sound driver
Q: What is the right DMA buffer size? uart401.o # Used by sb, maybe other cards
A: It depends on the sampling rate, machine speed and the load of the system. Whichever card you have, try feeding it the options that would be the
Large buffers are required on slow machines, when recording/playing CD-quality default if you were making the driver wired, not as modules. You can look
audio or when there are other processes running on the same system. Also at the init_module() code for the card to see what args are expected.
recording to hard disk is likely to require large buffers.
Note that at present there is no way to configure the io, irq and other
Very small buffers are sufficient when you are just playing 8kHz audio files parameters for the modular drivers as one does for the wired drivers.. One
on an empty P133 system. Using a 128k buffer just wastes 120k (or 250k) needs to pass the modules the necessary parameters as arguments, either
of valuable physical RAM memory. with /etc/modules.conf or with command-line args to modprobe, e.g.
The right buffer size can be easily found by making some experiments modprobe -k sb io=0x220 irq=7 dma=1 dma16=5 mpu_io=0x330
with the dma_buffsize= parameter. I use usually 16k buffers on a DX4/100 system modprobe -k adlib_card io=0x388
and 64k on an old 386 system.
recommend using /etc/modules.conf.
NOTE! DMA buffers are used only by /dev/audio# and /dev/dsp# devices.
Other device files don't use them but there are two exceptions: I'm afraid I know nothing about anything but my setup, being more of a
GUS driver uses DMA buffers when loading samples to the card. text-mode guy anyway. If you have options for other cards or other helpful
Ensoniq SoundScape driver uses them when downloading the microcode hints, send them to me, Jim Bray, jb@as220.org, http://as220.org/jb.
file (sndscape.co[012]) to the card. Using large buffers doesn't
increase performance in these cases.
Debugging and tracing
---------------------
Modularized sound driver doesn't display messages during initialization as
the kernel compiled one does. This feature can be turned on by adding
trace_init=1 to the insmod command line.
For example:
insmod sound trace_init=1
...@@ -460,31 +460,31 @@ int num_sound_drivers = sizeof(sound_drivers) / sizeof (struct driver_info); ...@@ -460,31 +460,31 @@ int num_sound_drivers = sizeof(sound_drivers) / sizeof (struct driver_info);
struct card_info snd_installed_cards[] = struct card_info snd_installed_cards[] =
{ {
#ifdef CONFIG_PSS #ifdef CONFIG_PSS
{SNDCARD_PSS, {PSS_BASE, 0, -1, -1}, SND_DEFAULT_ENABLE}, {SNDCARD_PSS, {CONFIG_PSS_BASE, 0, -1, -1}, SND_DEFAULT_ENABLE},
#ifdef PSS_MPU_BASE #ifdef CONFIG_PSS_MPU_BASE
{SNDCARD_PSS_MPU, {PSS_MPU_BASE, PSS_MPU_IRQ, 0, -1}, SND_DEFAULT_ENABLE}, {SNDCARD_PSS_MPU, {CONFIG_PSS_MPU_BASE, CONFIG_PSS_MPU_IRQ, 0, -1}, SND_DEFAULT_ENABLE},
#endif #endif
#ifdef PSS_MSS_BASE #ifdef CONFIG_PSS_MSS_BASE
{SNDCARD_PSS_MSS, {PSS_MSS_BASE, PSS_MSS_IRQ, PSS_MSS_DMA, -1}, SND_DEFAULT_ENABLE}, {SNDCARD_PSS_MSS, {CONFIG_PSS_MSS_BASE, CONFIG_PSS_MSS_IRQ, CONFIG_PSS_MSS_DMA, -1}, SND_DEFAULT_ENABLE},
#endif #endif
#endif #endif
#ifdef CONFIG_TRIX #ifdef CONFIG_TRIX
#ifndef TRIX_DMA2 #ifndef CONFIG_TRIX_DMA2
#define TRIX_DMA2 TRIX_DMA #define CONFIG_TRIX_DMA2 CONFIG_TRIX_DMA
#endif #endif
{SNDCARD_TRXPRO, {TRIX_BASE, TRIX_IRQ, TRIX_DMA, TRIX_DMA2}, SND_DEFAULT_ENABLE}, {SNDCARD_TRXPRO, {CONFIG_TRIX_BASE, CONFIG_TRIX_IRQ, CONFIG_TRIX_DMA, CONFIG_TRIX_DMA2}, SND_DEFAULT_ENABLE},
#ifdef TRIX_SB_BASE #ifdef CONFIG_TRIX_SB_BASE
{SNDCARD_TRXPRO_SB, {TRIX_SB_BASE, TRIX_SB_IRQ, TRIX_SB_DMA, -1}, SND_DEFAULT_ENABLE}, {SNDCARD_TRXPRO_SB, {CONFIG_TRIX_SB_BASE, CONFIG_TRIX_SB_IRQ, CONFIG_TRIX_SB_DMA, -1}, SND_DEFAULT_ENABLE},
#endif #endif
#ifdef TRIX_MPU_BASE #ifdef CONFIG_TRIX_MPU_BASE
{SNDCARD_TRXPRO_MPU, {TRIX_MPU_BASE, TRIX_MPU_IRQ, 0, -1}, SND_DEFAULT_ENABLE}, {SNDCARD_TRXPRO_MPU, {CONFIG_TRIX_MPU_BASE, CONFIG_TRIX_MPU_IRQ, 0, -1}, SND_DEFAULT_ENABLE},
#endif #endif
#endif #endif
#ifdef CONFIG_OPL3SA1 #ifdef CONFIG_OPL3SA1
{SNDCARD_OPL3SA1, {OPL3SA1_BASE, OPL3SA1_IRQ, OPL3SA1_DMA, OPL3SA1_DMA2}, SND_DEFAULT_ENABLE}, {SNDCARD_OPL3SA1, {CONFIG_OPL3SA1_BASE, CONFIG_OPL3SA1_IRQ, CONFIG_OPL3SA1_DMA, CONFIG_OPL3SA1_DMA2}, SND_DEFAULT_ENABLE},
#ifdef OPL3SA1_MPU_BASE #ifdef CONFIG_OPL3SA1_MPU_BASE
{SNDCARD_OPL3SA1_MPU, {OPL3SA1_MPU_BASE, OPL3SA1_MPU_IRQ, 0, -1}, SND_DEFAULT_ENABLE}, {SNDCARD_OPL3SA1_MPU, {CONFIG_OPL3SA1_MPU_BASE, CONFIG_OPL3SA1_MPU_IRQ, 0, -1}, SND_DEFAULT_ENABLE},
#endif #endif
#endif #endif
...@@ -493,39 +493,39 @@ struct card_info snd_installed_cards[] = ...@@ -493,39 +493,39 @@ struct card_info snd_installed_cards[] =
#endif #endif
#ifdef CONFIG_SSCAPE #ifdef CONFIG_SSCAPE
{SNDCARD_SSCAPE, {SSCAPE_BASE, SSCAPE_IRQ, SSCAPE_DMA, -1}, SND_DEFAULT_ENABLE}, {SNDCARD_SSCAPE, {CONFIG_SSCAPE_BASE, CONFIG_SSCAPE_IRQ, CONFIG_SSCAPE_DMA, -1}, SND_DEFAULT_ENABLE},
{SNDCARD_SSCAPE_MSS, {SSCAPE_MSS_BASE, SSCAPE_MSS_IRQ, SSCAPE_DMA, -1}, SND_DEFAULT_ENABLE}, {SNDCARD_SSCAPE_MSS, {CONFIG_SSCAPE_MSS_BASE, CONFIG_SSCAPE_MSS_IRQ, CONFIG_SSCAPE_DMA, -1}, SND_DEFAULT_ENABLE},
#endif #endif
#ifdef CONFIG_MAD16 #ifdef CONFIG_MAD16
#ifndef MAD16_DMA2 #ifndef CONFIG_MAD16_DMA2
#define MAD16_DMA2 MAD16_DMA #define CONFIG_MAD16_DMA2 CONFIG_MAD16_DMA
#endif #endif
{SNDCARD_MAD16, {MAD16_BASE, MAD16_IRQ, MAD16_DMA, MAD16_DMA2}, SND_DEFAULT_ENABLE}, {SNDCARD_MAD16, {CONFIG_MAD16_BASE, CONFIG_MAD16_IRQ, CONFIG_MAD16_DMA, CONFIG_MAD16_DMA2}, SND_DEFAULT_ENABLE},
#ifdef MAD16_MPU_BASE #ifdef CONFIG_MAD16_MPU_BASE
{SNDCARD_MAD16_MPU, {MAD16_MPU_BASE, MAD16_MPU_IRQ, 0, -1}, SND_DEFAULT_ENABLE}, {SNDCARD_MAD16_MPU, {CONFIG_MAD16_MPU_BASE, CONFIG_MAD16_MPU_IRQ, 0, -1}, SND_DEFAULT_ENABLE},
#endif #endif
#endif #endif
#ifdef CONFIG_CS4232 #ifdef CONFIG_CS4232
#ifndef CS4232_DMA2 #ifndef CONFIG_CS4232_DMA2
#define CS4232_DMA2 CS4232_DMA #define CONFIG_CS4232_DMA2 CONFIG_CS4232_DMA
#endif #endif
#ifdef CS4232_MPU_BASE #ifdef CONFIG_CS4232_MPU_BASE
{SNDCARD_CS4232_MPU, {CS4232_MPU_BASE, CS4232_MPU_IRQ, 0, -1}, SND_DEFAULT_ENABLE}, {SNDCARD_CS4232_MPU, {CONFIG_CS4232_MPU_BASE, CONFIG_CS4232_MPU_IRQ, 0, -1}, SND_DEFAULT_ENABLE},
#endif #endif
{SNDCARD_CS4232, {CS4232_BASE, CS4232_IRQ, CS4232_DMA, CS4232_DMA2}, SND_DEFAULT_ENABLE}, {SNDCARD_CS4232, {CONFIG_CS4232_BASE, CONFIG_CS4232_IRQ, CONFIG_CS4232_DMA, CONFIG_CS4232_DMA2}, SND_DEFAULT_ENABLE},
#endif #endif
#ifdef CONFIG_MSS #ifdef CONFIG_MSS
#ifndef MSS_DMA2 #ifndef CONFIG_MSS_DMA2
#define MSS_DMA2 -1 #define CONFIG_MSS_DMA2 -1
#endif #endif
#ifdef DESKPROXL #ifdef DESKPROXL
{SNDCARD_DESKPROXL, {MSS_BASE, MSS_IRQ, MSS_DMA, MSS_DMA2}, SND_DEFAULT_ENABLE}, {SNDCARD_DESKPROXL, {CONFIG_MSS_BASE, CONFIG_MSS_IRQ, CONFIG_MSS_DMA, CONFIG_MSS_DMA2}, SND_DEFAULT_ENABLE},
#else #else
{SNDCARD_MSS, {MSS_BASE, MSS_IRQ, MSS_DMA, MSS_DMA2}, SND_DEFAULT_ENABLE}, {SNDCARD_MSS, {CONFIG_MSS_BASE, CONFIG_MSS_IRQ, CONFIG_MSS_DMA, CONFIG_MSS_DMA2}, SND_DEFAULT_ENABLE},
#endif #endif
#ifdef MSS2_BASE #ifdef MSS2_BASE
{SNDCARD_MSS, {MSS2_BASE, MSS2_IRQ, MSS2_DMA, MSS2_DMA2}, SND_DEFAULT_ENABLE}, {SNDCARD_MSS, {MSS2_BASE, MSS2_IRQ, MSS2_DMA, MSS2_DMA2}, SND_DEFAULT_ENABLE},
...@@ -534,53 +534,53 @@ struct card_info snd_installed_cards[] = ...@@ -534,53 +534,53 @@ struct card_info snd_installed_cards[] =
#ifdef CONFIG_PAS #ifdef CONFIG_PAS
{SNDCARD_PAS, {PAS_BASE, PAS_IRQ, PAS_DMA, -1}, SND_DEFAULT_ENABLE}, {SNDCARD_PAS, {CONFIG_PAS_BASE, CONFIG_PAS_IRQ, CONFIG_PAS_DMA, -1}, SND_DEFAULT_ENABLE},
#endif #endif
#ifdef CONFIG_SB #ifdef CONFIG_SB
#ifndef SBC_DMA #ifndef CONFIG_SB_DMA
#define SBC_DMA 1 #define CONFIG_SB_DMA 1
#endif #endif
#ifndef SB_DMA2 #ifndef CONFIG_SB_DMA2
#define SB_DMA2 -1 #define CONFIG_SB_DMA2 -1
#endif #endif
{SNDCARD_SB, {SBC_BASE, SBC_IRQ, SBC_DMA, SB_DMA2}, SND_DEFAULT_ENABLE}, {SNDCARD_SB, {CONFIG_SB_BASE, CONFIG_SB_IRQ, CONFIG_SB_DMA, CONFIG_SB_DMA2}, SND_DEFAULT_ENABLE},
#ifdef SB2_BASE #ifdef SB2_BASE
{SNDCARD_SB, {SB2_BASE, SB2_IRQ, SB2_DMA, SB2_DMA2}, SND_DEFAULT_ENABLE}, {SNDCARD_SB, {SB2_BASE, SB2_IRQ, SB2_DMA, SB2_DMA2}, SND_DEFAULT_ENABLE},
#endif #endif
#endif #endif
#if defined(CONFIG_MAUI) #if defined(CONFIG_MAUI)
{SNDCARD_MAUI, {MAUI_BASE, MAUI_IRQ, 0, -1}, SND_DEFAULT_ENABLE}, {SNDCARD_MAUI, {CONFIG_MAUI_BASE, CONFIG_MAUI_IRQ, 0, -1}, SND_DEFAULT_ENABLE},
#endif #endif
#if defined(CONFIG_MPU401) && defined(CONFIG_MIDI) #if defined(CONFIG_MPU401) && defined(CONFIG_MIDI)
{SNDCARD_MPU401, {MPU_BASE, MPU_IRQ, 0, -1}, SND_DEFAULT_ENABLE}, {SNDCARD_MPU401, {CONFIG_MPU_BASE, CONFIG_MPU_IRQ, 0, -1}, SND_DEFAULT_ENABLE},
#ifdef MPU2_BASE #ifdef MPU2_BASE
{SNDCARD_MPU401, {MPU2_BASE, MPU2_IRQ, 0, -1}, SND_DEFAULT_ENABLE}, {SNDCARD_MPU401, {MPU2_BASE, MPU2_IRQ, 0, -1}, SND_DEFAULT_ENABLE},
#endif #endif
#ifdef MPU3_BASE #ifdef MPU3_BASE
{SNDCARD_MPU401, {MPU3_BASE, MPU2_IRQ, 0, -1}, SND_DEFAULT_ENABLE}, {SNDCARD_MPU401, {MPU3_BASE, MPU3_IRQ, 0, -1}, SND_DEFAULT_ENABLE},
#endif #endif
#endif #endif
#if defined(CONFIG_UART6850) && defined(CONFIG_MIDI) #if defined(CONFIG_UART6850) && defined(CONFIG_MIDI)
{SNDCARD_UART6850, {U6850_BASE, U6850_IRQ, 0, -1}, SND_DEFAULT_ENABLE}, {SNDCARD_UART6850, {CONFIG_U6850_BASE, CONFIG_U6850_IRQ, 0, -1}, SND_DEFAULT_ENABLE},
#endif #endif
#if defined(CONFIG_SB) #if defined(CONFIG_SB)
#if defined(CONFIG_MIDI) && defined(SB_MPU_BASE) #if defined(CONFIG_MIDI) && defined(CONFIG_SB_MPU_BASE)
{SNDCARD_SB16MIDI,{SB_MPU_BASE, SB_MPU_IRQ, 0, -1}, SND_DEFAULT_ENABLE}, {SNDCARD_SB16MIDI,{CONFIG_SB_MPU_BASE, CONFIG_SB_MPU_IRQ, 0, -1}, SND_DEFAULT_ENABLE},
#endif #endif
#endif #endif
#ifdef CONFIG_GUS #ifdef CONFIG_GUS
#ifndef GUS_DMA2 #ifndef CONFIG_GUS_DMA2
#define GUS_DMA2 GUS_DMA #define CONFIG_GUS_DMA2 CONFIG_GUS_DMA
#endif #endif
#ifdef CONFIG_GUS16 #ifdef CONFIG_GUS16
{SNDCARD_GUS16, {GUS16_BASE, GUS16_IRQ, GUS16_DMA, -1}, SND_DEFAULT_ENABLE}, {SNDCARD_GUS16, {CONFIG_GUS16_BASE, CONFIG_GUS16_IRQ, CONFIG_GUS16_DMA, -1}, SND_DEFAULT_ENABLE},
#endif #endif
{SNDCARD_GUS, {GUS_BASE, GUS_IRQ, GUS_DMA, GUS_DMA2}, SND_DEFAULT_ENABLE}, {SNDCARD_GUS, {CONFIG_GUS_BASE, CONFIG_GUS_IRQ, CONFIG_GUS_DMA, CONFIG_GUS_DMA2}, SND_DEFAULT_ENABLE},
#endif #endif
#if defined(CONFIG_YM3812) #if defined(CONFIG_YM3812)
......
...@@ -14,10 +14,10 @@ if [ "$CONFIG_LOWLEVEL_SOUND" = "y" ]; then ...@@ -14,10 +14,10 @@ if [ "$CONFIG_LOWLEVEL_SOUND" = "y" ]; then
if [ "$CONFIG_AEDSP16_SBPRO" = "y" ]; then if [ "$CONFIG_AEDSP16_SBPRO" = "y" ]; then
comment 'Audio Excel DSP 16 [Sound Blaster Pro]' comment 'Audio Excel DSP 16 [Sound Blaster Pro]'
hex 'I/O base for Audio Excel DSP 16 220 or 240' \ hex 'I/O base for Audio Excel DSP 16 220 or 240' \
AEDSP16_BASE $SBC_BASE CONFIG_AEDSP16_BASE $CONFIG_SB_BASE
int 'Audio Excel DSP 16 IRQ 5, 7, 9, 10, 11' \ int 'Audio Excel DSP 16 IRQ 5, 7, 9, 10, 11' \
AEDSP16_SBC_IRQ $SBC_IRQ CONFIG_AEDSP16_SB_IRQ $CONFIG_SB_IRQ
int 'Audio Excel DSP 16 DMA 0, 1 or 3' AEDSP16_SBC_DMA $SBC_DMA int 'Audio Excel DSP 16 DMA 0, 1 or 3' CONFIG_AEDSP16_SB_DMA $CONFIG_SB_DMA
fi fi
fi fi
...@@ -25,10 +25,10 @@ if [ "$CONFIG_LOWLEVEL_SOUND" = "y" ]; then ...@@ -25,10 +25,10 @@ if [ "$CONFIG_LOWLEVEL_SOUND" = "y" ]; then
bool 'Audio Excel DSP 16 (MSS emulation)' CONFIG_AEDSP16_MSS bool 'Audio Excel DSP 16 (MSS emulation)' CONFIG_AEDSP16_MSS
if [ "$CONFIG_AEDSP16_MSS" = "y" ]; then if [ "$CONFIG_AEDSP16_MSS" = "y" ]; then
comment 'Audio Excel DSP 16 [Microsoft Sound System]' comment 'Audio Excel DSP 16 [Microsoft Sound System]'
hex 'I/O base for Audio Excel DSP 16 220 or 240' AEDSP16_BASE 220 hex 'I/O base for Audio Excel DSP 16 220 or 240' CONFIG_AEDSP16_BASE 220
int 'Audio Excel DSP 16 IRQ 5, 7, 9, 10, 11' \ int 'Audio Excel DSP 16 IRQ 5, 7, 9, 10, 11' \
AEDSP16_MSS_IRQ $MSS_IRQ CONFIG_AEDSP16_MSS_IRQ $CONFIG_MSS_IRQ
int 'Audio Excel DSP 16 DMA 0, 1 or 3' AEDSP16_MSS_DMA $MSS_DMA int 'Audio Excel DSP 16 DMA 0, 1 or 3' CONFIG_AEDSP16_MSS_DMA $CONFIG_MSS_DMA
fi fi
fi fi
...@@ -38,10 +38,10 @@ if [ "$CONFIG_LOWLEVEL_SOUND" = "y" ]; then ...@@ -38,10 +38,10 @@ if [ "$CONFIG_LOWLEVEL_SOUND" = "y" ]; then
comment 'Audio Excel DSP 16 [MPU-401]' comment 'Audio Excel DSP 16 [MPU-401]'
if [ "$CONFIG_AEDSP16_SBPRO" != "y" \ if [ "$CONFIG_AEDSP16_SBPRO" != "y" \
-a "$CONFIG_AEDSP16_MSS" != "y" ]; then -a "$CONFIG_AEDSP16_MSS" != "y" ]; then
hex 'I/O base for Audio Excel DSP 16 220 or 240' AEDSP16_BASE 220 hex 'I/O base for Audio Excel DSP 16 220 or 240' CONFIG_AEDSP16_BASE 220
fi fi
int 'MPU401 IRQ for Audio Excel DSP 16 5, 7, 9, 10 or 0 (disable)' \ int 'MPU401 IRQ for Audio Excel DSP 16 5, 7, 9, 10 or 0 (disable)' \
AEDSP16_MPU_IRQ $MPU_IRQ CONFIG_AEDSP16_MPU_IRQ $CONFIG_MPU_IRQ
fi fi
fi fi
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
* Sanity checks * Sanity checks
*/ */
#if !defined(AEDSP16_BASE) #if !defined(CONFIG_AEDSP16_BASE)
# undef CONFIG_AEDSP16 # undef CONFIG_AEDSP16
#else #else
# if defined(MODULE) && defined(CONFIG_AEDSP16_MODULE) # if defined(MODULE) && defined(CONFIG_AEDSP16_MODULE)
...@@ -1181,8 +1181,8 @@ static int init_aedsp16_mss(void) ...@@ -1181,8 +1181,8 @@ static int init_aedsp16_mss(void)
if (ae_config.init & INIT_MSS) if (ae_config.init & INIT_MSS)
return FALSE; return FALSE;
/* /*
* We must check the AEDSP16_BASE region too because these are the I/O ports * We must check the CONFIG_AEDSP16_BASE region too because these are the I/O
* to access card's control registers. * ports to access card's control registers.
*/ */
if (!(ae_config.init & INIT_MPU401)) { if (!(ae_config.init & INIT_MPU401)) {
if (check_region(ae_config.base_io, IOBASE_REGION_SIZE)) { if (check_region(ae_config.base_io, IOBASE_REGION_SIZE)) {
...@@ -1193,8 +1193,8 @@ static int init_aedsp16_mss(void) ...@@ -1193,8 +1193,8 @@ static int init_aedsp16_mss(void)
} }
/* /*
* We must allocate the AEDSP16_BASE region too because these are the I/O ports * We must allocate the CONFIG_AEDSP16_BASE region too because these are the
* to access card's control registers. * I/O ports to access card's control registers.
*/ */
if (!(ae_config.init & INIT_MPU401)) if (!(ae_config.init & INIT_MPU401))
request_region(ae_config.base_io, IOBASE_REGION_SIZE, request_region(ae_config.base_io, IOBASE_REGION_SIZE,
...@@ -1229,8 +1229,8 @@ static int init_aedsp16_mpu(void) ...@@ -1229,8 +1229,8 @@ static int init_aedsp16_mpu(void)
return FALSE; return FALSE;
/* /*
* We must check the AEDSP16_BASE region too because these are the I/O ports * We must check the CONFIG_AEDSP16_BASE region too because these are the I/O
* to access card's control registers. * ports to access card's control registers.
*/ */
if (!(ae_config.init & (INIT_MSS | INIT_SBPRO))) { if (!(ae_config.init & (INIT_MSS | INIT_SBPRO))) {
if (check_region(ae_config.base_io, IOBASE_REGION_SIZE)) { if (check_region(ae_config.base_io, IOBASE_REGION_SIZE)) {
...@@ -1271,19 +1271,19 @@ int init_aedsp16(void) ...@@ -1271,19 +1271,19 @@ int init_aedsp16(void)
int initialized = FALSE; int initialized = FALSE;
#if !defined(MODULE) #if !defined(MODULE)
ae_config.base_io = AEDSP16_BASE; ae_config.base_io = CONFIG_AEDSP16_BASE;
#if defined(CONFIG_AEDSP16_SBPRO) #if defined(CONFIG_AEDSP16_SBPRO)
ae_config.irq = AEDSP16_SBC_IRQ; ae_config.irq = CONFIG_AEDSP16_SB_IRQ;
ae_config.dma = AEDSP16_SBC_DMA; ae_config.dma = CONFIG_AEDSP16_SB_DMA;
#endif #endif
#if defined(CONFIG_AEDSP16_MSS) #if defined(CONFIG_AEDSP16_MSS)
ae_config.mss_base = MSS_BASE; ae_config.mss_base = CONFIG_MSS_BASE;
ae_config.irq = AEDSP16_MSS_IRQ; ae_config.irq = CONFIG_AEDSP16_MSS_IRQ;
ae_config.dma = AEDSP16_MSS_DMA; ae_config.dma = CONFIG_AEDSP16_MSS_DMA;
#endif #endif
#if defined(CONFIG_AEDSP16_MPU401) #if defined(CONFIG_AEDSP16_MPU401)
ae_config.mpu_base = MPU_BASE; ae_config.mpu_base = CONFIG_MPU_BASE;
ae_config.mpu_irq = AEDSP16_MPU_IRQ; ae_config.mpu_irq = CONFIG_AEDSP16_MPU_IRQ;
#endif #endif
#endif /* !MODULE */ #endif /* !MODULE */
DBG(("Initializing BASE[0x%x] IRQ[%d] DMA[%d] MIRQ[%d]\n", DBG(("Initializing BASE[0x%x] IRQ[%d] DMA[%d] MIRQ[%d]\n",
......
...@@ -41,7 +41,7 @@ static int *maui_osp; ...@@ -41,7 +41,7 @@ static int *maui_osp;
static int (*orig_load_patch) (int dev, int format, const char *addr, static int (*orig_load_patch) (int dev, int format, const char *addr,
int offs, int count, int pmgr_flag) = NULL; int offs, int count, int pmgr_flag) = NULL;
#ifdef MAUI_HAVE_BOOT #ifdef CONFIG_MAUI_HAVE_BOOT
#include "maui_boot.h" #include "maui_boot.h"
#else #else
static unsigned char *maui_os = NULL; static unsigned char *maui_os = NULL;
......
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
#include "coproc.h" #include "coproc.h"
#ifdef PSS_HAVE_BOOT #ifdef CONFIG_PSS_HAVE_BOOT
#include "pss_boot.h" #include "pss_boot.h"
#else #else
static unsigned char *pss_synth = NULL; static unsigned char *pss_synth = NULL;
......
...@@ -1503,14 +1503,14 @@ probe_softsyn(struct address_info *hw_config) ...@@ -1503,14 +1503,14 @@ probe_softsyn(struct address_info *hw_config)
devc->bits = 16; devc->bits = 16;
devc->max_playahead = 32; devc->max_playahead = 32;
#ifdef SOFTOSS_RATE #ifdef CONFIG_SOFTOSS_RATE
devc->speed = SOFTOSS_RATE; devc->speed = CONFIG_SOFTOSS_RATE;
#else #else
devc->speed = 32000; devc->speed = 32000;
#endif #endif
#ifdef SOFTOSS_VOICES #ifdef CONFIG_SOFTOSS_VOICES
devc->default_max_voices = SOFTOSS_VOICES; devc->default_max_voices = CONFIG_SOFTOSS_VOICES;
#else #else
devc->default_max_voices = 32; devc->default_max_voices = 32;
#endif #endif
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
#include "local.h.master" #include "local.h.master"
#include <linux/config.h>
#include "os.h" #include "os.h"
#include "soundvers.h" #include "soundvers.h"
...@@ -43,20 +43,20 @@ ...@@ -43,20 +43,20 @@
#define FM_MONO 0x388 /* This is the I/O address used by AdLib */ #define FM_MONO 0x388 /* This is the I/O address used by AdLib */
#ifndef PAS_BASE #ifndef CONFIG_PAS_BASE
#define PAS_BASE 0x388 #define CONFIG_PAS_BASE 0x388
#endif #endif
#if defined(SB16_DMA) && !defined(SB_DMA2) #if defined(CONFIG_SB16_DMA) && !defined(CONFIG_SB_DMA2)
# define SB_DMA2 SB16_DMA # define CONFIG_SB_DMA2 CONFIG_SB16_DMA
#endif #endif
#if defined(SB16MIDI_BASE) && !defined(SB_MPU_BASE) #if defined(SB16MIDI_BASE) && !defined(CONFIG_SB_MPU_BASE)
# define SB_MPU_BASE SB16MIDI_BASE # define CONFIG_SB_MPU_BASE SB16MIDI_BASE
#endif #endif
#ifndef SB_MPU_IRQ #ifndef CONFIG_SB_MPU_IRQ
# define SB_MPU_IRQ SBC_IRQ # define CONFIG_SB_MPU_IRQ CONFIG_SB_IRQ
#endif #endif
/* SEQ_MAX_QUEUE is the maximum number of sequencer events buffered by the /* SEQ_MAX_QUEUE is the maximum number of sequencer events buffered by the
......
...@@ -964,7 +964,7 @@ int init_module(void) ...@@ -964,7 +964,7 @@ int init_module(void)
} }
if (mpu_irq == -1 && mpu_io != -1) if (mpu_irq == -1 && mpu_io != -1)
{ {
printk(KERN_ERR "MPU_IRQ must be specified if MPU_IO is set.\n"); printk(KERN_ERR "CONFIG_MPU_IRQ must be specified if CONFIG_MPU_IO is set.\n");
return -EINVAL; return -EINVAL;
} }
config.irq = irq; config.irq = irq;
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
#endif #endif
#endif #endif
#ifdef TRIX_HAVE_BOOT #ifdef CONFIG_TRIX_HAVE_BOOT
#include "trix_boot.h" #include "trix_boot.h"
#else #else
static unsigned char *trix_boot = NULL; static unsigned char *trix_boot = NULL;
...@@ -506,12 +506,12 @@ init_module(void) ...@@ -506,12 +506,12 @@ init_module(void)
if (sb_io != -1 && (sb_irq == -1 || sb_dma == -1)) if (sb_io != -1 && (sb_irq == -1 || sb_dma == -1))
{ {
printk(KERN_INFO "SB_IRQ and SB_DMA must be specified if SB_IO is set.\n"); printk(KERN_INFO "CONFIG_SB_IRQ and CONFIG_SB_DMA must be specified if SB_IO is set.\n");
return -EINVAL; return -EINVAL;
} }
if (mpu_io != -1 && mpu_irq == -1) if (mpu_io != -1 && mpu_irq == -1)
{ {
printk(KERN_INFO "MPU_IRQ must be specified if MPU_IO is set.\n"); printk(KERN_INFO "CONFIG_MPU_IRQ must be specified if MPU_IO is set.\n");
return -EINVAL; return -EINVAL;
} }
if (!trix_boot) if (!trix_boot)
......
...@@ -20,9 +20,9 @@ ...@@ -20,9 +20,9 @@
#include "ufs_swab.h" #include "ufs_swab.h"
/* /*
* NOTE! unlike strncmp, ext2_match returns 1 for success, 0 for failure. * NOTE1: unlike strncmp, ufs_match returns 1 for success, 0 for failure
* stolen from ext2fs * (stolen from ext2fs.)
* NOTE2: flags *is* used, through this is hidden by macros like SWAB16. * NOTE2: flags *is* used, though this is hidden by macros like NAMLEN.
*/ */
static int ufs_match (int len, const char * const name, struct ufs_direct * d, __u32 flags) static int ufs_match (int len, const char * const name, struct ufs_direct * d, __u32 flags)
{ {
......
...@@ -1761,12 +1761,15 @@ int vfat_rename(struct inode *old_dir,struct dentry *old_dentry, ...@@ -1761,12 +1761,15 @@ int vfat_rename(struct inode *old_dir,struct dentry *old_dentry,
new_inode->i_mtime = old_inode->i_mtime; new_inode->i_mtime = old_inode->i_mtime;
new_inode->i_atime = old_inode->i_atime; new_inode->i_atime = old_inode->i_atime;
new_inode->i_ctime = old_inode->i_ctime; new_inode->i_ctime = old_inode->i_ctime;
new_inode->i_nlink = old_inode->i_nlink;
new_inode->i_op = old_inode->i_op;
MSDOS_I(new_inode)->i_ctime_ms = MSDOS_I(old_inode)->i_ctime_ms; MSDOS_I(new_inode)->i_ctime_ms = MSDOS_I(old_inode)->i_ctime_ms;
MSDOS_I(new_inode)->i_start = MSDOS_I(old_inode)->i_start; MSDOS_I(new_inode)->i_start = MSDOS_I(old_inode)->i_start;
MSDOS_I(new_inode)->i_logstart = MSDOS_I(old_inode)->i_logstart; MSDOS_I(new_inode)->i_logstart = MSDOS_I(old_inode)->i_logstart;
MSDOS_I(new_inode)->i_attrs = MSDOS_I(old_inode)->i_attrs; MSDOS_I(new_inode)->i_attrs = MSDOS_I(old_inode)->i_attrs;
fat_cache_inval_inode(old_inode);
mark_inode_dirty(new_inode); mark_inode_dirty(new_inode);
old_dir->i_version = ++event; old_dir->i_version = ++event;
......
...@@ -200,7 +200,8 @@ static inline void flush_tlb_range(struct mm_struct *mm, ...@@ -200,7 +200,8 @@ static inline void flush_tlb_range(struct mm_struct *mm,
* memory. * memory.
*/ */
#define _PAGE_PRESENT 0x001 #define _PAGE_PRESENT 0x001
#define _PAGE_RW 0x002 #define _PAGE_PROTNONE 0x002 /* If not present */
#define _PAGE_RW 0x002 /* If present */
#define _PAGE_USER 0x004 #define _PAGE_USER 0x004
#define _PAGE_WT 0x008 #define _PAGE_WT 0x008
#define _PAGE_PCD 0x010 #define _PAGE_PCD 0x010
...@@ -213,7 +214,7 @@ static inline void flush_tlb_range(struct mm_struct *mm, ...@@ -213,7 +214,7 @@ static inline void flush_tlb_range(struct mm_struct *mm,
#define _KERNPG_TABLE (_PAGE_PRESENT | _PAGE_RW | _PAGE_ACCESSED | _PAGE_DIRTY) #define _KERNPG_TABLE (_PAGE_PRESENT | _PAGE_RW | _PAGE_ACCESSED | _PAGE_DIRTY)
#define _PAGE_CHG_MASK (PAGE_MASK | _PAGE_ACCESSED | _PAGE_DIRTY) #define _PAGE_CHG_MASK (PAGE_MASK | _PAGE_ACCESSED | _PAGE_DIRTY)
#define PAGE_NONE __pgprot(_PAGE_PRESENT | _PAGE_ACCESSED) #define PAGE_NONE __pgprot(_PAGE_PROTNONE | _PAGE_ACCESSED)
#define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_RW | _PAGE_USER | _PAGE_ACCESSED) #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_RW | _PAGE_USER | _PAGE_ACCESSED)
#define PAGE_COPY __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_ACCESSED) #define PAGE_COPY __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_ACCESSED)
#define PAGE_READONLY __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_ACCESSED) #define PAGE_READONLY __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_ACCESSED)
...@@ -291,7 +292,7 @@ do { \ ...@@ -291,7 +292,7 @@ do { \
} while (0) } while (0)
#define pte_none(x) (!pte_val(x)) #define pte_none(x) (!pte_val(x))
#define pte_present(x) (pte_val(x) & _PAGE_PRESENT) #define pte_present(x) (pte_val(x) & (_PAGE_PRESENT | _PAGE_PROTNONE))
#define pte_clear(xp) do { pte_val(*(xp)) = 0; } while (0) #define pte_clear(xp) do { pte_val(*(xp)) = 0; } while (0)
#define pmd_none(x) (!pmd_val(x)) #define pmd_none(x) (!pmd_val(x))
...@@ -489,9 +490,9 @@ extern inline void update_mmu_cache(struct vm_area_struct * vma, ...@@ -489,9 +490,9 @@ extern inline void update_mmu_cache(struct vm_area_struct * vma,
{ {
} }
#define SWP_TYPE(entry) (((entry) >> 1) & 0x7f) #define SWP_TYPE(entry) (((entry) >> 2) & 0x3f)
#define SWP_OFFSET(entry) ((entry) >> 8) #define SWP_OFFSET(entry) ((entry) >> 8)
#define SWP_ENTRY(type,offset) (((type) << 1) | ((offset) << 8)) #define SWP_ENTRY(type,offset) (((type) << 2) | ((offset) << 8))
#define module_map vmalloc #define module_map vmalloc
#define module_unmap vfree #define module_unmap vfree
......
...@@ -128,13 +128,6 @@ struct old_sigaction { ...@@ -128,13 +128,6 @@ struct old_sigaction {
void (*sa_restorer)(void); void (*sa_restorer)(void);
}; };
struct sigaction {
__sighandler_t sa_handler;
unsigned long sa_flags;
void (*sa_restorer)(void);
sigset_t sa_mask; /* mask last for extensibility */
};
struct k_sigaction { struct k_sigaction {
struct sigaction sa; struct sigaction sa;
}; };
......
...@@ -124,8 +124,8 @@ extern long ppc_cs4232_dma, ppc_cs4232_dma2; ...@@ -124,8 +124,8 @@ extern long ppc_cs4232_dma, ppc_cs4232_dma2;
#define SND_DMA2 ppc_cs4232_dma2 #define SND_DMA2 ppc_cs4232_dma2
#else #else
#ifdef CONFIG_MSS #ifdef CONFIG_MSS
#define SND_DMA1 MSS_DMA #define SND_DMA1 CONFIG_MSS_DMA
#define SND_DMA2 MSS_DMA2 #define SND_DMA2 CONFIG_MSS_DMA2
#else #else
#define SND_DMA1 -1 #define SND_DMA1 -1
#define SND_DMA2 -1 #define SND_DMA2 -1
......
...@@ -6,8 +6,6 @@ ...@@ -6,8 +6,6 @@
* Laboratory for Computer Science Research Computing Facility * Laboratory for Computer Science Research Computing Facility
* Rutgers, The State University of New Jersey * Rutgers, The State University of New Jersey
* *
* $Id: ufs_fs_i.h,v 1.2 1996/05/03 04:02:25 davem Exp $
*
* NeXTstep support added on February 5th 1998 by * NeXTstep support added on February 5th 1998 by
* Niels Kristian Bech Jensen <nkbj@image.dk>. * Niels Kristian Bech Jensen <nkbj@image.dk>.
*/ */
......
...@@ -6,8 +6,6 @@ ...@@ -6,8 +6,6 @@
* Laboratory for Computer Science Research Computing Facility * Laboratory for Computer Science Research Computing Facility
* Rutgers, The State University of New Jersey * Rutgers, The State University of New Jersey
* *
* $Id: ufs_fs_sb.h,v 1.6 1996/06/01 15:31:08 ecd Exp $
*
* NeXTstep support added on February 5th 1998 by * NeXTstep support added on February 5th 1998 by
* Niels Kristian Bech Jensen <nkbj@image.dk>. * Niels Kristian Bech Jensen <nkbj@image.dk>.
*/ */
......
...@@ -877,12 +877,14 @@ static inline void handle_pte_fault(struct task_struct *tsk, ...@@ -877,12 +877,14 @@ static inline void handle_pte_fault(struct task_struct *tsk,
do_no_page(tsk, vma, address, write_access, pte, entry); do_no_page(tsk, vma, address, write_access, pte, entry);
return; return;
} }
set_pte(pte, pte_mkyoung(entry)); entry = pte_mkyoung(entry);
set_pte(pte, entry);
flush_tlb_page(vma, address); flush_tlb_page(vma, address);
if (!write_access) if (!write_access)
return; return;
if (pte_write(entry)) { if (pte_write(entry)) {
set_pte(pte, pte_mkdirty(entry)); entry = pte_mkdirty(entry);
set_pte(pte, entry);
flush_tlb_page(vma, address); flush_tlb_page(vma, address);
return; return;
} }
......
...@@ -1323,7 +1323,7 @@ void dev_set_promiscuity(struct device *dev, int inc) ...@@ -1323,7 +1323,7 @@ void dev_set_promiscuity(struct device *dev, int inc)
#endif #endif
dev_mc_upload(dev); dev_mc_upload(dev);
printk(KERN_INFO "device %s %s promiscuous mode\n", printk(KERN_INFO "device %s %s promiscuous mode\n",
dev->name, (dev->flags&IFF_PROMISC) ? "entered" : "leaved"); dev->name, (dev->flags&IFF_PROMISC) ? "entered" : "left");
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment