提交 4e38eb54 编写于 作者: B balrog

Add a virtual HCI.

This implements most of the logic of a real HCI (at least the pieces
marked as mandatory).  It doesn't support keys, authentication etc.
It works on top of the LMP layer, which is not fully emulated because
software never has direct access to it.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5345 c046a42c-6fe2-441c-8c8c-71466251a162
上级 fb599c9a
......@@ -81,7 +81,7 @@ OBJS+=scsi-generic.o
OBJS+=usb.o usb-hub.o usb-linux.o usb-hid.o usb-msd.o usb-wacom.o
OBJS+=usb-serial.o usb-net.o
OBJS+=sd.o ssi-sd.o
OBJS+=bt.o bt-host.o
OBJS+=bt.o bt-host.o bt-hci.o
ifdef CONFIG_BRLAPI
OBJS+= baum.o
......
此差异已折叠。
......@@ -4,6 +4,11 @@
* Copyright (C) 2007 OpenMoko, Inc.
* Written by Andrzej Zaborowski <andrew@openedhand.com>
*
* Useful definitions taken from BlueZ project's headers.
* Copyright (C) 2000-2001 Qualcomm Incorporated
* Copyright (C) 2002-2003 Maxim Krasnyansky <maxk@qualcomm.com>
* Copyright (C) 2002-2006 Marcel Holtmann <marcel@holtmann.org>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of
......@@ -104,6 +109,12 @@ struct bt_device_s {
void bt_device_init(struct bt_device_s *dev, struct bt_scatternet_s *net);
void bt_device_done(struct bt_device_s *dev);
/* bt-hci.c */
struct HCIInfo *bt_new_hci(struct bt_scatternet_s *net);
/* bt-host.c */
struct HCIInfo *bt_host_hci(const char *id);
/* bt-hci-csr.c */
enum {
csrhci_pin_reset,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册