Re: Anyone ported HCF/HSF modem drivers to FreeBSD?

2003-09-01 Thread Mark Kettenis
   Date: Sun, 31 Aug 2003 15:02:36 -0700 (PDT)
   From: Nate Lawson [EMAIL PROTECTED]

   I asked this on -hackers a little while ago but no response.  I'm curious
   if anyone has made an attempt to port these Winmodem drivers.
   http://www.linuxant.com/drivers/

I did look into it, but concluded that it was pretty hopeless.  For
starters, the DSP routines in there seem to need the FPU, and FreeBSD
doesn't seem to allow that in the kernel.  Apart from that, almost
100% of the code is in the binary-only modules, including a lot of
Linux-specific code, which makes it very hard to see how the code is
supposed to interface with the kernel.

Mark
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Anyone ported HCF/HSF modem drivers to FreeBSD?

2003-09-01 Thread Daniel O'Connor
On Monday 01 September 2003 08:41, Mark Kettenis wrote:
Date: Sun, 31 Aug 2003 15:02:36 -0700 (PDT)
From: Nate Lawson [EMAIL PROTECTED]

I asked this on -hackers a little while ago but no response.  I'm
 curious if anyone has made an attempt to port these Winmodem drivers.
http://www.linuxant.com/drivers/

 I did look into it, but concluded that it was pretty hopeless.  For
 starters, the DSP routines in there seem to need the FPU, and FreeBSD
 doesn't seem to allow that in the kernel.  Apart from that, almost

I don't think that would be _that_ hard to fix at least for that specific 
driver, but I'm not 100% sure.

 100% of the code is in the binary-only modules, including a lot of
 Linux-specific code, which makes it very hard to see how the code is
 supposed to interface with the kernel.

Have you seen these drivers -
http://www.smlink.com/main/index1.php?ln=enmain_id=32

It seems to support a lot of software modems, ie
HAMR5600 based AMR/CNR/MDC/ACR modem cards on the following Southbridge
chips:
- Intel ICH0, ICH2
- Via 686A, 686B, 8231, 8233
- SiS 630
- ALI 1535.
SmartPCI56, SmartPCI561, SmartPCI563 based PCI modem cards.
SmartUSB56 based USB modem.

And the binary code appears to only call shim routines for which the source is 
available.

-- 
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 9A8C 569F 685A D928 5140  AE4B 319B 41F4 5D17 FDD5

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Anyone ported HCF/HSF modem drivers to FreeBSD?

2003-09-01 Thread Terry Lambert
Daniel O'Connor wrote:
 On Monday 01 September 2003 08:41, Mark Kettenis wrote:
 I asked this on -hackers a little while ago but no response.  I'm
  curious if anyone has made an attempt to port these Winmodem drivers.
 http://www.linuxant.com/drivers/
 
  I did look into it, but concluded that it was pretty hopeless.  For
  starters, the DSP routines in there seem to need the FPU, and FreeBSD
  doesn't seem to allow that in the kernel.  Apart from that, almost
 
 I don't think that would be _that_ hard to fix at least for that specific
 driver, but I'm not 100% sure.

I ported the HCF driver for use on my Sony VAIO, a while back,
and the author of the thing was kind enough to compile it as
PIC so that I could load it as a kernel module.

The FPU stuff is pretty embedded; without disassembling, changing,
and reassembling the code, which is prohibited by the license,
there's really no way to yank the FPU stuff out.  So you have to
change the lazy FPU context switching, to enable use of the FPU
inside the kernel.  Which really blows, on many levels.


  100% of the code is in the binary-only modules, including a lot of
  Linux-specific code, which makes it very hard to see how the code is
  supposed to interface with the kernel.
 
 Have you seen these drivers -
 http://www.smlink.com/main/index1.php?ln=enmain_id=32

No good for the HCF modems.


 And the binary code appears to only call shim routines for which the source is
 available.

The HCF drivers have threading and timer code dependencies.  They
also have an expectation of being able to import symbols from the
Linux kernel (though most of them actually use a jump-table via a
registration function that you pass a structure to).

The main problem I ran into was the FPU code; the next main problem
was the PIC code (as I said, though, the author was willing to go
PIC on the code, and I believe that's still how it's now distributed
for Linux).  The next main problem was emulating enough of the Linux
kernel environment to pass glue functions down to the modem (and the
big mess there was interval timers -- the driver tends to use a lot
of CPU time).

I would really recommend what I ended up doing, which is leaving the
FPU code along and using a real modem in a PCMCIA slot, instead.

-- Terry
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Anyone ported HCF/HSF modem drivers to FreeBSD?

2003-08-31 Thread Larry Rosenman


--On Sunday, August 31, 2003 15:02:36 -0700 Nate Lawson [EMAIL PROTECTED] 
wrote:

I asked this on -hackers a little while ago but no response.  I'm curious
if anyone has made an attempt to port these Winmodem drivers.
http://www.linuxant.com/drivers/
I've been asking for a year and a half, and nobody's expressed an interest.

I have an HSF modem in this laptop:
pci0: simple comms at device 31.6 (no driver attached)
[EMAIL PROTECTED]:31:6:class=0x070300 card=0x10d110cf chip=0x24868086 
rev=0x02
hdr=0x00

[EMAIL PROTECTED]:31:6:class=0x070300 card=0x10d110cf chip=0x24868086 
rev=0x02
hdr=0x00
   vendor   = 'Intel Corporation'
   device   = '82801CA/CAM (ICH3-S/ICH3-M) AC'97 Modem Controller'
   class= simple comms

-Nate
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


--
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 972-414-9812 E-Mail: [EMAIL PROTECTED]
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]