the add_timer() function does panic, also it would call the hook in interrupt context, both it not acceptable. Commented it out
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7392 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -57,7 +57,7 @@ timeout(timeout_func func, void *cookie, bigtime_t timeout)
|
|||||||
h.func = func;
|
h.func = func;
|
||||||
h.cookie = cookie;
|
h.cookie = cookie;
|
||||||
|
|
||||||
add_timer(&h.t, timer_dispatch_hook, timeout, B_ONE_SHOT_RELATIVE_TIMER);
|
// add_timer(&h.t, timer_dispatch_hook, timeout, B_ONE_SHOT_RELATIVE_TIMER);
|
||||||
|
|
||||||
return h;
|
return h;
|
||||||
}
|
}
|
||||||
@@ -65,7 +65,7 @@ timeout(timeout_func func, void *cookie, bigtime_t timeout)
|
|||||||
void
|
void
|
||||||
untimeout(timeout_func func, void *cookie, struct callout_handle handle)
|
untimeout(timeout_func func, void *cookie, struct callout_handle handle)
|
||||||
{
|
{
|
||||||
cancel_timer(&handle.t);
|
// cancel_timer(&handle.t);
|
||||||
}
|
}
|
||||||
|
|
||||||
struct resource *
|
struct resource *
|
||||||
|
|||||||
@@ -221,6 +221,15 @@ void driver_free(void *p, int p2);
|
|||||||
#define E1000_WRITE_REG_ARRAY(hw, reg, index, value) \
|
#define E1000_WRITE_REG_ARRAY(hw, reg, index, value) \
|
||||||
E1000_WRITE_OFFSET(hw, E1000_REG_OFFSET(hw, reg) + ((index) << 2), value)
|
E1000_WRITE_OFFSET(hw, E1000_REG_OFFSET(hw, reg) + ((index) << 2), value)
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
#define TAILQ_FIRST(head) ((head)->tqh_first)
|
||||||
|
#define TAILQ_NEXT(elm, field) ((elm)->field.tqe_next)
|
||||||
|
#define TAILQ_FOREACH(var, head, field) \
|
||||||
|
for ((var) = TAILQ_FIRST((head)); \
|
||||||
|
(var); \
|
||||||
|
(var) = TAILQ_NEXT((var), field))
|
||||||
|
*/
|
||||||
// used only for multicast setup, fix later...
|
// used only for multicast setup, fix later...
|
||||||
#define TAILQ_FOREACH(a, b, c) for (a = 0; a != 0; a = 0)
|
#define TAILQ_FOREACH(a, b, c) for (a = 0; a != 0; a = 0)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user