xref: /titanic_50/usr/src/cmd/hal/hald/solaris/devinfo_usb.h (revision 8a3c961b6b8e22607c570d092514b791eb1519e9)
1 /***************************************************************************
2  *
3  * devinfo_usb.h : definitions for USB devices
4  *
5  * Copyright 2008 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 #pragma ident	"%Z%%M%	%I%	%E% SMI"
13 
14 #ifndef DEVINFO_USB_H
15 #define	DEVINFO_USB_H
16 
17 #include "devinfo.h"
18 
19 #define bcd(a) ((((a) & 0xf000) >> 12) * 1000 + (((a) & 0xf00) >> 8) * 100 + (((a) & 0xf0) >> 4) * 10 + ((a) & 0xf))
20 
21 extern DevinfoDevHandler devinfo_usb_handler;
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