From owner-freebsd-bugs Mon Apr 10 06:37:46 1995 Return-Path: bugs-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id GAA00240 for bugs-outgoing; Mon, 10 Apr 1995 06:37:46 -0700 Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.34]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id GAA00231 for ; Mon, 10 Apr 1995 06:37:12 -0700 Received: (from bde@localhost) by godzilla.zeta.org.au (8.6.9/8.6.9) id XAA16593; Mon, 10 Apr 1995 23:23:41 +1000 Date: Mon, 10 Apr 1995 23:23:41 +1000 From: Bruce Evans Message-Id: <199504101323.XAA16593@godzilla.zeta.org.au> To: bugs@FreeBSD.org, jan@todonix.ping.de Subject: Re: Cyclades driver bug report Sender: bugs-owner@FreeBSD.org Precedence: bulk >we bought and installed 2 Cyclades Cyclom 8Yo cards, >using FreeBSD-2.0 SNAP 950322. >we found the following problems: >a) the driver only works for one installed card because > of global variables for the IO-Memory and the internal structure > (is there anybody else working on a further version ?) Yes. >... >the kernel found the card, but when trying to use it, to configure >a modem with kermit, we got a kernel trap, reason 'page not found': The driver has some hard-coded configuration that is suitable only for cy16's. The changes at the should allow it to work for ONE cy8. Another cyclades driver was posted to freebsd-current on 31 March. It is more complete but less efficient. Bruce *** cy.c~ Wed Mar 29 05:56:57 1995 --- cy.c Sun Apr 9 23:56:00 1995 *************** *** 60,68 **** #if NCY > 0 ! /* This disgusing hack because we actually have 16 units on one controller */ #if NCY < 2 #undef NCY #define NCY (16) #endif #include --- 63,73 ---- #if NCY > 0 ! #if 0 ! /* This disgusting hack because we actually have 16 units on one controller */ #if NCY < 2 #undef NCY #define NCY (16) #endif + #endif #include *************** *** 126,131 **** /* #define CD1400s_PER_CYCLOM 1 */ /* cyclom-4y */ ! /* #define CD1400s_PER_CYCLOM 2 */ /* cyclom-8y */ ! #define CD1400s_PER_CYCLOM 4 /* cyclom-16y */ /* FreeBSD's getty doesn't know option for setting RTS/CTS handshake. Its --- 131,136 ---- /* #define CD1400s_PER_CYCLOM 1 */ /* cyclom-4y */ ! #define CD1400s_PER_CYCLOM 2 /* cyclom-8y */ ! /* #define CD1400s_PER_CYCLOM 4 */ /* cyclom-16y */ /* FreeBSD's getty doesn't know option for setting RTS/CTS handshake. Its *************** *** 140,145 **** --- 145,152 ---- #define CD1400_MEMSIZE 0x100 /* 256 bytes per chip: cyclom-16y */ /* XXX or is it 0x400 like the rest? */ + #if 0 #define CYCLOM_16 1 /* This is a cyclom-16Y */ #endif + #endif #define PORTS_PER_CYCLOM (CD1400_NO_OF_CHANNELS * CD1400s_PER_CYCLOM)