/*
- * $Id: pciutils.h,v 1.12 1999/01/22 21:04:59 mj Exp $
+ * The PCI Utilities -- Declarations
*
- * Linux PCI Utilities -- Declarations
- *
- * Copyright (c) 1997--1999 Martin Mares <mj@atrey.karlin.mff.cuni.cz>
+ * Copyright (c) 1997--2003 Martin Mares <mj@ucw.cz>
*
* Can be freely distributed and used under the terms of the GNU GPL.
*/
#define PCIUTILS_VERSION PCILIB_VERSION
-void __attribute__((noreturn)) die(char *msg, ...);
+#if !defined(__GNUC__)
+#define NONRET
+#define inline
+#else
+#define NONRET __attribute__((noreturn))
+#endif
+
+void die(char *msg, ...) NONRET;
void *xmalloc(unsigned int howmuch);
int parse_generic_option(int i, struct pci_access *pacc, char *optarg);
#define GENOPT_INTEL
#define GENHELP_INTEL
#endif
-#ifdef HAVE_PM_SYSCALLS
-#define GENOPT_SYSCALLS "S"
-#define GENHELP_SYSCALLS "-S\t\tUse direct hardware access via syscalls\n"
-#else
-#define GENOPT_SYSCALLS
-#define GENHELP_SYSCALLS
-#endif
#ifdef HAVE_PM_DUMP
#define GENOPT_DUMP "F:"
#define GENHELP_DUMP "-F <file>\tRead configuration data from given file\n"
#define GENHELP_DUMP
#endif
-#define GENERIC_OPTIONS "G" GENOPT_PROC GENOPT_INTEL GENOPT_SYSCALLS GENOPT_DUMP
-#define GENERIC_HELP GENHELP_PROC GENHELP_INTEL GENHELP_SYSCALLS GENHELP_DUMP \
+#define GENERIC_OPTIONS "G" GENOPT_PROC GENOPT_INTEL GENOPT_DUMP
+#define GENERIC_HELP GENHELP_PROC GENHELP_INTEL GENHELP_DUMP \
"-G\t\tEnable PCI access debugging\n"