/* SPDX-License-Identifier: GPL-2.0-only */ /* * This file is part of wl1251 * * Copyright (c) 1998-2007 Texas Instruments Incorporated * Copyright (C) 2008 Nokia Corporation */ #ifndef __WL1251_EVENT_H__ #define __WL1251_EVENT_H__ /* * Mbox events * * The event mechanism is based on a pair of event buffers (buffers A and * B) at fixed locations in the target's memory. The host processes one * buffer while the other buffer continues to collect events. If the host * is not processing events, an interrupt is issued to signal that a buffer * is ready. Once the host is done with processing events from one buffer, * it signals the target (with an ACK interrupt) that the event buffer is * free. */ enum { … }; struct event_debug_report { … } __packed; struct event_mailbox { … } __packed; enum { … }; int wl1251_event_unmask(struct wl1251 *wl); void wl1251_event_mbox_config(struct wl1251 *wl); int wl1251_event_handle(struct wl1251 *wl, u8 mbox); int wl1251_event_wait(struct wl1251 *wl, u32 mask, int timeout_ms); #endif