Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 21197
Collapse All | Expand All

(-)ecc-devel/ecc.c (-4 / +13 lines)
Lines 12-17 Link Here
12
 *	Jonathan Lundell <jlundell at resilience dot com>
12
 *	Jonathan Lundell <jlundell at resilience dot com>
13
 */
13
 */
14
14
15
#include <linux/config.h> /* retrieve the CONFIG_* macros */
16
#if defined(CONFIG_MODVERSIONS) && !defined(MODVERSIONS)
17
#  define MODVERSIONS /* force it on */
18
#endif
19
20
#ifdef MODVERSIONS
21
#  include <linux/modversions.h>
22
#endif
23
15
#define DEBUG	0
24
#define DEBUG	0
16
25
17
#if (LINUX_VERSION_CODE < 0x020401)
26
#if (LINUX_VERSION_CODE < 0x020401)
Lines 42-49 Link Here
42
51
43
#define	ECC_VER	"development"
52
#define	ECC_VER	"development"
44
53
45
#define min(a,b)	((a)<(b)?(a):(b))
54
#define emin(a,b)	((a)<(b)?(a):(b))
46
#define max(a,b)	((a)>(b)?(a):(b))
55
#define emax(a,b)	((a)>(b)?(a):(b))
47
56
48
static int ecc_scrub = -1;
57
static int ecc_scrub = -1;
49
static int ecc_ticks = HZ;
58
static int ecc_ticks = HZ;
Lines 416-423 Link Here
416
		{
425
		{
417
			bank[loop].mtype = BANK_SDR;
426
			bank[loop].mtype = BANK_SDR;
418
			bank[loop].eccmode = cs.ecc_mode;
427
			bank[loop].eccmode = cs.ecc_mode;
419
			bank[loop].endaddr = min(pci_byte(0x81+loop*2),total_base64MB)<<26;
428
			bank[loop].endaddr = emin(pci_byte(0x81+loop*2),total_base64MB)<<26;
420
			max_endaddr = max(max_endaddr,bank[loop].endaddr);
429
			max_endaddr = emax(max_endaddr,bank[loop].endaddr);
421
		}
430
		}
422
		else
431
		else
423
		{
432
		{

Return to bug 21197