RT-AC56 3.0.0.4.374.37 core
[tomato.git] / release / src-rt-6.x.4708 / linux / linux-2.6.36 / drivers / staging / tidspbridge / services / ntfy.c
blob6cf6631427f5796ab84a4a3c2be39878e87a0c4a
1 /*
2 * ntfy.c
4 * DSP-BIOS Bridge driver support functions for TI OMAP processors.
6 * Manage lists of notification events.
8 * Copyright (C) 2005-2006 Texas Instruments, Inc.
10 * This package is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License version 2 as
12 * published by the Free Software Foundation.
14 * THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
15 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
16 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
19 /* ----------------------------------- This */
20 #include <dspbridge/ntfy.h>
22 int dsp_notifier_event(struct notifier_block *this, unsigned long event,
23 void *data)
25 struct ntfy_event *ne = container_of(this, struct ntfy_event,
26 noti_block);
27 if (ne->event & event)
28 sync_set_event(&ne->sync_obj);
29 return NOTIFY_OK;