hci_ldisc.c (e269f90f3d3f7c70cf661c660bf445597261f54a) hci_ldisc.c (a6c511c636848f871f5b7aef38e25e5b894b3b48)
1/*
2 *
3 * Bluetooth HCI UART driver
4 *
5 * Copyright (C) 2000-2001 Qualcomm Incorporated
6 * Copyright (C) 2002-2003 Maxim Krasnyansky <maxk@qualcomm.com>
7 * Copyright (C) 2004-2005 Marcel Holtmann <marcel@holtmann.org>
8 *

--- 380 unchanged lines hidden (view full) ---

389 hdev->flush = hci_uart_flush;
390 hdev->send = hci_uart_send_frame;
391 SET_HCIDEV_DEV(hdev, hu->tty->dev);
392
393 if (test_bit(HCI_UART_RAW_DEVICE, &hu->hdev_flags))
394 set_bit(HCI_QUIRK_RAW_DEVICE, &hdev->quirks);
395
396 if (!test_bit(HCI_UART_RESET_ON_INIT, &hu->hdev_flags))
1/*
2 *
3 * Bluetooth HCI UART driver
4 *
5 * Copyright (C) 2000-2001 Qualcomm Incorporated
6 * Copyright (C) 2002-2003 Maxim Krasnyansky <maxk@qualcomm.com>
7 * Copyright (C) 2004-2005 Marcel Holtmann <marcel@holtmann.org>
8 *

--- 380 unchanged lines hidden (view full) ---

389 hdev->flush = hci_uart_flush;
390 hdev->send = hci_uart_send_frame;
391 SET_HCIDEV_DEV(hdev, hu->tty->dev);
392
393 if (test_bit(HCI_UART_RAW_DEVICE, &hu->hdev_flags))
394 set_bit(HCI_QUIRK_RAW_DEVICE, &hdev->quirks);
395
396 if (!test_bit(HCI_UART_RESET_ON_INIT, &hu->hdev_flags))
397 set_bit(HCI_QUIRK_NO_RESET, &hdev->quirks);
397 set_bit(HCI_QUIRK_RESET_ON_CLOSE, &hdev->quirks);
398
399 if (test_bit(HCI_UART_CREATE_AMP, &hu->hdev_flags))
400 hdev->dev_type = HCI_AMP;
401 else
402 hdev->dev_type = HCI_BREDR;
403
404 if (hci_register_dev(hdev) < 0) {
405 BT_ERR("Can't register HCI device");

--- 189 unchanged lines hidden ---
398
399 if (test_bit(HCI_UART_CREATE_AMP, &hu->hdev_flags))
400 hdev->dev_type = HCI_AMP;
401 else
402 hdev->dev_type = HCI_BREDR;
403
404 if (hci_register_dev(hdev) < 0) {
405 BT_ERR("Can't register HCI device");

--- 189 unchanged lines hidden ---