freebsd-ports/sysutils/xmbmon/files/patch-testsmb.c
Sunpoet Po-Chuan Hsieh 15b9e9def8 - Add LICENSE [2]
- Merge sysutils/mbmon [2]
- Add support for Intel 82801I (ICH9) SMBus controller [1]
- Support STAGEDIR [2]

PR:		ports/184521 [1], ports/184628 [2]
Submitted by:	Dmitry S. Luhtionov <mitya@cabletv.dp.ua> [1],
		Muhammad Moinur Rahman <5u623l20@gmail.com> (maintainer) [2]
2013-12-25 15:07:47 +00:00

44 lines
971 B
C

$FreeBSD$
--- testsmb.c Thu Aug 12 07:34:48 2004
+++ testsmb.c Fri Dec 30 23:11:29 2005
@@ -105,8 +105,9 @@
case ID_AMD756:
case ID_AMD766:
case ID_AMD768:
+ case ID_AMD8111_1:
smbus = &smbus_amd;
- fprintf(stderr, "AMD756/766/768 found.\n");
+ fprintf(stderr, "AMD756/766/768/8111 found.\n");
break;
case ID_NFORCE:
smbus = &smbus_amd;
@@ -116,9 +117,9 @@
smbus = &smbus_ali;
fprintf(stderr, "ALi M1535D+ found.\n");
break;
- case ID_AMD8111:
+ case ID_AMD8111_2:
smbus = &smbus_amd8;
- fprintf(stderr, "AMD8111 found.\n");
+ fprintf(stderr, "AMD8111 SMBus 2.0 found.\n");
break;
case ID_NFORCE2:
smbus = &smbus_amd8;
@@ -126,7 +127,7 @@
break;
default:
fprintf(stderr, "No known SMBus(I2C) chip found.\n");
- goto exit;
+ continue;
}
if(OpenIO() == -1) return -1;
@@ -141,7 +142,6 @@
}
CloseIO();
-exit:
; /* dummy statment for gcc 3.4 or after */
} /* endo of Big loop for smb_base candidates */