Exemplo n.º 1
0
void
_pci_bdfprintf (int bus, int device, int function, const char *fmt, ...)
{
    va_list arg;

    print_bdf (bus, device, function);
    va_start(arg, fmt);
    VPRINTF (fmt, arg);
    va_end(arg);
}
Exemplo n.º 2
0
void
_pci_tagprintf (pcitag_t tag, const char *fmt, ...)
{
    va_list arg;
    int bus, device, function;

    _pci_break_tag (tag, &bus, &device, &function); 
    print_bdf (bus, device, function);

    va_start(arg, fmt);
    VPRINTF (fmt, arg);
    va_end(arg);
}
Exemplo n.º 3
0
static void
pci_bdfprintf (int port, int bus, int device, int function,
               const char *fmt, ...)
{
    va_list arg;

    print_bdf (port, bus, device, function);
#ifdef __VARARGS_H
    va_start(arg);
#else
    va_start(arg, fmt);
#endif
    VPRINTF (fmt, arg);
    va_end(arg);
}
Exemplo n.º 4
0
void
pci_tagprintf (pcitag_t tag, const char *fmt, ...)
{
    va_list arg;
    int port, bus, device, function;

    pci_break_tag (tag, &port, &bus, &device, &function);
    print_bdf (port, bus, device, function);

#ifdef __VARARGS_H
    va_start(arg);
#else
    va_start(arg, fmt);
#endif
    VPRINTF (fmt, arg);
    va_end(arg);
}