FreeBSD/contrib/pnpinfo/pnpinfo.c
/*
 * Send Initiation LFSR as described in "Plug and Play ISA Specification,
 * Intel May 94."
 */
Send Initiation LFSR as described in "Plug and Play ISA Specification,
Intel May 94."
Send Initiation LFSR as described in " Plug and Play ISA Specification Intel May 94 . "
void
send_Initiation_LFSR()
{
    int cur, i;
    pnp_write(PNP_CONFIG_CONTROL, 0x2);
    outb(_PNP_ADDRESS, 0);
    outb(_PNP_ADDRESS, 0); 
    cur = 0x6a;
    for (i = 0; i < 32; i++) {
	outb(_PNP_ADDRESS, cur);
	cur = (cur >> 1) | (((cur ^ (cur >> 1)) << 7) & 0xff);
    }
}
void send_Initiation_LFSR ( ) { int cur , i ; pnp_write ( PNP_CONFIG_CONTROL , 0x2 ) ; outb ( _PNP_ADDRESS , 0 ) ; outb ( _PNP_ADDRESS , 0 ) ; cur = 0x6a ; for ( i = 0 ; i < 32 ; i ++ ) { outb ( _PNP_ADDRESS , cur ) ; cur = ( cur >> 1 ) | ( ( ( cur ^ ( cur >> 1 ) ) << 7 ) & 0xff ) ; } }
Send Initiation LFSR as described in "Plug and Play ISA Specification,
 Intel May 94."
Send Initiation LFSR as described in " Plug and Play ISA Specification Intel May 94 . "
/* Reset the LSFR */ /* yes, we do need it twice! */