Added macros to parse port code, cointaining the event

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23897 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Oliver Ruiz Dorantes 2008-02-06 17:57:29 +00:00
parent 392eb518d5
commit c9502bbe71

View File

@ -85,6 +85,9 @@ typedef struct bt_hci_device {
#define GET_HCI_ID (1<<3)
#define PACK_PORTCODE(type,hid,data) ((type&0xFF)<<24|(hid&0xFF)<<16|(data&0xFFFF))
#define GET_PORTCODE_TYPE(code) ((code&0xFF000000)>>24)
#define GET_PORTCODE_HID(code) ((code&0x00FF0000)>>16)
#define GET_PORTCODE_DATA(code) ((code&0x0000FFFF))
/* Port drivers can use to send information (1 for all for
at moment refer to ioctl GET_NOTIFICATION_PORT)*/