X-Git-Url: https://git.kernelconcepts.de/?a=blobdiff_plain;f=include%2Fcommon.h;h=ac2a57d9a329c7337d1f00a68b770a60d322ac3d;hb=4d75a504d00e65253229e1d1b798a7c37041f078;hp=a950cdcc40cbebddd60a74f5b31cc00ca74f2f1e;hpb=2262cfeef91458b01a1bfe3812ccbbfdf8b82807;p=karo-tx-uboot.git diff --git a/include/common.h b/include/common.h index a950cdcc40..ac2a57d9a3 100644 --- a/include/common.h +++ b/include/common.h @@ -80,6 +80,18 @@ typedef void (interrupt_handler_t)(void *); #endif +/* + * General Purpose Utilities + */ +#define min(X, Y) \ + ({ typeof (X) __x = (X), __y = (Y); \ + (__x < __y) ? __x : __y; }) + +#define max(X, Y) \ + ({ typeof (X) __x = (X), __y = (Y); \ + (__x > __y) ? __x : __y; }) + + /* * Function Prototypes */ @@ -137,10 +149,11 @@ void setenv (char *, char *); # include /* ARM version to be fixed! */ #endif /* CONFIG_ARM */ #ifdef CONFIG_I386 /* x86 version to be fixed! */ -# include +# include #endif /* CONFIG_I386 */ void pci_init (void); +void pci_init_board(void); void pciinfo (int, int); #if defined(CONFIG_PCI) && defined(CONFIG_440)