Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Jun 2005 13:09:17 -0400
From:      John Baldwin <jhb@FreeBSD.org>
To:        "M. Warner Losh" <imp@bsdimp.com>
Cc:        freebsd-current@freebsd.org, polachok@narod.ru
Subject:   Re: Lucent Win Modem driver (comms/ltmdm)
Message-ID:  <200506221309.18136.jhb@FreeBSD.org>
In-Reply-To: <20050621.141420.48531287.imp@bsdimp.com>
References:  <42A60DAF.000003.32027@pantene.yandex.ru> <200506211444.52693.jhb@FreeBSD.org> <20050621.141420.48531287.imp@bsdimp.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tuesday 21 June 2005 04:14 pm, M. Warner Losh wrote:
> In message: <200506211444.52693.jhb@FreeBSD.org>
>
>             John Baldwin <jhb@FreeBSD.org> writes:
> : On Tuesday 07 June 2005 05:12 pm, Polakov Alexander wrote:
> : > Hi all. I'm new in CURRENT and english is not my native. I want to tell
> : > you my problem. My modem is Lucent Win Modem, and when I used
> : > FreeBSD-STABLE I could compile its driver. Now when I tried into
> : > CURRENT I couldn't. It showed errors like this:
> : >
> : > /usr/obj/usr/ports/comms/ltmdm/work/sys/modules/ltmdm/../../dev/ltmdm/l
> : >tmdm sio.c: In function `lt_pci_find_device':
> : > /usr/obj/usr/ports/comms/ltmdm/work/sys/modules/ltmdm/../../dev/ltmdm/l
> : >tmdm sio.c:748: error: `PCIR_MAPS' undeclared (first use in this
> : > function)
> : >
> : > So, I've made a patch. Where I have to send it if I want to add it into
> : > port(maybe it can be useful for anybody)? Here is it.
> :
> : Actually, the real fix is to change the ltmdmsio.c file to use
> : PCIR_BAR(x) rather than PCIR_MAPS + 4 * x for the rids for its memory and
> : I/O resources. The file can then include a #define for PCIR_BAR for old
> : systems that maps to PCIR_MAPS + 4 * x.
>
> I couldn't get comms/ltmdm to compile on my -current system, even
> before my changes in this area.  Is there some newer version that's
> not in the ports tree that you are using?

No, I was just speaking from reading his patch. :)  I haven't played with 
ltmdm in at least a year or so probably.  It also needs to be patched to use 
hz / 100 rather than '1' for its callout as otherwise it eats up a lot of 
system time with hz = 1000 which current has.

-- 
John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve"  =  http://www.FreeBSD.org



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