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