1/* 2 * ntfy.c 3 * 4 * DSP-BIOS Bridge driver support functions for TI OMAP processors. 5 * 6 * Manage lists of notification events. 7 * 8 * Copyright (C) 2005-2006 Texas Instruments, Inc. 9 * 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. 13 * 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. 17 */ 18 19/* ----------------------------------- This */ 20#include <dspbridge/ntfy.h> 21 22int dsp_notifier_event(struct notifier_block *this, unsigned long event, 23 void *data) 24{ 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; 30} 31