qlw_pci.c (5d4e46a1) | qlw_pci.c (bfc185c1) |
---|---|
1/* $OpenBSD: qlw_pci.c,v 1.10 2017/08/17 12:21:31 jsg Exp $ */ | 1/* $OpenBSD: qlw_pci.c,v 1.11 2021/05/01 16:11:16 visa Exp $ */ |
2 3/* 4 * Copyright (c) 2011 David Gwynne <dlg@openbsd.org> 5 * Copyright (c) 2013, 2014 Jonathan Matthew <jmatthew@openbsd.org> 6 * Copyright (c) 2014 Mark Kettenis <kettenis@openbsd.org> 7 * 8 * Permission to use, copy, modify, and distribute this software for any 9 * purpose with or without fee is hereby granted, provided that the above --- 240 unchanged lines hidden (view full) --- 250 sc->sc_firmware = isp_12160_risc_code; 251 break; 252 default: 253 break; 254 } 255#endif 256 257 /* | 2 3/* 4 * Copyright (c) 2011 David Gwynne <dlg@openbsd.org> 5 * Copyright (c) 2013, 2014 Jonathan Matthew <jmatthew@openbsd.org> 6 * Copyright (c) 2014 Mark Kettenis <kettenis@openbsd.org> 7 * 8 * Permission to use, copy, modify, and distribute this software for any 9 * purpose with or without fee is hereby granted, provided that the above --- 240 unchanged lines hidden (view full) --- 250 sc->sc_firmware = isp_12160_risc_code; 251 break; 252 default: 253 break; 254 } 255#endif 256 257 /* |
258 * The standard SCSI initiator ID is 7, but various SGI 259 * machines use 0 as the initiator ID for their onboard SCSI. | 258 * The standard SCSI initiator ID is 7. |
260 * Add-on cards should have a valid nvram, which will override 261 * these defaults. 262 */ | 259 * Add-on cards should have a valid nvram, which will override 260 * these defaults. 261 */ |
263#ifdef __sgi__ 264 sc->sc_initiator[0] = sc->sc_initiator[1] = 0; 265#else | |
266 sc->sc_initiator[0] = sc->sc_initiator[1] = 7; | 262 sc->sc_initiator[0] = sc->sc_initiator[1] = 7; |
267#endif | |
268 269#ifdef __sparc64__ 270 /* 271 * Walk up the Open Firmware device tree until we find a 272 * "scsi-initiator-id" property. 273 */ 274 node = PCITAG_NODE(pa->pa_tag); 275 while (node) { --- 56 unchanged lines hidden --- | 263 264#ifdef __sparc64__ 265 /* 266 * Walk up the Open Firmware device tree until we find a 267 * "scsi-initiator-id" property. 268 */ 269 node = PCITAG_NODE(pa->pa_tag); 270 while (node) { --- 56 unchanged lines hidden --- |