1*1fbab01aSdholland /* $NetBSD: btdev.h,v 1.10 2015/09/06 06:01:00 dholland Exp $ */ 2a5c89047Sgdamore 3a5c89047Sgdamore /*- 4a5c89047Sgdamore * Copyright (c) 2006 Itronix Inc. 5a5c89047Sgdamore * All rights reserved. 6a5c89047Sgdamore * 7a5c89047Sgdamore * Written by Iain Hibbert for Itronix Inc. 8a5c89047Sgdamore * 9a5c89047Sgdamore * Redistribution and use in source and binary forms, with or without 10a5c89047Sgdamore * modification, are permitted provided that the following conditions 11a5c89047Sgdamore * are met: 12a5c89047Sgdamore * 1. Redistributions of source code must retain the above copyright 13a5c89047Sgdamore * notice, this list of conditions and the following disclaimer. 14a5c89047Sgdamore * 2. Redistributions in binary form must reproduce the above copyright 15a5c89047Sgdamore * notice, this list of conditions and the following disclaimer in the 16a5c89047Sgdamore * documentation and/or other materials provided with the distribution. 17a5c89047Sgdamore * 3. The name of Itronix Inc. may not be used to endorse 18a5c89047Sgdamore * or promote products derived from this software without specific 19a5c89047Sgdamore * prior written permission. 20a5c89047Sgdamore * 21a5c89047Sgdamore * THIS SOFTWARE IS PROVIDED BY ITRONIX INC. ``AS IS'' AND 22a5c89047Sgdamore * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 23a5c89047Sgdamore * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 24a5c89047Sgdamore * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ITRONIX INC. BE LIABLE FOR ANY 25a5c89047Sgdamore * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26a5c89047Sgdamore * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 27a5c89047Sgdamore * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 28a5c89047Sgdamore * ON ANY THEORY OF LIABILITY, WHETHER IN 29a5c89047Sgdamore * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 30a5c89047Sgdamore * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 31a5c89047Sgdamore * POSSIBILITY OF SUCH DAMAGE. 32a5c89047Sgdamore */ 33a5c89047Sgdamore 34a5c89047Sgdamore #ifndef _DEV_BLUETOOTH_BTDEV_H_ 35a5c89047Sgdamore #define _DEV_BLUETOOTH_BTDEV_H_ 36a5c89047Sgdamore 37*1fbab01aSdholland #include <sys/ioccom.h> 38*1fbab01aSdholland 39a5c89047Sgdamore /* btdev attach/detach ioctl's */ 404241fec1Stron #define BTDEV_ATTACH _IOW('b', 14, struct plistref) 414241fec1Stron #define BTDEV_DETACH _IOW('b', 15, struct plistref) 42a5c89047Sgdamore 434f1cbddcSplunky /* btdev properties */ 440f7dbb35Splunky #define BTDEVvendor "vendor-id" 450f7dbb35Splunky #define BTDEVproduct "product-id" 464f1cbddcSplunky #define BTDEVtype "device-type" 474f1cbddcSplunky #define BTDEVladdr "local-bdaddr" 484f1cbddcSplunky #define BTDEVraddr "remote-bdaddr" 49ed4d8d47Splunky #define BTDEVservice "service-name" 50f5db72e7Splunky #define BTDEVmode "link-mode" 51f5db72e7Splunky #define BTDEVauth "auth" 52f5db72e7Splunky #define BTDEVencrypt "encrypt" 53f5db72e7Splunky #define BTDEVsecure "secure" 544f1cbddcSplunky 55a5c89047Sgdamore #endif /* _DEV_BLUETOOTH_BTDEV_H_ */ 56