/***************************************************************************
*
* devinfo_pci.c : PCI devices
*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*
* Licensed under the Academic Free License version 2.1
*
**************************************************************************/
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <stdio.h>
#include <string.h>
#include <libdevinfo.h>
#include "../osspec.h"
#include "../logger.h"
#include "../hald.h"
#include "../hald_dbus.h"
#include "../device_info.h"
#include "../util.h"
#include "../ids.h"
#include "devinfo_pci.h"
HalDevice *devinfo_pci_add (HalDevice *parent, di_node_t node, char *devfs_path, char *device_type);
NULL,
NULL,
NULL,
NULL,
};
{
HalDevice *d;
char *s;
int *i;
if ((device_type == NULL) ||
return (NULL);
} else {
return (NULL);
}
}
}
d = hal_device_new ();
vid = i[0];
}
pid = i[0];
}
svid = i[0];
}
spid = i[0];
}
{
char *vendor_name;
char *product_name;
char *subsys_vendor_name;
char *subsys_product_name;
hal_device_property_get_int (d, "pci.product_id"),
hal_device_property_get_int (d, "pci.subsys_vendor_id"),
hal_device_property_get_int (d, "pci.subsys_product_id"),
if (vendor_name != NULL) {
}
if (product_name != NULL) {
}
if (subsys_vendor_name != NULL) {
hal_device_property_set_string (d, "pci.subsys_vendor",
}
if (subsys_product_name != NULL) {
}
}
return (d);
}