Subject: Re: Megahertz XJEM3336 Ethernet/Modem PCMCIA Card on a PowerBook 2400
To: Eric Damien Berna <eric@thiel.com>
From: Martin Husemann <martin@duskware.de>
List: port-macppc
Date: 09/21/2000 00:14:40
Hmmm...

> OK, here's the dmesg output listing everything back up the chain from 
> the mhzc lines.

I don't understand the code involved here, but could you try to add the
attached debug printf and see what that says?

Obviously there is no "iosize" options for PCI-cardbus bridges (and it is
not supposed to be necessary, I was told).



Martin

(This is in /usr/src/sys/dev/pcmcia)
*** mhzc.c.orig	Mon Jul 31 11:13:50 2000
--- mhzc.c	Thu Sep 21 00:13:50 2000
***************
*** 318,325 ****
--- 318,328 ----
  	 * Now round it up so that it starts on a 16-byte boundary.
  	 */
  	addr = roundup(addr, 0x10);
  
+ 	printf("mhzc_alloc_ethernet: iobase = %x, iosize = %x, maxaddr = %x, addr = %x\n",
+ 		sc->sc_pf->sc->iobase, sc->sc_pf->sc->iosize, maxaddr, addr);
+ 
  	for (; (addr + 0x10) < maxaddr; addr += 0x10) {
  		if (addr & 0x80)
  			continue;
  		if (pcmcia_io_alloc(sc->sc_pf, addr, 0x10, 0x10,