1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-15 10:17:20 +00:00

Fix -Wunder and make the sbus code really compile only on sparc64.

This commit is contained in:
Ruslan Ermilov 2005-12-04 10:03:00 +00:00
parent 77cd5a64cf
commit 4cbc44fb19
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=153083

View File

@ -40,7 +40,7 @@ __FBSDID("$FreeBSD$");
#include <dev/ispfw/asm_2100.h>
#include <dev/ispfw/asm_2200.h>
#include <dev/ispfw/asm_2300.h>
#if _MACHINE_ARCH == sparc64
#ifdef __sparc64__
#include <dev/ispfw/asm_1000.h>
#endif
@ -57,7 +57,7 @@ __FBSDID("$FreeBSD$");
#define PCI_PRODUCT_QLOGIC_ISP2300 0x2300
#define PCI_PRODUCT_QLOGIC_ISP2312 0x2312
#define PCI_PRODUCT_QLOGIC_ISP6312 0x6312
#if _MACHINE_ARCH == sparc64
#ifdef __sparc64__
#define SBUS_PRODUCT_QLOGIC_ISP1000 0x1000
#endif
@ -132,7 +132,7 @@ isp_get_firmware(int version, int tgtmode, int devid, const u_int16_t **ptrp)
case PCI_PRODUCT_QLOGIC_ISP6312:
rp = isp_2300_risc_code;
break;
#if _MACHINE_ARCH == sparc64
#ifdef __sparc64__
case SBUS_PRODUCT_QLOGIC_ISP1000:
if (tgtmode)
break;