4 * DSP-BIOS Bridge driver support functions for TI OMAP processors.
6 * This is the Stream Interface for the DSp API.
7 * All Device operations are performed via DeviceIOControl.
9 * Copyright (C) 2005-2006 Texas Instruments, Inc.
11 * This package is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License version 2 as
13 * published by the Free Software Foundation.
15 * THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
16 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
17 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
20 #if !defined _DSPDRV_H_
23 #define MAX_DEV 10 /* Max support of 10 devices */
26 * ======== dsp_deinit ========
28 * This function is called by Device Manager to de-initialize a device.
29 * This function is not called by applications.
31 * device_context:Handle to the device context. The XXX_Init function
32 * creates and returns this identifier.
34 * TRUE indicates the device successfully de-initialized. Otherwise it
37 * device_context!= NULL. For a built in device this should never
41 extern bool dsp_deinit(u32 device_context);
44 * ======== dsp_init ========
46 * This function is called by Device Manager to initialize a device.
47 * This function is not called by applications
49 * dw_context: Specifies a pointer to a string containing the registry
50 * path to the active key for the stream interface driver.
51 * HKEY_LOCAL_MACHINE\Drivers\Active
53 * Returns a handle to the device context created. This is the our actual
54 * Device Object representing the DSP Device instance.
57 * Succeeded: device context > 0
58 * Failed: device Context = 0
60 extern u32 dsp_init(u32 *init_status);