Date: Sat, 20 Oct 2007 19:56:52 GMT From: Kip Macy <kmacy@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 127835 for review Message-ID: <200710201956.l9KJuq1J042846@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=127835 Change 127835 by kmacy@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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200710201956.l9KJuq1J042846>