xref: /onnv-gate/usr/src/cmd/hal/hald/solaris/devinfo_usb.h (revision 9608:c0413dca22b0)
12912Sartem /***************************************************************************
22912Sartem  *
32912Sartem  * devinfo_usb.h : definitions for USB devices
42912Sartem  *
5*9608SLin.Guo@Sun.COM  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
62912Sartem  * Use is subject to license terms.
72912Sartem  *
82912Sartem  * Licensed under the Academic Free License version 2.1
92912Sartem  *
102912Sartem  **************************************************************************/
112912Sartem 
122912Sartem #ifndef DEVINFO_USB_H
136112Sqz150045 #define	DEVINFO_USB_H
142912Sartem 
152912Sartem #include "devinfo.h"
162912Sartem 
17*9608SLin.Guo@Sun.COM #define	bcd(a) ((((a) & 0xf000) >> 12) * 1000 + (((a) & 0xf00) >> 8) * 100 + (((a) & 0xf0) >> 4) * 10 + ((a) & 0xf))
186112Sqz150045 
192912Sartem extern DevinfoDevHandler devinfo_usb_handler;
202912Sartem 
21*9608SLin.Guo@Sun.COM extern const gchar *devinfo_keyboard_get_prober(HalDevice *d, int *timeout);
22*9608SLin.Guo@Sun.COM 
236112Sqz150045 HalDevice *devinfo_usb_add(HalDevice *parent, di_node_t node, char *devfs_path, char *device_type);
246112Sqz150045 
252912Sartem #endif /* DEVINFO_USB_H */
26