2 * The PCI Utilities -- Declarations
4 * Copyright (c) 1997--2003 Martin Mares <mj@ucw.cz>
6 * Can be freely distributed and used under the terms of the GNU GPL.
11 #define PCIUTILS_VERSION PCILIB_VERSION
13 #if !defined(__GNUC__)
17 #define NONRET __attribute__((noreturn))
20 void die(char *msg, ...) NONRET;
21 void *xmalloc(unsigned int howmuch);
22 int parse_generic_option(int i, struct pci_access *pacc, char *optarg);
24 #ifdef HAVE_PM_LINUX_PROC
25 #define GENOPT_PROC "P:"
26 #define GENHELP_PROC "-P <dir>\tUse specified directory instead of " PATH_PROC_BUS_PCI "\n"
31 #ifdef HAVE_PM_INTEL_CONF
32 #define GENOPT_INTEL "H:"
33 #define GENHELP_INTEL "-H <mode>\tUse direct hardware access (<mode> = 1 or 2)\n"
39 #define GENOPT_DUMP "F:"
40 #define GENHELP_DUMP "-F <file>\tRead configuration data from given file\n"
46 #define GENERIC_OPTIONS "G" GENOPT_PROC GENOPT_INTEL GENOPT_DUMP
47 #define GENERIC_HELP GENHELP_PROC GENHELP_INTEL GENHELP_DUMP \
48 "-G\t\tEnable PCI access debugging\n"