add symbol for LFSR length

This commit is contained in:
mikel 1997-08-12 07:34:34 +00:00
parent e9aee27fc5
commit 29b21e4e57
1 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: isapnpreg.h,v 1.4 1997/03/20 10:48:02 mycroft Exp $ */
/* $NetBSD: isapnpreg.h,v 1.5 1997/08/12 07:34:34 mikel Exp $ */
/*
* Copyright (c) 1996 Christos Zoulas. All rights reserved.
@ -48,6 +48,7 @@
#define ISAPNP_RDDATA_MAX 0x3ff
#define ISAPNP_LFSR_INIT 0x6A /* Initial value of LFSR sequence */
#define ISAPNP_LFSR_LENGTH 32 /* Number of values in LFSR sequence */
/* Formula to compute the next value */
#define ISAPNP_LFSR_NEXT(v) (((v) >> 1) | (((v) & 1) ^ (((v) & 2) >> 1)) << 7)