isp_pci.c (49905) | isp_pci.c (50275) |
---|---|
1/* $Id: isp_pci.c,v 1.29 1999/08/16 01:52:21 gibbs Exp $ */ | 1/* $Id: isp_pci.c,v 1.30 1999/08/16 19:52:29 mjacob Exp $ */ |
2/* 3 * PCI specific probe and attach routines for Qlogic ISP SCSI adapters. 4 * FreeBSD Version. 5 * 6 *--------------------------------------- 7 * Copyright (c) 1997, 1998, 1999 by Matthew Jacob 8 * NASA/Ames Research Center 9 * All rights reserved. --- 561 unchanged lines hidden (view full) --- 571 572 if (getenv_int("isp_seed", &isp->isp_osinfo.seed)) { 573 isp->isp_osinfo.seed <<= 8; 574 isp->isp_osinfo.seed += (unit + 1); 575 } else { 576 /* 577 * poor man's attempt at pseudo randomness. 578 */ | 2/* 3 * PCI specific probe and attach routines for Qlogic ISP SCSI adapters. 4 * FreeBSD Version. 5 * 6 *--------------------------------------- 7 * Copyright (c) 1997, 1998, 1999 by Matthew Jacob 8 * NASA/Ames Research Center 9 * All rights reserved. --- 561 unchanged lines hidden (view full) --- 571 572 if (getenv_int("isp_seed", &isp->isp_osinfo.seed)) { 573 isp->isp_osinfo.seed <<= 8; 574 isp->isp_osinfo.seed += (unit + 1); 575 } else { 576 /* 577 * poor man's attempt at pseudo randomness. 578 */ |
579 long i = (long) isp; | 579 long i = (intptr_t) isp; |
580 581 i >>= 5; 582 i &= 0x7; 583 584 /* 585 * This isn't very random, but it's the best we can do for 586 * the real edge case of cards that don't have WWNs. 587 */ --- 551 unchanged lines hidden --- | 580 581 i >>= 5; 582 i &= 0x7; 583 584 /* 585 * This isn't very random, but it's the best we can do for 586 * the real edge case of cards that don't have WWNs. 587 */ --- 551 unchanged lines hidden --- |