xref: /haiku/src/add-ons/kernel/drivers/bluetooth/h2/h2generic/h2upper.h (revision 1214ef1b2100f2b3299fc9d8d6142e46f70a4c3f)
1 /*
2  * Copyright 2007 Oliver Ruiz Dorantes, oliver.ruiz.dorantes_at_gmail.com
3  *
4  * All rights reserved. Distributed under the terms of the MIT License.
5  *
6  */
7 
8 #ifndef _H2UPPER_H_
9 #define _H2UPPER_H_
10 
11 #include <util/list.h>
12 
13 #include "h2generic.h"
14 
15 #define PACK_HEADER_PORT(x,y)   (x<<24|y<<16)
16 
17 status_t    post_packet_up(bt_usb_dev* bdev, bt_packet_t type, void* buf);
18 status_t    send_packet(hci_id hid, bt_packet_t type, net_buffer* nbuf);
19 
20 void        sched_tx_processing(bt_usb_dev* bdev);
21 
22 #endif