diff --git a/sys/conf/NOTES b/sys/conf/NOTES index d69cd310ca35..1d99f5d5707d 100644 --- a/sys/conf/NOTES +++ b/sys/conf/NOTES @@ -410,6 +410,15 @@ options LIBMCHAIN options NETGRAPH #netgraph(4) system options NETGRAPH_ASYNC options NETGRAPH_ATMLLC +options NETGRAPH_ATM_ATMPIF +options NETGRAPH_BLUETOOTH # ng_bluetooth(4) +options NETGRAPH_BLUETOOTH_BT3C # ng_bt3c(4) +options NETGRAPH_BLUETOOTH_H4 # ng_h4(4) +options NETGRAPH_BLUETOOTH_HCI # ng_hci(4) +options NETGRAPH_BLUETOOTH_L2CAP # ng_l2cap(4) +options NETGRAPH_BLUETOOTH_SOCKET # ng_btsocket(4) +options NETGRAPH_BLUETOOTH_UBT # ng_ubt(4) +options NETGRAPH_BLUETOOTH_UBTBCMFW # ubtbcmfw(4) options NETGRAPH_BPF options NETGRAPH_BRIDGE options NETGRAPH_CISCO @@ -439,17 +448,6 @@ options NETGRAPH_TEE options NETGRAPH_TTY options NETGRAPH_UI options NETGRAPH_VJC -options NETGRAPH_ATM_ATMPIF - -# NgBluetooth - Netgraph Bluetooth -options NETGRAPH_BLUETOOTH # Common parts -options NETGRAPH_BLUETOOTH_BT3C # 3COM Bluetooth PCCARD -options NETGRAPH_BLUETOOTH_H4 # H4 line discipline -options NETGRAPH_BLUETOOTH_UBT # Bluetooth USB dongle -options NETGRAPH_BLUETOOTH_UBTBCMFW # Firmware driver for BCM2033 -options NETGRAPH_BLUETOOTH_HCI # Bluetooth HCI layer -options NETGRAPH_BLUETOOTH_L2CAP # Bluetooth L2CAP layer -options NETGRAPH_BLUETOOTH_SOCKET # Bluetooth sockets layer # NgATM - Netgraph ATM options NGATM_ATM diff --git a/sys/conf/kern.pre.mk b/sys/conf/kern.pre.mk index fddeca105377..83afd1ed729e 100644 --- a/sys/conf/kern.pre.mk +++ b/sys/conf/kern.pre.mk @@ -63,15 +63,6 @@ INCLUDES+= -I$S/contrib/dev/ath -I$S/contrib/dev/ath/freebsd # ... and the same for the NgATM stuff INCLUDES+= -I$S/contrib/ngatm -# ... and the same for the NgBluetooth stuff -INCLUDES+= -I$S/netgraph/bluetooth/include -INCLUDES+= -I$S/netgraph/bluetooth/drivers/bt3c -INCLUDES+= -I$S/netgraph/bluetooth/drivers/h4 -INCLUDES+= -I$S/netgraph/bluetooth/drivers/ubt -INCLUDES+= -I$S/netgraph/bluetooth/drivers/ubtbcmfw -INCLUDES+= -I$S/netgraph/bluetooth/hci -INCLUDES+= -I$S/netgraph/bluetooth/l2cap - COPTS= ${INCLUDES} -D_KERNEL -include opt_global.h CFLAGS= ${COPTFLAGS} ${CWARNFLAGS} ${DEBUG} ${COPTS} .if ${CC} != "icc" diff --git a/sys/conf/options b/sys/conf/options index 0c157dcf0969..2191fe739e94 100644 --- a/sys/conf/options +++ b/sys/conf/options @@ -351,6 +351,15 @@ XBONEHACK NETGRAPH NETGRAPH_ASYNC opt_netgraph.h NETGRAPH_ATMLLC opt_netgraph.h +NETGRAPH_ATM_ATMPIF opt_netgraph.h +NETGRAPH_BLUETOOTH opt_netgraph.h +NETGRAPH_BLUETOOTH_BT3C opt_netgraph.h +NETGRAPH_BLUETOOTH_H4 opt_netgraph.h +NETGRAPH_BLUETOOTH_HCI opt_netgraph.h +NETGRAPH_BLUETOOTH_L2CAP opt_netgraph.h +NETGRAPH_BLUETOOTH_SOCKET opt_netgraph.h +NETGRAPH_BLUETOOTH_UBT opt_netgraph.h +NETGRAPH_BLUETOOTH_UBTBCMFW opt_netgraph.h NETGRAPH_BPF opt_netgraph.h NETGRAPH_BRIDGE opt_netgraph.h NETGRAPH_CISCO opt_netgraph.h @@ -380,17 +389,6 @@ NETGRAPH_TEE opt_netgraph.h NETGRAPH_TTY opt_netgraph.h NETGRAPH_UI opt_netgraph.h NETGRAPH_VJC opt_netgraph.h -NETGRAPH_ATM_ATMPIF opt_netgraph.h - -# NgBluetooth options -NETGRAPH_BLUETOOTH opt_netgraph.h -NETGRAPH_BLUETOOTH_BT3C opt_netgraph.h -NETGRAPH_BLUETOOTH_H4 opt_netgraph.h -NETGRAPH_BLUETOOTH_UBT opt_netgraph.h -NETGRAPH_BLUETOOTH_UBTBCMFW opt_netgraph.h -NETGRAPH_BLUETOOTH_HCI opt_netgraph.h -NETGRAPH_BLUETOOTH_L2CAP opt_netgraph.h -NETGRAPH_BLUETOOTH_SOCKET opt_netgraph.h # NgATM options NGATM_ATM opt_netgraph.h diff --git a/sys/netgraph/bluetooth/common/ng_bluetooth.c b/sys/netgraph/bluetooth/common/ng_bluetooth.c index bf4b06615112..73f826630714 100644 --- a/sys/netgraph/bluetooth/common/ng_bluetooth.c +++ b/sys/netgraph/bluetooth/common/ng_bluetooth.c @@ -35,7 +35,7 @@ #include #include -#include "ng_bluetooth.h" +#include /* * Bluetooth stack sysctl globals diff --git a/sys/netgraph/bluetooth/drivers/bt3c/ng_bt3c_pccard.c b/sys/netgraph/bluetooth/drivers/bt3c/ng_bt3c_pccard.c index 674b4a7e1a00..656d20c2574d 100644 --- a/sys/netgraph/bluetooth/drivers/bt3c/ng_bt3c_pccard.c +++ b/sys/netgraph/bluetooth/drivers/bt3c/ng_bt3c_pccard.c @@ -64,10 +64,10 @@ #include #include #include -#include -#include -#include "ng_bt3c.h" -#include "ng_bt3c_var.h" +#include +#include +#include +#include /* Netgraph methods */ static ng_constructor_t ng_bt3c_constructor; diff --git a/sys/netgraph/bluetooth/drivers/h4/ng_h4.c b/sys/netgraph/bluetooth/drivers/h4/ng_h4.c index 8ea68edb3163..41c713eb72fb 100644 --- a/sys/netgraph/bluetooth/drivers/h4/ng_h4.c +++ b/sys/netgraph/bluetooth/drivers/h4/ng_h4.c @@ -51,11 +51,11 @@ #include #include #include -#include -#include -#include "ng_h4.h" -#include "ng_h4_var.h" -#include "ng_h4_prse.h" +#include +#include +#include +#include +#include /***************************************************************************** ***************************************************************************** diff --git a/sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c b/sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c index 676398087f6b..0f730d0985a6 100644 --- a/sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c +++ b/sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c @@ -52,10 +52,10 @@ #include #include #include -#include -#include -#include "ng_ubt.h" -#include "ng_ubt_var.h" +#include +#include +#include +#include /* * USB methods diff --git a/sys/netgraph/bluetooth/hci/ng_hci_cmds.c b/sys/netgraph/bluetooth/hci/ng_hci_cmds.c index 57a9c9d69687..90c085996e89 100644 --- a/sys/netgraph/bluetooth/hci/ng_hci_cmds.c +++ b/sys/netgraph/bluetooth/hci/ng_hci_cmds.c @@ -38,13 +38,13 @@ #include #include #include -#include "ng_bluetooth.h" -#include "ng_hci.h" -#include "ng_hci_var.h" -#include "ng_hci_cmds.h" -#include "ng_hci_evnt.h" -#include "ng_hci_ulpi.h" -#include "ng_hci_misc.h" +#include +#include +#include +#include +#include +#include +#include /****************************************************************************** ****************************************************************************** diff --git a/sys/netgraph/bluetooth/hci/ng_hci_evnt.c b/sys/netgraph/bluetooth/hci/ng_hci_evnt.c index 32c99ff6ebe3..5fe192a8247b 100644 --- a/sys/netgraph/bluetooth/hci/ng_hci_evnt.c +++ b/sys/netgraph/bluetooth/hci/ng_hci_evnt.c @@ -38,13 +38,13 @@ #include #include #include -#include "ng_bluetooth.h" -#include "ng_hci.h" -#include "ng_hci_var.h" -#include "ng_hci_cmds.h" -#include "ng_hci_evnt.h" -#include "ng_hci_ulpi.h" -#include "ng_hci_misc.h" +#include +#include +#include +#include +#include +#include +#include /****************************************************************************** ****************************************************************************** diff --git a/sys/netgraph/bluetooth/hci/ng_hci_main.c b/sys/netgraph/bluetooth/hci/ng_hci_main.c index 4a6a62ddd546..67eaac8c74bf 100644 --- a/sys/netgraph/bluetooth/hci/ng_hci_main.c +++ b/sys/netgraph/bluetooth/hci/ng_hci_main.c @@ -39,14 +39,14 @@ #include #include #include -#include "ng_bluetooth.h" -#include "ng_hci.h" -#include "ng_hci_var.h" -#include "ng_hci_prse.h" -#include "ng_hci_cmds.h" -#include "ng_hci_evnt.h" -#include "ng_hci_ulpi.h" -#include "ng_hci_misc.h" +#include +#include +#include +#include +#include +#include +#include +#include /****************************************************************************** ****************************************************************************** diff --git a/sys/netgraph/bluetooth/hci/ng_hci_misc.c b/sys/netgraph/bluetooth/hci/ng_hci_misc.c index e0ac39c0a5fb..6d0977a6dc1f 100644 --- a/sys/netgraph/bluetooth/hci/ng_hci_misc.c +++ b/sys/netgraph/bluetooth/hci/ng_hci_misc.c @@ -37,13 +37,13 @@ #include #include #include -#include "ng_bluetooth.h" -#include "ng_hci.h" -#include "ng_hci_var.h" -#include "ng_hci_cmds.h" -#include "ng_hci_evnt.h" -#include "ng_hci_ulpi.h" -#include "ng_hci_misc.h" +#include +#include +#include +#include +#include +#include +#include /****************************************************************************** ****************************************************************************** diff --git a/sys/netgraph/bluetooth/hci/ng_hci_ulpi.c b/sys/netgraph/bluetooth/hci/ng_hci_ulpi.c index 195004356973..8d5088493eb7 100644 --- a/sys/netgraph/bluetooth/hci/ng_hci_ulpi.c +++ b/sys/netgraph/bluetooth/hci/ng_hci_ulpi.c @@ -38,13 +38,13 @@ #include #include #include -#include "ng_bluetooth.h" -#include "ng_hci.h" -#include "ng_hci_var.h" -#include "ng_hci_cmds.h" -#include "ng_hci_evnt.h" -#include "ng_hci_ulpi.h" -#include "ng_hci_misc.h" +#include +#include +#include +#include +#include +#include +#include /****************************************************************************** ****************************************************************************** diff --git a/sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.c b/sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.c index 68e57ef987e9..e7089904ad24 100644 --- a/sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.c +++ b/sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.c @@ -38,15 +38,15 @@ #include #include #include -#include "ng_bluetooth.h" -#include "ng_hci.h" -#include "ng_l2cap.h" -#include "ng_l2cap_var.h" -#include "ng_l2cap_cmds.h" -#include "ng_l2cap_evnt.h" -#include "ng_l2cap_llpi.h" -#include "ng_l2cap_ulpi.h" -#include "ng_l2cap_misc.h" +#include +#include +#include +#include +#include +#include +#include +#include +#include /****************************************************************************** ****************************************************************************** diff --git a/sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c b/sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c index ba74a16d7819..9a40d2649ccd 100644 --- a/sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c +++ b/sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c @@ -38,15 +38,15 @@ #include #include #include -#include "ng_bluetooth.h" -#include "ng_hci.h" -#include "ng_l2cap.h" -#include "ng_l2cap_var.h" -#include "ng_l2cap_cmds.h" -#include "ng_l2cap_evnt.h" -#include "ng_l2cap_llpi.h" -#include "ng_l2cap_ulpi.h" -#include "ng_l2cap_misc.h" +#include +#include +#include +#include +#include +#include +#include +#include +#include /****************************************************************************** ****************************************************************************** diff --git a/sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c b/sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c index db64202229e6..8f9e506573f4 100644 --- a/sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c +++ b/sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c @@ -38,15 +38,15 @@ #include #include #include -#include "ng_bluetooth.h" -#include "ng_hci.h" -#include "ng_l2cap.h" -#include "ng_l2cap_var.h" -#include "ng_l2cap_cmds.h" -#include "ng_l2cap_evnt.h" -#include "ng_l2cap_llpi.h" -#include "ng_l2cap_ulpi.h" -#include "ng_l2cap_misc.h" +#include +#include +#include +#include +#include +#include +#include +#include +#include /****************************************************************************** ****************************************************************************** diff --git a/sys/netgraph/bluetooth/l2cap/ng_l2cap_main.c b/sys/netgraph/bluetooth/l2cap/ng_l2cap_main.c index 3117c29db3ec..312424796f4e 100644 --- a/sys/netgraph/bluetooth/l2cap/ng_l2cap_main.c +++ b/sys/netgraph/bluetooth/l2cap/ng_l2cap_main.c @@ -38,16 +38,16 @@ #include #include #include -#include "ng_bluetooth.h" -#include "ng_hci.h" -#include "ng_l2cap.h" -#include "ng_l2cap_var.h" -#include "ng_l2cap_cmds.h" -#include "ng_l2cap_evnt.h" -#include "ng_l2cap_llpi.h" -#include "ng_l2cap_ulpi.h" -#include "ng_l2cap_misc.h" -#include "ng_l2cap_prse.h" +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include /****************************************************************************** ****************************************************************************** diff --git a/sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c b/sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c index d292f840e840..075df7d6fcd7 100644 --- a/sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c +++ b/sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c @@ -37,15 +37,15 @@ #include #include #include -#include "ng_bluetooth.h" -#include "ng_hci.h" -#include "ng_l2cap.h" -#include "ng_l2cap_var.h" -#include "ng_l2cap_cmds.h" -#include "ng_l2cap_evnt.h" -#include "ng_l2cap_llpi.h" -#include "ng_l2cap_ulpi.h" -#include "ng_l2cap_misc.h" +#include +#include +#include +#include +#include +#include +#include +#include +#include static u_int16_t ng_l2cap_get_cid (ng_l2cap_p); diff --git a/sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c b/sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c index 4dd1e6f1d407..ffce0f36c8b2 100644 --- a/sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c +++ b/sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c @@ -38,14 +38,14 @@ #include #include #include -#include "ng_hci.h" -#include "ng_l2cap.h" -#include "ng_l2cap_var.h" -#include "ng_l2cap_cmds.h" -#include "ng_l2cap_evnt.h" -#include "ng_l2cap_llpi.h" -#include "ng_l2cap_ulpi.h" -#include "ng_l2cap_misc.h" +#include +#include +#include +#include +#include +#include +#include +#include /****************************************************************************** ****************************************************************************** diff --git a/sys/netgraph/bluetooth/socket/ng_btsocket.c b/sys/netgraph/bluetooth/socket/ng_btsocket.c index 383a06348267..823925a6a6bd 100644 --- a/sys/netgraph/bluetooth/socket/ng_btsocket.c +++ b/sys/netgraph/bluetooth/socket/ng_btsocket.c @@ -44,13 +44,13 @@ #include #include #include -#include "ng_bluetooth.h" -#include "ng_hci.h" -#include "ng_l2cap.h" -#include "ng_btsocket.h" -#include "ng_btsocket_hci_raw.h" -#include "ng_btsocket_l2cap.h" -#include "ng_btsocket_rfcomm.h" +#include +#include +#include +#include +#include +#include +#include static int ng_btsocket_modevent (module_t, int, void *); extern struct domain ng_btsocket_domain; diff --git a/sys/netgraph/bluetooth/socket/ng_btsocket_hci_raw.c b/sys/netgraph/bluetooth/socket/ng_btsocket_hci_raw.c index 25495ba26da8..ff4930df6505 100644 --- a/sys/netgraph/bluetooth/socket/ng_btsocket_hci_raw.c +++ b/sys/netgraph/bluetooth/socket/ng_btsocket_hci_raw.c @@ -50,11 +50,11 @@ #include #include #include -#include "ng_bluetooth.h" -#include "ng_hci.h" -#include "ng_l2cap.h" -#include "ng_btsocket.h" -#include "ng_btsocket_hci_raw.h" +#include +#include +#include +#include +#include /* MALLOC define */ #ifdef NG_SEPARATE_MALLOC diff --git a/sys/netgraph/bluetooth/socket/ng_btsocket_l2cap.c b/sys/netgraph/bluetooth/socket/ng_btsocket_l2cap.c index 380094a8edca..6e2300489159 100644 --- a/sys/netgraph/bluetooth/socket/ng_btsocket_l2cap.c +++ b/sys/netgraph/bluetooth/socket/ng_btsocket_l2cap.c @@ -50,11 +50,11 @@ #include #include #include -#include "ng_bluetooth.h" -#include "ng_hci.h" -#include "ng_l2cap.h" -#include "ng_btsocket.h" -#include "ng_btsocket_l2cap.h" +#include +#include +#include +#include +#include /* MALLOC define */ #ifdef NG_SEPARATE_MALLOC diff --git a/sys/netgraph/bluetooth/socket/ng_btsocket_l2cap_raw.c b/sys/netgraph/bluetooth/socket/ng_btsocket_l2cap_raw.c index 3bbfe4ba6dd3..d630f868151d 100644 --- a/sys/netgraph/bluetooth/socket/ng_btsocket_l2cap_raw.c +++ b/sys/netgraph/bluetooth/socket/ng_btsocket_l2cap_raw.c @@ -49,11 +49,11 @@ #include #include #include -#include "ng_bluetooth.h" -#include "ng_hci.h" -#include "ng_l2cap.h" -#include "ng_btsocket.h" -#include "ng_btsocket_l2cap.h" +#include +#include +#include +#include +#include /* MALLOC define */ #ifdef NG_SEPARATE_MALLOC diff --git a/sys/netgraph/bluetooth/socket/ng_btsocket_rfcomm.c b/sys/netgraph/bluetooth/socket/ng_btsocket_rfcomm.c index 5b533126229e..437b604398c8 100644 --- a/sys/netgraph/bluetooth/socket/ng_btsocket_rfcomm.c +++ b/sys/netgraph/bluetooth/socket/ng_btsocket_rfcomm.c @@ -52,12 +52,12 @@ #include #include #include -#include "ng_bluetooth.h" -#include "ng_hci.h" -#include "ng_l2cap.h" -#include "ng_btsocket.h" -#include "ng_btsocket_l2cap.h" -#include "ng_btsocket_rfcomm.h" +#include +#include +#include +#include +#include +#include /* MALLOC define */ #ifdef NG_SEPARATE_MALLOC