diff options
| author | Kip Macy <kmacy@FreeBSD.org> | 2008-09-23 03:16:54 +0000 |
|---|---|---|
| committer | Kip Macy <kmacy@FreeBSD.org> | 2008-09-23 03:16:54 +0000 |
| commit | 79775f8f1be8dc6ce2b705276b7626cb24347f7d (patch) | |
| tree | 70313b5028b92cfbd58e1fa7157e359079f0295a /sys/dev/cxgb/ulp | |
| parent | 0c6e0345b75185765a56858a31c3baad4fef3489 (diff) | |
Notes
Diffstat (limited to 'sys/dev/cxgb/ulp')
23 files changed, 98 insertions, 239 deletions
diff --git a/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb.c b/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb.c index 6851be986af1..e41ce155a0b7 100644 --- a/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb.c +++ b/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb.c @@ -67,22 +67,12 @@ __FBSDID("$FreeBSD$"); #include <contrib/rdma/ib_verbs.h> - -#ifdef CONFIG_DEFINED #include <cxgb_include.h> #include <ulp/iw_cxgb/iw_cxgb_wr.h> #include <ulp/iw_cxgb/iw_cxgb_hal.h> #include <ulp/iw_cxgb/iw_cxgb_provider.h> #include <ulp/iw_cxgb/iw_cxgb_cm.h> #include <ulp/iw_cxgb/iw_cxgb.h> -#else -#include <dev/cxgb/cxgb_include.h> -#include <dev/cxgb/ulp/iw_cxgb/iw_cxgb_wr.h> -#include <dev/cxgb/ulp/iw_cxgb/iw_cxgb_hal.h> -#include <dev/cxgb/ulp/iw_cxgb/iw_cxgb_provider.h> -#include <dev/cxgb/ulp/iw_cxgb/iw_cxgb_cm.h> -#include <dev/cxgb/ulp/iw_cxgb/iw_cxgb.h> -#endif /* * XXX :-/ diff --git a/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_cm.c b/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_cm.c index cec461147ccc..613d62e31161 100644 --- a/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_cm.c +++ b/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_cm.c @@ -68,8 +68,6 @@ __FBSDID("$FreeBSD$"); #include <contrib/rdma/ib_verbs.h> - -#ifdef CONFIG_DEFINED #include <cxgb_include.h> #include <ulp/tom/cxgb_tom.h> #include <ulp/tom/cxgb_t3_ddp.h> @@ -80,18 +78,6 @@ __FBSDID("$FreeBSD$"); #include <ulp/iw_cxgb/iw_cxgb_provider.h> #include <ulp/iw_cxgb/iw_cxgb_cm.h> #include <ulp/iw_cxgb/iw_cxgb.h> -#else -#include <dev/cxgb/cxgb_include.h> -#include <dev/cxgb/ulp/tom/cxgb_tom.h> -#include <dev/ulp/tom/cxgb_t3_ddp.h> -#include <dev/cxgb/ulp/tom/cxgb_defs.h> -#include <dev/cxgb/ulp/tom/cxgb_toepcb.h> -#include <dev/cxgb/ulp/iw_cxgb/iw_cxgb_wr.h> -#include <dev/cxgb/ulp/iw_cxgb/iw_cxgb_hal.h> -#include <dev/cxgb/ulp/iw_cxgb/iw_cxgb_provider.h> -#include <dev/cxgb/ulp/iw_cxgb/iw_cxgb_cm.h> -#include <dev/cxgb/ulp/iw_cxgb/iw_cxgb.h> -#endif #ifdef KTR static char *states[] = { diff --git a/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_cq.c b/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_cq.c index 93a9e89fd39d..bb564bb5b42b 100644 --- a/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_cq.c +++ b/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_cq.c @@ -63,8 +63,6 @@ __FBSDID("$FreeBSD$"); #include <contrib/rdma/ib_umem.h> #include <contrib/rdma/ib_user_verbs.h> - -#ifdef CONFIG_DEFINED #include <cxgb_include.h> #include <ulp/iw_cxgb/iw_cxgb_wr.h> #include <ulp/iw_cxgb/iw_cxgb_hal.h> @@ -73,16 +71,6 @@ __FBSDID("$FreeBSD$"); #include <ulp/iw_cxgb/iw_cxgb.h> #include <ulp/iw_cxgb/iw_cxgb_resource.h> #include <ulp/iw_cxgb/iw_cxgb_user.h> -#else -#include <dev/cxgb/cxgb_include.h> -#include <dev/cxgb/ulp/iw_cxgb/iw_cxgb_wr.h> -#include <dev/cxgb/ulp/iw_cxgb/iw_cxgb_hal.h> -#include <dev/cxgb/ulp/iw_cxgb/iw_cxgb_provider.h> -#include <dev/cxgb/ulp/iw_cxgb/iw_cxgb_cm.h> -#include <dev/cxgb/ulp/iw_cxgb/iw_cxgb.h> -#include <dev/cxgb/ulp/iw_cxgb/iw_cxgb_resource.h> -#include <dev/cxgb/ulp/iw_cxgb/iw_cxgb_user.h> -#endif /* * Get one cq entry from cxio and map it to openib. diff --git a/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_dbg.c b/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_dbg.c index 8b52119e306e..ac9c74283047 100644 --- a/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_dbg.c +++ b/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_dbg.c @@ -65,7 +65,6 @@ __FBSDID("$FreeBSD$"); #include <contrib/rdma/ib_user_verbs.h> #ifdef DEBUG -#ifdef CONFIG_DEFINED #include <cxgb_include.h> #include <ulp/iw_cxgb/iw_cxgb_wr.h> #include <ulp/iw_cxgb/iw_cxgb_hal.h> @@ -74,16 +73,6 @@ __FBSDID("$FreeBSD$"); #include <ulp/iw_cxgb/iw_cxgb.h> #include <ulp/iw_cxgb/iw_cxgb_resource.h> #include <ulp/iw_cxgb/iw_cxgb_user.h> -#else -#include <dev/cxgb/cxgb_include.h> -#include <dev/cxgb/ulp/iw_cxgb/iw_cxgb_wr.h> -#include <dev/cxgb/ulp/iw_cxgb/iw_cxgb_hal.h> -#include <dev/cxgb/ulp/iw_cxgb/iw_cxgb_provider.h> -#include <dev/cxgb/ulp/iw_cxgb/iw_cxgb_cm.h> -#include <dev/cxgb/ulp/iw_cxgb/iw_cxgb.h> -#include <dev/cxgb/ulp/iw_cxgb/iw_cxgb_resource.h> -#include <dev/cxgb/ulp/iw_cxgb/iw_cxgb_user.h> -#endif void cxio_dump_tpt(struct cxio_rdev *rdev, uint32_t stag) { diff --git a/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_ev.c b/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_ev.c index 2e8154731133..cf0891d7fe73 100644 --- a/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_ev.c +++ b/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_ev.c @@ -63,8 +63,6 @@ __FBSDID("$FreeBSD$"); #include <contrib/rdma/ib_umem.h> #include <contrib/rdma/ib_user_verbs.h> - -#ifdef CONFIG_DEFINED #include <cxgb_include.h> #include <ulp/iw_cxgb/iw_cxgb_wr.h> #include <ulp/iw_cxgb/iw_cxgb_hal.h> @@ -73,16 +71,6 @@ __FBSDID("$FreeBSD$"); #include <ulp/iw_cxgb/iw_cxgb.h> #include <ulp/iw_cxgb/iw_cxgb_resource.h> #include <ulp/iw_cxgb/iw_cxgb_user.h> -#else -#include <dev/cxgb/cxgb_include.h> -#include <dev/cxgb/ulp/iw_cxgb/iw_cxgb_wr.h> -#include <dev/cxgb/ulp/iw_cxgb/iw_cxgb_hal.h> -#include <dev/cxgb/ulp/iw_cxgb/iw_cxgb_provider.h> -#include <dev/cxgb/ulp/iw_cxgb/iw_cxgb_cm.h> -#include <dev/cxgb/ulp/iw_cxgb/iw_cxgb.h> -#include <dev/cxgb/ulp/iw_cxgb/iw_cxgb_resource.h> -#include <dev/cxgb/ulp/iw_cxgb/iw_cxgb_user.h> -#endif static void post_qp_event(struct iwch_dev *rnicp, struct iwch_qp *qhp, struct iwch_cq *chp, diff --git a/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_hal.c b/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_hal.c index 0309b53ba3c0..f2e59d2909e1 100644 --- a/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_hal.c +++ b/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_hal.c @@ -63,8 +63,6 @@ __FBSDID("$FreeBSD$"); #include <contrib/rdma/ib_verbs.h> - -#ifdef CONFIG_DEFINED #include <cxgb_include.h> #include <ulp/iw_cxgb/iw_cxgb_wr.h> #include <ulp/iw_cxgb/iw_cxgb_hal.h> @@ -72,15 +70,6 @@ __FBSDID("$FreeBSD$"); #include <ulp/iw_cxgb/iw_cxgb_cm.h> #include <ulp/iw_cxgb/iw_cxgb.h> #include <ulp/iw_cxgb/iw_cxgb_resource.h> -#else -#include <dev/cxgb/cxgb_include.h> -#include <dev/cxgb/ulp/iw_cxgb/iw_cxgb_wr.h> -#include <dev/cxgb/ulp/iw_cxgb/iw_cxgb_hal.h> -#include <dev/cxgb/ulp/iw_cxgb/iw_cxgb_provider.h> -#include <dev/cxgb/ulp/iw_cxgb/iw_cxgb_cm.h> -#include <dev/cxgb/ulp/iw_cxgb/iw_cxgb.h> -#include <dev/cxgb/ulp/iw_cxgb/iw_cxgb_resource.h> -#endif static TAILQ_HEAD( ,cxio_rdev) rdev_list; static cxio_hal_ev_callback_func_t cxio_ev_cb = NULL; diff --git a/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_mem.c b/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_mem.c index df06f87a9805..c052aa6b2f09 100644 --- a/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_mem.c +++ b/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_mem.c @@ -63,8 +63,6 @@ __FBSDID("$FreeBSD$"); #include <contrib/rdma/ib_umem.h> #include <contrib/rdma/ib_user_verbs.h> - -#ifdef CONFIG_DEFINED #include <cxgb_include.h> #include <ulp/iw_cxgb/iw_cxgb_wr.h> #include <ulp/iw_cxgb/iw_cxgb_hal.h> @@ -73,17 +71,6 @@ __FBSDID("$FreeBSD$"); #include <ulp/iw_cxgb/iw_cxgb.h> #include <ulp/iw_cxgb/iw_cxgb_resource.h> #include <ulp/iw_cxgb/iw_cxgb_user.h> -#else -#include <dev/cxgb/cxgb_include.h> -#include <dev/cxgb/ulp/iw_cxgb/iw_cxgb_wr.h> -#include <dev/cxgb/ulp/iw_cxgb/iw_cxgb_hal.h> -#include <dev/cxgb/ulp/iw_cxgb/iw_cxgb_provider.h> -#include <dev/cxgb/ulp/iw_cxgb/iw_cxgb_cm.h> -#include <dev/cxgb/ulp/iw_cxgb/iw_cxgb.h> -#include <dev/cxgb/ulp/iw_cxgb/iw_cxgb_resource.h> -#include <dev/cxgb/ulp/iw_cxgb/iw_cxgb_user.h> -#endif - int iwch_register_mem(struct iwch_dev *rhp, struct iwch_pd *php, struct iwch_mr *mhp, diff --git a/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_provider.c b/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_provider.c index 4ef7dc5f8c97..bc336a4a625c 100644 --- a/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_provider.c +++ b/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_provider.c @@ -66,10 +66,6 @@ __FBSDID("$FreeBSD$"); #include <contrib/rdma/ib_umem.h> #include <contrib/rdma/ib_user_verbs.h> - - - -#ifdef CONFIG_DEFINED #include <cxgb_include.h> #include <ulp/iw_cxgb/iw_cxgb_wr.h> #include <ulp/iw_cxgb/iw_cxgb_hal.h> @@ -78,17 +74,6 @@ __FBSDID("$FreeBSD$"); #include <ulp/iw_cxgb/iw_cxgb.h> #include <ulp/iw_cxgb/iw_cxgb_resource.h> #include <ulp/iw_cxgb/iw_cxgb_user.h> -#else -#include <dev/cxgb/cxgb_include.h> -#include <dev/cxgb/ulp/iw_cxgb/iw_cxgb_wr.h> -#include <dev/cxgb/ulp/iw_cxgb/iw_cxgb_hal.h> -#include <dev/cxgb/ulp/iw_cxgb/iw_cxgb_provider.h> -#include <dev/cxgb/ulp/iw_cxgb/iw_cxgb_cm.h> -#include <dev/cxgb/ulp/iw_cxgb/iw_cxgb.h> -#include <dev/cxgb/ulp/iw_cxgb/iw_cxgb_resource.h> -#include <dev/cxgb/ulp/iw_cxgb/iw_cxgb_user.h> -#endif - static int iwch_modify_port(struct ib_device *ibdev, diff --git a/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_qp.c b/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_qp.c index 3c203f1b4337..708c35906ab5 100644 --- a/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_qp.c +++ b/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_qp.c @@ -63,8 +63,6 @@ __FBSDID("$FreeBSD$"); #include <contrib/rdma/ib_umem.h> #include <contrib/rdma/ib_user_verbs.h> - -#ifdef CONFIG_DEFINED #include <cxgb_include.h> #include <ulp/iw_cxgb/iw_cxgb_wr.h> #include <ulp/iw_cxgb/iw_cxgb_hal.h> @@ -73,17 +71,6 @@ __FBSDID("$FreeBSD$"); #include <ulp/iw_cxgb/iw_cxgb.h> #include <ulp/iw_cxgb/iw_cxgb_resource.h> #include <ulp/iw_cxgb/iw_cxgb_user.h> -#else -#include <dev/cxgb/cxgb_include.h> -#include <dev/cxgb/ulp/iw_cxgb/iw_cxgb_wr.h> -#include <dev/cxgb/ulp/iw_cxgb/iw_cxgb_hal.h> -#include <dev/cxgb/ulp/iw_cxgb/iw_cxgb_provider.h> -#include <dev/cxgb/ulp/iw_cxgb/iw_cxgb_cm.h> -#include <dev/cxgb/ulp/iw_cxgb/iw_cxgb.h> -#include <dev/cxgb/ulp/iw_cxgb/iw_cxgb_resource.h> -#include <dev/cxgb/ulp/iw_cxgb/iw_cxgb_user.h> -#endif - #define NO_SUPPORT -1 diff --git a/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_resource.c b/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_resource.c index 9d3618fbd57f..1882bcede001 100644 --- a/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_resource.c +++ b/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_resource.c @@ -63,8 +63,6 @@ __FBSDID("$FreeBSD$"); #include <contrib/rdma/ib_umem.h> #include <contrib/rdma/ib_user_verbs.h> - -#ifdef CONFIG_DEFINED #include <cxgb_include.h> #include <ulp/iw_cxgb/iw_cxgb_wr.h> #include <ulp/iw_cxgb/iw_cxgb_hal.h> @@ -73,16 +71,6 @@ __FBSDID("$FreeBSD$"); #include <ulp/iw_cxgb/iw_cxgb.h> #include <ulp/iw_cxgb/iw_cxgb_resource.h> #include <ulp/iw_cxgb/iw_cxgb_user.h> -#else -#include <dev/cxgb/cxgb_include.h> -#include <dev/cxgb/ulp/iw_cxgb/iw_cxgb_wr.h> -#include <dev/cxgb/ulp/iw_cxgb/iw_cxgb_hal.h> -#include <dev/cxgb/ulp/iw_cxgb/iw_cxgb_provider.h> -#include <dev/cxgb/ulp/iw_cxgb/iw_cxgb_cm.h> -#include <dev/cxgb/ulp/iw_cxgb/iw_cxgb.h> -#include <dev/cxgb/ulp/iw_cxgb/iw_cxgb_resource.h> -#include <dev/cxgb/ulp/iw_cxgb/iw_cxgb_user.h> -#endif #ifdef needed static struct buf_ring *rhdl_fifo; diff --git a/sys/dev/cxgb/ulp/toecore/toedev.c b/sys/dev/cxgb/ulp/toecore/toedev.c index 8a6b39f650cd..78d38749857f 100644 --- a/sys/dev/cxgb/ulp/toecore/toedev.c +++ b/sys/dev/cxgb/ulp/toecore/toedev.c @@ -52,12 +52,7 @@ __FBSDID("$FreeBSD$"); /* * XXX */ -#ifdef CONFIG_DEFINED #include <cxgb_include.h> -#else -#include <dev/cxgb/cxgb_include.h> -#endif - static struct mtx offload_db_lock; diff --git a/sys/dev/cxgb/ulp/tom/cxgb_cpl_io.c b/sys/dev/cxgb/ulp/tom/cxgb_cpl_io.c index 2732c57adc91..073d291fc4ab 100644 --- a/sys/dev/cxgb/ulp/tom/cxgb_cpl_io.c +++ b/sys/dev/cxgb/ulp/tom/cxgb_cpl_io.c @@ -68,8 +68,8 @@ __FBSDID("$FreeBSD$"); #include <netinet/in_var.h> -#include <dev/cxgb/cxgb_osdep.h> -#include <dev/cxgb/sys/mbufq.h> +#include <cxgb_osdep.h> +#include <sys/mbufq.h> #include <netinet/ip.h> #include <netinet/tcp_var.h> @@ -80,24 +80,23 @@ __FBSDID("$FreeBSD$"); #include <netinet/tcp_timer.h> #include <net/route.h> -#include <dev/cxgb/t3cdev.h> -#include <dev/cxgb/common/cxgb_firmware_exports.h> -#include <dev/cxgb/common/cxgb_t3_cpl.h> -#include <dev/cxgb/common/cxgb_tcb.h> -#include <dev/cxgb/common/cxgb_ctl_defs.h> -#include <dev/cxgb/cxgb_offload.h> +#include <t3cdev.h> +#include <common/cxgb_firmware_exports.h> +#include <common/cxgb_t3_cpl.h> +#include <common/cxgb_tcb.h> +#include <common/cxgb_ctl_defs.h> +#include <cxgb_offload.h> #include <vm/vm.h> #include <vm/pmap.h> #include <machine/bus.h> -#include <dev/cxgb/sys/mvec.h> -#include <dev/cxgb/ulp/toecore/cxgb_toedev.h> -#include <dev/cxgb/ulp/tom/cxgb_defs.h> -#include <dev/cxgb/ulp/tom/cxgb_tom.h> -#include <dev/cxgb/ulp/tom/cxgb_t3_ddp.h> -#include <dev/cxgb/ulp/tom/cxgb_toepcb.h> -#include <dev/cxgb/ulp/tom/cxgb_tcp.h> - -#include <dev/cxgb/ulp/tom/cxgb_tcp_offload.h> +#include <sys/mvec.h> +#include <ulp/toecore/cxgb_toedev.h> +#include <ulp/tom/cxgb_defs.h> +#include <ulp/tom/cxgb_tom.h> +#include <ulp/tom/cxgb_t3_ddp.h> +#include <ulp/tom/cxgb_toepcb.h> +#include <ulp/tom/cxgb_tcp.h> +#include <ulp/tom/cxgb_tcp_offload.h> /* * For ULP connections HW may add headers, e.g., for digests, that aren't part diff --git a/sys/dev/cxgb/ulp/tom/cxgb_cpl_socket.c b/sys/dev/cxgb/ulp/tom/cxgb_cpl_socket.c index f68089d108d8..9fe39b1911f5 100644 --- a/sys/dev/cxgb/ulp/tom/cxgb_cpl_socket.c +++ b/sys/dev/cxgb/ulp/tom/cxgb_cpl_socket.c @@ -61,22 +61,22 @@ __FBSDID("$FreeBSD$"); #include <netinet/in_systm.h> #include <netinet/in_var.h> -#include <dev/cxgb/cxgb_config.h> -#include <dev/cxgb/cxgb_osdep.h> -#include <dev/cxgb/sys/mbufq.h> -#include <dev/cxgb/ulp/tom/cxgb_tcp_offload.h> +#include <cxgb_config.h> +#include <cxgb_osdep.h> +#include <sys/mbufq.h> +#include <ulp/tom/cxgb_tcp_offload.h> #include <netinet/tcp.h> #include <netinet/tcp_var.h> #include <netinet/tcp_fsm.h> #include <netinet/tcp_offload.h> #include <net/route.h> -#include <dev/cxgb/t3cdev.h> -#include <dev/cxgb/common/cxgb_firmware_exports.h> -#include <dev/cxgb/common/cxgb_t3_cpl.h> -#include <dev/cxgb/common/cxgb_tcb.h> -#include <dev/cxgb/common/cxgb_ctl_defs.h> -#include <dev/cxgb/cxgb_offload.h> +#include <t3cdev.h> +#include <common/cxgb_firmware_exports.h> +#include <common/cxgb_t3_cpl.h> +#include <common/cxgb_tcb.h> +#include <common/cxgb_ctl_defs.h> +#include <cxgb_offload.h> #include <vm/vm.h> #include <vm/vm_page.h> @@ -84,14 +84,14 @@ __FBSDID("$FreeBSD$"); #include <vm/vm_extern.h> #include <vm/pmap.h> -#include <dev/cxgb/sys/mvec.h> -#include <dev/cxgb/ulp/toecore/cxgb_toedev.h> -#include <dev/cxgb/ulp/tom/cxgb_defs.h> -#include <dev/cxgb/ulp/tom/cxgb_tom.h> -#include <dev/cxgb/ulp/tom/cxgb_t3_ddp.h> -#include <dev/cxgb/ulp/tom/cxgb_toepcb.h> -#include <dev/cxgb/ulp/tom/cxgb_tcp.h> -#include <dev/cxgb/ulp/tom/cxgb_vm.h> +#include <sys/mvec.h> +#include <ulp/toecore/cxgb_toedev.h> +#include <ulp/tom/cxgb_defs.h> +#include <ulp/tom/cxgb_tom.h> +#include <ulp/tom/cxgb_t3_ddp.h> +#include <ulp/tom/cxgb_toepcb.h> +#include <ulp/tom/cxgb_tcp.h> +#include <ulp/tom/cxgb_vm.h> static int (*pru_sosend)(struct socket *so, struct sockaddr *addr, diff --git a/sys/dev/cxgb/ulp/tom/cxgb_ddp.c b/sys/dev/cxgb/ulp/tom/cxgb_ddp.c index fa2929eb5ef6..09a9d3acac0e 100644 --- a/sys/dev/cxgb/ulp/tom/cxgb_ddp.c +++ b/sys/dev/cxgb/ulp/tom/cxgb_ddp.c @@ -60,22 +60,22 @@ __FBSDID("$FreeBSD$"); #include <netinet/in_var.h> -#include <dev/cxgb/cxgb_osdep.h> -#include <dev/cxgb/sys/mbufq.h> +#include <cxgb_osdep.h> +#include <sys/mbufq.h> -#include <dev/cxgb/ulp/tom/cxgb_tcp_offload.h> +#include <ulp/tom/cxgb_tcp_offload.h> #include <netinet/tcp.h> #include <netinet/tcp_var.h> #include <netinet/tcp_fsm.h> #include <netinet/tcp_offload.h> #include <net/route.h> -#include <dev/cxgb/t3cdev.h> -#include <dev/cxgb/common/cxgb_firmware_exports.h> -#include <dev/cxgb/common/cxgb_t3_cpl.h> -#include <dev/cxgb/common/cxgb_tcb.h> -#include <dev/cxgb/common/cxgb_ctl_defs.h> -#include <dev/cxgb/cxgb_offload.h> +#include <t3cdev.h> +#include <common/cxgb_firmware_exports.h> +#include <common/cxgb_t3_cpl.h> +#include <common/cxgb_tcb.h> +#include <common/cxgb_ctl_defs.h> +#include <cxgb_offload.h> #include <vm/vm.h> #include <vm/vm_page.h> @@ -83,14 +83,14 @@ __FBSDID("$FreeBSD$"); #include <vm/vm_extern.h> #include <vm/pmap.h> -#include <dev/cxgb/sys/mvec.h> -#include <dev/cxgb/ulp/toecore/cxgb_toedev.h> -#include <dev/cxgb/ulp/tom/cxgb_defs.h> -#include <dev/cxgb/ulp/tom/cxgb_tom.h> -#include <dev/cxgb/ulp/tom/cxgb_t3_ddp.h> -#include <dev/cxgb/ulp/tom/cxgb_toepcb.h> -#include <dev/cxgb/ulp/tom/cxgb_tcp.h> -#include <dev/cxgb/ulp/tom/cxgb_vm.h> +#include <sys/mvec.h> +#include <ulp/toecore/cxgb_toedev.h> +#include <ulp/tom/cxgb_defs.h> +#include <ulp/tom/cxgb_tom.h> +#include <ulp/tom/cxgb_t3_ddp.h> +#include <ulp/tom/cxgb_toepcb.h> +#include <ulp/tom/cxgb_tcp.h> +#include <ulp/tom/cxgb_vm.h> #define MAX_SCHEDULE_TIMEOUT 300 diff --git a/sys/dev/cxgb/ulp/tom/cxgb_l2t.c b/sys/dev/cxgb/ulp/tom/cxgb_l2t.c index 15aa16768d53..1fcd53d9389d 100644 --- a/sys/dev/cxgb/ulp/tom/cxgb_l2t.c +++ b/sys/dev/cxgb/ulp/tom/cxgb_l2t.c @@ -50,11 +50,7 @@ __FBSDID("$FreeBSD$"); #include <netinet/in.h> #include <netinet/if_ether.h> -#ifdef CONFIG_DEFINED #include <cxgb_include.h> -#else -#include <dev/cxgb/cxgb_include.h> -#endif #define VLAN_NONE 0xfff #define SDL(s) ((struct sockaddr_dl *)s) diff --git a/sys/dev/cxgb/ulp/tom/cxgb_l2t.h b/sys/dev/cxgb/ulp/tom/cxgb_l2t.h index 3575f6fa98b1..1d547d3207c8 100644 --- a/sys/dev/cxgb/ulp/tom/cxgb_l2t.h +++ b/sys/dev/cxgb/ulp/tom/cxgb_l2t.h @@ -31,7 +31,7 @@ $FreeBSD$ #ifndef _CHELSIO_L2T_H #define _CHELSIO_L2T_H -#include <dev/cxgb/ulp/toecore/cxgb_toedev.h> +#include <ulp/toecore/cxgb_toedev.h> #include <sys/lock.h> #if __FreeBSD_version > 700000 diff --git a/sys/dev/cxgb/ulp/tom/cxgb_listen.c b/sys/dev/cxgb/ulp/tom/cxgb_listen.c index 45bf7575de5f..8836b58e87bb 100644 --- a/sys/dev/cxgb/ulp/tom/cxgb_listen.c +++ b/sys/dev/cxgb/ulp/tom/cxgb_listen.c @@ -54,8 +54,8 @@ __FBSDID("$FreeBSD$"); #include <netinet/in_var.h> -#include <dev/cxgb/cxgb_osdep.h> -#include <dev/cxgb/sys/mbufq.h> +#include <cxgb_osdep.h> +#include <sys/mbufq.h> #include <netinet/tcp.h> #include <netinet/tcp_var.h> @@ -64,17 +64,17 @@ __FBSDID("$FreeBSD$"); #include <netinet/tcp_offload.h> #include <net/route.h> -#include <dev/cxgb/t3cdev.h> -#include <dev/cxgb/common/cxgb_firmware_exports.h> -#include <dev/cxgb/common/cxgb_t3_cpl.h> -#include <dev/cxgb/common/cxgb_tcb.h> -#include <dev/cxgb/common/cxgb_ctl_defs.h> -#include <dev/cxgb/cxgb_offload.h> -#include <dev/cxgb/ulp/toecore/cxgb_toedev.h> -#include <dev/cxgb/ulp/tom/cxgb_defs.h> -#include <dev/cxgb/ulp/tom/cxgb_tom.h> -#include <dev/cxgb/ulp/tom/cxgb_t3_ddp.h> -#include <dev/cxgb/ulp/tom/cxgb_toepcb.h> +#include <t3cdev.h> +#include <common/cxgb_firmware_exports.h> +#include <common/cxgb_t3_cpl.h> +#include <common/cxgb_tcb.h> +#include <common/cxgb_ctl_defs.h> +#include <cxgb_offload.h> +#include <ulp/toecore/cxgb_toedev.h> +#include <ulp/tom/cxgb_defs.h> +#include <ulp/tom/cxgb_tom.h> +#include <ulp/tom/cxgb_t3_ddp.h> +#include <ulp/tom/cxgb_toepcb.h> static struct listen_info *listen_hash_add(struct tom_data *d, struct socket *so, unsigned int stid); diff --git a/sys/dev/cxgb/ulp/tom/cxgb_t3_ddp.h b/sys/dev/cxgb/ulp/tom/cxgb_t3_ddp.h index 2cbfa7b38b28..d6f980422336 100644 --- a/sys/dev/cxgb/ulp/tom/cxgb_t3_ddp.h +++ b/sys/dev/cxgb/ulp/tom/cxgb_t3_ddp.h @@ -132,7 +132,7 @@ enum { DDP_BF_NODATA = 1 << 4, /* buffer completed before filling */ }; -#include <dev/cxgb/ulp/tom/cxgb_toepcb.h> +#include <ulp/tom/cxgb_toepcb.h> struct sockbuf; /* diff --git a/sys/dev/cxgb/ulp/tom/cxgb_tcp_offload.c b/sys/dev/cxgb/ulp/tom/cxgb_tcp_offload.c index 171cf2e60234..6cb610748214 100644 --- a/sys/dev/cxgb/ulp/tom/cxgb_tcp_offload.c +++ b/sys/dev/cxgb/ulp/tom/cxgb_tcp_offload.c @@ -59,7 +59,7 @@ __FBSDID("$FreeBSD$"); #include <netinet/tcp_syncache.h> #include <netinet/toedev.h> -#include <dev/cxgb/ulp/tom/cxgb_tcp_offload.h> +#include <ulp/tom/cxgb_tcp_offload.h> /* diff --git a/sys/dev/cxgb/ulp/tom/cxgb_toepcb.h b/sys/dev/cxgb/ulp/tom/cxgb_toepcb.h index 7c4bd0c06c41..1b28e965a18c 100644 --- a/sys/dev/cxgb/ulp/tom/cxgb_toepcb.h +++ b/sys/dev/cxgb/ulp/tom/cxgb_toepcb.h @@ -30,7 +30,7 @@ #define CXGB_TOEPCB_H_ #include <sys/bus.h> #include <sys/condvar.h> -#include <dev/cxgb/sys/mbufq.h> +#include <sys/mbufq.h> struct toepcb { struct toedev *tp_toedev; diff --git a/sys/dev/cxgb/ulp/tom/cxgb_tom.c b/sys/dev/cxgb/ulp/tom/cxgb_tom.c index 590394b9b482..1067b3292c2a 100644 --- a/sys/dev/cxgb/ulp/tom/cxgb_tom.c +++ b/sys/dev/cxgb/ulp/tom/cxgb_tom.c @@ -58,43 +58,35 @@ __FBSDID("$FreeBSD$"); #include <netinet/in_systm.h> #include <netinet/in_var.h> -#include <dev/cxgb/cxgb_osdep.h> -#include <dev/cxgb/sys/mbufq.h> +#include <cxgb_osdep.h> +#include <sys/mbufq.h> #include <netinet/in_pcb.h> -#include <dev/cxgb/ulp/tom/cxgb_tcp_offload.h> +#include <ulp/tom/cxgb_tcp_offload.h> #include <netinet/tcp.h> #include <netinet/tcp_var.h> #include <netinet/tcp_offload.h> #include <netinet/tcp_fsm.h> -#ifdef CONFIG_DEFINED #include <cxgb_include.h> -#else -#include <dev/cxgb/cxgb_include.h> -#endif #include <net/if_vlan_var.h> #include <net/route.h> - -#include <dev/cxgb/t3cdev.h> -#include <dev/cxgb/common/cxgb_firmware_exports.h> -#include <dev/cxgb/common/cxgb_tcb.h> -#include <dev/cxgb/cxgb_include.h> -#include <dev/cxgb/common/cxgb_ctl_defs.h> -#include <dev/cxgb/common/cxgb_t3_cpl.h> -#include <dev/cxgb/cxgb_offload.h> -#include <dev/cxgb/ulp/toecore/cxgb_toedev.h> -#include <dev/cxgb/ulp/tom/cxgb_tom.h> -#include <dev/cxgb/ulp/tom/cxgb_defs.h> -#include <dev/cxgb/ulp/tom/cxgb_t3_ddp.h> -#include <dev/cxgb/ulp/tom/cxgb_toepcb.h> -#include <dev/cxgb/ulp/tom/cxgb_tcp.h> - - - +#include <t3cdev.h> +#include <common/cxgb_firmware_exports.h> +#include <common/cxgb_tcb.h> +#include <cxgb_include.h> +#include <common/cxgb_ctl_defs.h> +#include <common/cxgb_t3_cpl.h> +#include <cxgb_offload.h> +#include <ulp/toecore/cxgb_toedev.h> +#include <ulp/tom/cxgb_tom.h> +#include <ulp/tom/cxgb_defs.h> +#include <ulp/tom/cxgb_t3_ddp.h> +#include <ulp/tom/cxgb_toepcb.h> +#include <ulp/tom/cxgb_tcp.h> static int activated = 1; diff --git a/sys/dev/cxgb/ulp/tom/cxgb_tom_sysctl.c b/sys/dev/cxgb/ulp/tom/cxgb_tom_sysctl.c index a2bcde523a26..d39f20e25b5b 100644 --- a/sys/dev/cxgb/ulp/tom/cxgb_tom_sysctl.c +++ b/sys/dev/cxgb/ulp/tom/cxgb_tom_sysctl.c @@ -56,25 +56,25 @@ __FBSDID("$FreeBSD$"); #include <netinet/in_systm.h> #include <netinet/in_var.h> -#include <dev/cxgb/cxgb_osdep.h> -#include <dev/cxgb/sys/mbufq.h> +#include <cxgb_osdep.h> +#include <sys/mbufq.h> #include <netinet/tcp.h> #include <netinet/tcp_var.h> #include <netinet/tcp_fsm.h> #include <net/route.h> -#include <dev/cxgb/t3cdev.h> -#include <dev/cxgb/common/cxgb_firmware_exports.h> -#include <dev/cxgb/common/cxgb_tcb.h> -#include <dev/cxgb/common/cxgb_ctl_defs.h> -#include <dev/cxgb/common/cxgb_t3_cpl.h> -#include <dev/cxgb/cxgb_offload.h> -#include <dev/cxgb/cxgb_include.h> -#include <dev/cxgb/ulp/toecore/cxgb_toedev.h> -#include <dev/cxgb/ulp/tom/cxgb_tom.h> -#include <dev/cxgb/ulp/tom/cxgb_defs.h> -#include <dev/cxgb/ulp/tom/cxgb_t3_ddp.h> +#include <t3cdev.h> +#include <common/cxgb_firmware_exports.h> +#include <common/cxgb_tcb.h> +#include <common/cxgb_ctl_defs.h> +#include <common/cxgb_t3_cpl.h> +#include <cxgb_offload.h> +#include <cxgb_include.h> +#include <ulp/toecore/cxgb_toedev.h> +#include <ulp/tom/cxgb_tom.h> +#include <ulp/tom/cxgb_defs.h> +#include <ulp/tom/cxgb_t3_ddp.h> static struct tom_tunables default_tunable_vals = { .max_host_sndbuf = 32 * 1024, diff --git a/sys/dev/cxgb/ulp/tom/cxgb_vm.c b/sys/dev/cxgb/ulp/tom/cxgb_vm.c index 7036005e93e0..9c6898ab0979 100644 --- a/sys/dev/cxgb/ulp/tom/cxgb_vm.c +++ b/sys/dev/cxgb/ulp/tom/cxgb_vm.c @@ -47,7 +47,7 @@ __FBSDID("$FreeBSD$"); #include <vm/vm_map.h> #include <vm/vm_extern.h> #include <vm/pmap.h> -#include <dev/cxgb/ulp/tom/cxgb_vm.h> +#include <ulp/tom/cxgb_vm.h> #define TRACE_ENTER printf("%s:%s entered", __FUNCTION__, __FILE__) #define TRACE_EXIT printf("%s:%s:%d exited", __FUNCTION__, __FILE__, __LINE__) |
