Subject: more S900 and the patch
To: None <port-macppc@netbsd.org>
From: Michael <macallan18@earthlink.net>
List: port-macppc
Date: 07/13/2004 02:58:22
--Apple-Mail-2--274446988
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=US-ASCII;
	format=flowed

Hello,

so yds works on macppc. Well, at least for me :)
opl and mpu don't though - I guess that's why all opl* and mpu* lines 
in GENERIC are commented out? ( they trigger a kernel panic )

Attachements are dmesg output and the patch.

hope it helps
Michael


--Apple-Mail-2--274446988
Content-Transfer-Encoding: 7bit
Content-Type: application/octet-stream;
	x-unix-mode=0644;
	name="log"
Content-Disposition: attachment;
	filename=log

NetBSD 2.0G (MACALLAN) #16: Mon Jul 12 22:45:39 EDT 2004
	ml@Macallan:/usr/src/sys/arch/macppc/compile/MACALLAN
total memory = 224 MB
avail memory = 212 MB
mainbus0 (root)
cpu0 at mainbus0: 750 (Revision 2.2), ID 0 (primary)
cpu0: HID0 8090c0a4<EMCP,DOZE,DPM,ICE,DCE,SGE,BTIC,BHT>
cpu0: 300.01 MHz, no-parity 1MB WB L2 cache (PB SRAM) at 2:1 ratio
bandit0 at mainbus0
pci0 at bandit0 bus 0
pci0: i/o space, memory space enabled
pchb0 at pci0 dev 11 function 0
pchb0: Apple Computer Bandit Host-PCI Bridge (rev. 0x03)
isp0 at pci0 dev 13 function 0: QLogic 1020 Fast Wide SCSI HBA
isp0: interrupting at irq 23
isp0: Ram Checksum Failure
ofb0 at pci0 dev 14 function 0: 3Dfx Interactive Voodoo3
ofb0: 640 x 480, 8bpp
wsdisplay0 at ofb0 kbdmux 1: console (std, vt100 emulation)
wsmux1: connecting to wsdisplay0
ppb0 at pci0 dev 15 function 0: Digital Equipment DECchip 21052 PCI-PCI Bridge (rev. 0x01)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
ohci0 at pci1 dev 0 function 0: CMD Technology USB0673 (rev. 0x05)
ohci0: interrupting at irq 25
ohci0: OHCI version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: CMD Technology OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
ne0 at pci1 dev 1 function 0: Realtek 8029 Ethernet
ne0: Ethernet address 00:00:e8:e6:a5:74
ne0: 10base2, 10baseT, 10baseT-FDX, auto, default [0x00 0x30] auto
ne0: interrupting at irq 25
yds0 at pci1 dev 2 function 0: Yamaha 724 Audio (rev. 0x05)
yds0: interrupting at irq 25
yds0: ac97: Asahi Kasei AK4540 codec; no 3D stereo
yds0: ac97: ext id 4d00<SECONDARY01,AC97_23,AC97_22,LDAC>
audio0 at yds0: full duplex, mmap, independent
Zoran Corporation product 0x6057 (video multimedia, revision 0x01) at pci1 dev 3 function 0 not configured
opl at yds0 not configured
opl at yds0 not configured
opl at yds0 not configured
opl at yds0 not configured
mpu at yds0 not configured
mpu at yds0 not configured
mpu at yds0 not configured
mpu at yds0 not configured
obio0 at pci0 dev 16 function 0: addr 0xf3000000
esp0 at obio0 offset 0x10000 irq 12: NCR53C94, 25MHz, SCSI ID 7
scsibus0 at esp0: 8 targets, 8 luns per target
mc0 at obio0 offset 0x11000: irq 14,2,3: address 00:a0:59:03:26:52
zsc0 at obio0 offset 0x13000: irq 15,16
zstty0 at zsc0 channel 0
zstty1 at zsc0 channel 1
awacs0 at obio0 offset 0x14000: irq 17,8,9
audio1 at awacs0: full duplex
swim3 at obio0 offset 0x15000 not configured
adb0 at obio0 offset 0x16000 irq 18: 1 targets
aed0 at adb0 addr 0: ADB Event device
akbd0 at adb0 addr 2: extended keyboard (ISO layout)
wskbd0 at akbd0: console keyboard, using wsdisplay0
mesh0 at obio0 offset 0x18000 irq 13: 50MHz, SCSI ID 7
scsibus1 at mesh0: 8 targets, 8 luns per target
nvram0 at obio0 offset 0x1d000
tlp0 at pci0 dev 17 function 0: DECchip 21140 Ethernet, pass 1.2
tlp0: unable to map device registers
scsibus0: waiting 2 seconds for devices to settle...
scsibus1: waiting 2 seconds for devices to settle...
uhidev0 at uhub0 port 2 configuration 1 interface 0
uhidev0: Sun Microsystems Type 6 USB keyboard, rev 1.00/1.02, addr 2, iclass 3/1
ukbd0 at uhidev0: 8 modifier keys, 6 key codes
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
sd0 at scsibus1 target 0 lun 0: <SEAGATE, ST34520N, 1281> disk fixed
sd0: drive offline
cd0 at scsibus1 target 3 lun 0: <PIONEER, CD-ROM DR-U03S, 1.01> cdrom removable
sd1 at scsibus1 target 5 lun 0: <IOMEGA, ZIP 100, J.03> disk removable
sd1: drive offline
boot device: sd0
root on sd0a dumps on sd0b
root file system type: ffs

--Apple-Mail-2--274446988
Content-Transfer-Encoding: 7bit
Content-Type: application/octet-stream;
	x-unix-mode=0644;
	name="patch"
Content-Disposition: attachment;
	filename=patch

Index: src/sys/arch/macppc/pci/pci_machdep.c
===================================================================
RCS file: /cvsroot/src/sys/arch/macppc/pci/pci_machdep.c,v
retrieving revision 1.25
diff --context -r1.25 pci_machdep.c
*** src/sys/arch/macppc/pci/pci_machdep.c	8 Apr 2004 23:58:24 -0000	1.25
--- src/sys/arch/macppc/pci/pci_machdep.c	13 Jul 2004 06:55:07 -0000
***************
*** 369,375 ****
--- 369,387 ----
  			intr &= ~PCI_INTERRUPT_LINE_MASK;
  			intr |= irqs[0] & PCI_INTERRUPT_LINE_MASK;
  			pci_conf_write(pc, tag, PCI_INTERRUPT_REG, intr);
+ 		} else
+ 		{
+ 		#ifdef DEBUG_PCI
+ 			printf("fixing interrupt...\n");
+ 		#endif
+ 			if(find_node_intr(node, &addr[0].phys_hi, irqs) == -1)
+ 				continue;
+ 			intr = pci_conf_read(pc, tag, PCI_INTERRUPT_REG);
+ 			intr &= ~PCI_INTERRUPT_LINE_MASK;
+ 			intr |= irqs[0] & PCI_INTERRUPT_LINE_MASK;
+ 			pci_conf_write(pc, tag, PCI_INTERRUPT_REG, intr);	
  		}
+ 			
  	}
  }
  

--Apple-Mail-2--274446988--