]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Digicom Systems Inc, makes "softmodems". What this means is simply that
authorphk <phk@FreeBSD.org>
Tue, 13 Sep 1994 03:30:31 +0000 (03:30 +0000)
committerphk <phk@FreeBSD.org>
Tue, 13 Sep 1994 03:30:31 +0000 (03:30 +0000)
commit52a89a0c5763dfa261d70b43dfa937a82f8e8670
tree323279d8d0dd3c02bce9e595206c752fac25c0aa
parent2cb79b8df173d04f18769e7bf0739f4a20686a02
Digicom Systems Inc, makes "softmodems".  What this means is simply that
you download the microcode to the DSP everytime you power on your system.
They provide a dos-program to do so, but no other support.  This commit adds
code to the sio-driver, which implement an ioctl, which will down-load the
micro-code.

To get this functionality, you must define DSI_SOFT_MODEM.

The program to actually employ the ioctl is not included, but the entire
source looks like this:

        #include <sys/ioctl.h>
        #include <stdio.h>

        main()
        {
                unsigned char buffer[100000];
                int i;

                read(0,buffer,100000);
                if((i = ioctl(1,TIOCDSIMICROCODE,buffer)) < 0)
                    perror("ioctl");
                return i;
        }

And you use it like this:
smload < data144b.dsi > /dev/ttyid3

You need to copy the *.DSI files from the dos-media provide with your modem.
You can see what is downloaded by issuing the ATI3 command to the modem.
DSI's scheme for what code you can run on your modem isn't violated by this.

Poul-Henning Kamp
phk@freefall.cdrom.com
sys/dev/sio/sio.c
sys/i386/isa/sio.c
sys/isa/sio.c