devinfo_usb.c revision 92f381329ebf1c2209df9608670666b32b291e05
/***************************************************************************
*
* devinfo_usb.h : USB devices
*
* Copyright 2006 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"
#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 "hotplug.h"
#include "devinfo.h"
#include "devinfo_usb.h"
NULL,
NULL,
NULL,
NULL,
};
{
char *s;
int *i, *vid;
char *driver_name, *binding_name;
char if_devfs_path[HAL_PATH_MAX];
/*
* we distinguish USB devices by presence of "usb-vendor-id"
* property. should USB devices have "device_type"?
*/
return (NULL);
}
d = hal_device_new ();
/* class, subclass */
/* hal_device_property_set_int (d, "usb_device.device_class", 8); */
/* binding name tells us if driver is bound to interface or device */
d = nd;
}
}
/* driver specific */
} else {
}
out:
return (nd);
} else {
return (d);
}
}
static HalDevice *
{
char udi[HAL_PATH_MAX];
d = hal_device_new ();
hal_device_set_udi (d, udi);
/* copy parent's usb_device.* properties */
return (d);
}
static int
{
return (DI_WALK_TERMINATE);
}
static char *
{
return (devlink);
}
static HalDevice *
{
int major;
char *minor_path = NULL;
char udi[HAL_PATH_MAX];
printf("di_devlink_init() failed\n");
return (NULL);
}
continue;
}
continue;
}
continue;
}
"ddi_ctl:devctl:scsi") == 0) {
}
break;
}
minor_path = NULL;
}
goto out;
}
d = hal_device_new ();
hal_device_property_set_int (d, "scsi_host.host", 0);
hal_device_property_get_int (d, "scsi_host.host"));
hal_device_set_udi (d, udi);
out:
if (devlink) {
}
if (minor_path) {
}
return (d);
}