diff options
Diffstat (limited to 'sys/dev/bluetooth/bthidev.h')
-rw-r--r-- | sys/dev/bluetooth/bthidev.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/sys/dev/bluetooth/bthidev.h b/sys/dev/bluetooth/bthidev.h index 76765bfaf6d..cfc7341fcdc 100644 --- a/sys/dev/bluetooth/bthidev.h +++ b/sys/dev/bluetooth/bthidev.h @@ -1,5 +1,5 @@ -/* $OpenBSD: bthidev.h,v 1.2 2007/09/01 17:06:26 xsa Exp $ */ -/* $NetBSD: bthidev.h,v 1.1 2006/06/19 15:44:45 gdamore Exp $ */ +/* $OpenBSD: bthidev.h,v 1.3 2008/02/24 21:46:19 uwe Exp $ */ +/* $NetBSD: bthidev.h,v 1.4 2007/11/03 17:41:03 plunky Exp $ */ /*- * Copyright (c) 2006 Itronix Inc. @@ -35,12 +35,15 @@ #ifndef _DEV_BLUETOOTH_BTHIDEV_H_ #define _DEV_BLUETOOTH_BTHIDEV_H_ +#ifdef _KERNEL + #define BTHIDBUSCF_REPORTID 0 #define BTHIDBUSCF_REPORTID_DEFAULT -1 #define bthidevcf_reportid cf_loc[BTHIDBUSCF_REPORTID] #define BTHIDEV_UNK_REPORTID BTHIDBUSCF_REPORTID_DEFAULT +/* HID device header */ struct bthidev { struct device sc_dev; struct btdev *sc_parent; @@ -57,6 +60,7 @@ struct bthidev { LIST_ENTRY(bthidev) sc_next; }; +/* HID device attach arguments */ struct bthidev_attach_args { void *ba_desc; /* descriptor */ int ba_dlen; /* descriptor length */ @@ -70,4 +74,6 @@ struct bthidev_attach_args { (struct bthidev *, uint8_t *, int); }; +#endif /* _KERNEL */ + #endif /* _DEV_BLUETOOTH_BTHIDEV_H_ */ |