Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 May 2002 11:34:19 +0300
From:      Ari Suutari <ari.suutari@syncrontech.com>
To:        isdn@FreeBSD.ORG
Subject:   Re: Avm Fritz!PCI v2 and 4.5-STABLE
Message-ID:  <200205101134.19017.ari.suutari@syncrontech.com>
In-Reply-To: <200205101103.07751.ari@suutari.iki.fi>
References:  <200205101103.07751.ari@suutari.iki.fi>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi again,

On Friday 10 May 2002 11:03, Ari Suutari wrote:
> Hi,
>
> I have been playing with an AVM Fritz!PCI v2 card
> on 4.5-STABLE. The card is detected ok and seems
> to work, but if I reboot the machine (via shutdown -r now)
> the machine hangs during boot.
>

=09I found that in i4b_ifpi2_pci.c, in avma1pp2_disable
=09there is a "/* could be wrong*/" before writing
=090x07 into STAT0_OFFSET. I peeked at Linux driver
=09and it looks like that it writes 0x0 when device is disabled.

=09So, I went and changed the source like this:

------clip clip----
*** /tmp/orig   Fri May 10 11:31:30 2002
--- i4b_ifpi2_pci.c     Fri May 10 11:31:41 2002
***************
*** 950,957 ****
        bus_space_handle_t bhandle =3D=20
rman_get_bushandle(sc->sc_resources.io_base[0]);
        bus_space_tag_t btag =3D rman_get_bustag(sc->sc_resources.io_base=
[0]);

!       /* could be wrong */
!       bus_space_write_1(btag, bhandle, STAT0_OFFSET, 0x07);
  }

  static void
--- 950,957 ----
        bus_space_handle_t bhandle =3D=20
rman_get_bushandle(sc->sc_resources.io_base[0]);
        bus_space_tag_t btag =3D rman_get_bustag(sc->sc_resources.io_base=
[0]);

!       /* could still be wrong */
!       bus_space_write_1(btag, bhandle, STAT0_OFFSET, 0x00);
  }

  static void
------clip clip----

=09Tadaaa! I was able to reboot the machine without cycling the power.
=09Maybe someone with card specs could verify if this change is correct ?

=09=09Ari S.


=09

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-isdn" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200205101134.19017.ari.suutari>