X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fasm-parisc%2Fpci.h;h=b091f0845662251c76191ac8b5818d7a74ce44ff;hb=90ad8654ffeb336af8c878fdf7bc72e2ac72467a;hp=ba34a4e49d83c1b27c8c1c5b59e4ff90f4fbcba7;hpb=a91482bdcc2e0f6035702e46f1b99043a0893346;p=linux-2.6.git diff --git a/include/asm-parisc/pci.h b/include/asm-parisc/pci.h index ba34a4e49..b091f0845 100644 --- a/include/asm-parisc/pci.h +++ b/include/asm-parisc/pci.h @@ -16,6 +16,28 @@ */ #define PCI_MAX_BUSSES 256 +/* [soapbox on] +** Who the hell can develop stuff without ASSERT or VASSERT? +** No one understands all the modules across all platforms. +** For linux add another dimension - processor architectures. +** +** This should be a standard/global macro used liberally +** in all code. Every respectable engineer I know in HP +** would support this argument. - grant +** [soapbox off] +*/ +#ifdef PCI_DEBUG +#define ASSERT(expr) \ + if(!(expr)) { \ + printk("\n%s:%d: Assertion " #expr " failed!\n", \ + __FILE__, __LINE__); \ + panic(#expr); \ + } +#else +#define ASSERT(expr) +#endif + + /* ** pci_hba_data (aka H2P_OBJECT in HP/UX) **