1 /***************************************************************************
2  *
3  * devinfo_usb.h : definitions for USB devices
4  *
5  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
6  * Use is subject to license terms.
7  *
8  * Licensed under the Academic Free License version 2.1
9  *
10  **************************************************************************/
11 
12 #ifndef DEVINFO_USB_H
13 #define	DEVINFO_USB_H
14 
15 #include "devinfo.h"
16 
17 #define	bcd(a) ((((a) & 0xf000) >> 12) * 1000 + (((a) & 0xf00) >> 8) * 100 + (((a) & 0xf0) >> 4) * 10 + ((a) & 0xf))
18 
19 extern DevinfoDevHandler devinfo_usb_handler;
20 
21 extern const gchar *devinfo_keyboard_get_prober(HalDevice *d, int *timeout);
22 
23 HalDevice *devinfo_usb_add(HalDevice *parent, di_node_t node, char *devfs_path, char *device_type);
24 
25 #endif /* DEVINFO_USB_H */
26