Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Apr 1995 23:23:41 +1000
From:      Bruce Evans <bde@zeta.org.au>
To:        bugs@freebsd.org, jan@todonix.ping.de
Subject:   Re: Cyclades driver bug report
Message-ID:  <199504101323.XAA16593@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>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 <sys/param.h>
--- 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 <sys/param.h>
***************
*** 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)



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