Fixed chip_offsets[] which I broke in rev.1.53. The offsets aren't

actually offsets, they are offsets scaled by dividing by 2^cy_align.
I use different values for cy_align since the -current values are
unnaturally scaled, so I need different offsets, and the wrong
offsets got committed.

Reported by:	nnd@itfs.nsk.su (N.Dudorov)
This commit is contained in:
Bruce Evans 1997-11-10 15:46:33 +00:00
parent aaa7085e4b
commit 326b780b04
3 changed files with 6 additions and 6 deletions

View File

@ -27,7 +27,7 @@
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: cy.c,v 1.54 1997/09/14 03:19:08 peter Exp $
* $Id: cy.c,v 1.55 1997/09/21 21:40:57 gibbs Exp $
*/
#include "cy.h"
@ -410,7 +410,7 @@ static u_int cy_timeouts;
#endif
static int cy_chip_offset[] = {
0x0000, 0x0200, 0x0400, 0x0600, 0x0100, 0x0300, 0x0500, 0x0700,
0x0000, 0x0400, 0x0800, 0x0c00, 0x0200, 0x0600, 0x0a00, 0x0e00,
};
static int cy_nr_cd1400s[NCY];
static int cy_total_devices;

View File

@ -27,7 +27,7 @@
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: cy.c,v 1.54 1997/09/14 03:19:08 peter Exp $
* $Id: cy.c,v 1.55 1997/09/21 21:40:57 gibbs Exp $
*/
#include "cy.h"
@ -410,7 +410,7 @@ static u_int cy_timeouts;
#endif
static int cy_chip_offset[] = {
0x0000, 0x0200, 0x0400, 0x0600, 0x0100, 0x0300, 0x0500, 0x0700,
0x0000, 0x0400, 0x0800, 0x0c00, 0x0200, 0x0600, 0x0a00, 0x0e00,
};
static int cy_nr_cd1400s[NCY];
static int cy_total_devices;

View File

@ -27,7 +27,7 @@
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: cy.c,v 1.54 1997/09/14 03:19:08 peter Exp $
* $Id: cy.c,v 1.55 1997/09/21 21:40:57 gibbs Exp $
*/
#include "cy.h"
@ -410,7 +410,7 @@ static u_int cy_timeouts;
#endif
static int cy_chip_offset[] = {
0x0000, 0x0200, 0x0400, 0x0600, 0x0100, 0x0300, 0x0500, 0x0700,
0x0000, 0x0400, 0x0800, 0x0c00, 0x0200, 0x0600, 0x0a00, 0x0e00,
};
static int cy_nr_cd1400s[NCY];
static int cy_total_devices;