Date: Thu, 22 Jan 1998 02:11:31 -0800 (PST) From: iwaki@jaist.ac.jp To: freebsd-gnats-submit@FreeBSD.ORG Subject: misc/5542: Inconsistency between LINT and sound_config.h Message-ID: <199801221011.CAA01202@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 5542 >Category: misc >Synopsis: Inconsistency between LINT and sound_config.h >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Jan 22 02:20:01 PST 1998 >Last-Modified: >Originator: Mamoru IWAKI >Organization: Japan Advanced Institute of Science and Technology >Release: 2.2.5-STABLE >Environment: FreeBSD ais-gw2k 2.2.5-STABLE FreeBSD 2.2.5-STABLE #0: Tue Jan 20 20:46:00 JST 1998 root@ais-gw2k:/usr/src/sys/compile/i686-128M-PnP i386 >Description: LINT and i386/isa/sound/sound_config.h contradict with each other. I think it is very confusing. In concrete, LINT has the following lines to set the drq of sbxvi0 and the port of sbmidi0: device sbxvi0 at isa? drq 5 device sbmidi0 at isa? port 0x330 However, the same things are described in a different way in sound_config,h as follows: #ifndef SB16_DMA #ifdef PC98 #define SB16_DMA 3 #else #define SB16_DMA 6 #endif #endif #ifndef SB16MIDI_BASE #ifdef PC98 #define SB16MIDI_BASE 0x80d2 #else #define SB16MIDI_BASE 0x300 #endif #endif especially non-PC98 machines, i.e. PC-AT compatibles. >How-To-Repeat: You can find them in the source tree at least before Jan 20, 1998. >Fix: If LINT should be estimable, I think the following changes will be better: *** sound_config.h Sun Dec 28 09:30:53 1997 --- sound_config.h.new Mon Jan 5 00:47:21 1998 *************** *** 106,112 **** #ifdef PC98 #define SB16_DMA 3 #else ! #define SB16_DMA 6 #endif #endif --- 106,112 ---- #ifdef PC98 #define SB16_DMA 3 #else ! #define SB16_DMA 5 #endif #endif *************** *** 114,120 **** #ifdef PC98 #define SB16MIDI_BASE 0x80d2 #else ! #define SB16MIDI_BASE 0x300 #endif #endif --- 114,120 ---- #ifdef PC98 #define SB16MIDI_BASE 0x80d2 #else ! #define SB16MIDI_BASE 0x330 #endif #endif >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199801221011.CAA01202>