PERFORCE change 127835 for review
Kip Macy
kmacy at FreeBSD.org
Sat Oct 20 12:56:53 PDT 2007
http://perforce.freebsd.org/chv.cgi?CH=127835
Change 127835 by kmacy at kmacy_home:ethng on 2007/10/20 19:56:20
add iwch_provider.c to the build
Affected files ...
.. //depot/projects/ethng/src/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_cxio_hal.h#3 edit
.. //depot/projects/ethng/src/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_iwch_provider.c#1 add
.. //depot/projects/ethng/src/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_iwch_provider.h#2 edit
.. //depot/projects/ethng/src/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_iwch_user.h#1 add
Differences ...
==== //depot/projects/ethng/src/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_cxio_hal.h#3 (text+ko) ====
@@ -202,4 +202,16 @@
return hiBitSetTab[val & 0xff] - 1;
}
+#define cxfree(a) free((a), M_DEVBUF);
+#define kmalloc(a, b) malloc((a), M_DEVBUF, (b))
+#define kzalloc(a, b) malloc((a), M_DEVBUF, (b)|M_ZERO)
+
+static inline __attribute__((const))
+unsigned long roundup_pow_of_two(unsigned long n)
+{
+ return 1UL << flsl(n - 1);
+}
+
+#define PAGE_ALIGN(x) roundup2((x), PAGE_SIZE)
+
#endif
==== //depot/projects/ethng/src/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_iwch_provider.h#2 (text+ko) ====
@@ -69,12 +69,7 @@
struct t3_cq cq;
spinlock_t lock;
atomic_t refcnt;
-#ifdef notyet
- /*
- * replace with a condition variable
- */
- wait_queue_head_t wait;
-#endif
+ struct cv wait;
u32 __user *user_rptr_addr;
};
@@ -132,16 +127,9 @@
struct t3_wq wq;
spinlock_t lock;
atomic_t refcnt;
-#ifdef notyet
- /*
- * CV
- */
- wait_queue_head_t wait;
-#endif
+ struct cv wait;
enum IWCH_QP_FLAGS flags;
-#ifdef notyet
- struct timer_list timer;
-#endif
+ struct callout timer;
};
static inline int qp_quiesced(struct iwch_qp *qhp)
More information about the p4-projects
mailing list