PageRenderTime 35ms CodeModel.GetById 22ms app.highlight 3ms RepoModel.GetById 8ms app.codeStats 0ms

/drivers/staging/tidspbridge/include/dspbridge/gh.h

https://bitbucket.org/cyanogenmod/android_kernel_asus_tf300t
C Header | 34 lines | 17 code | 2 blank | 15 comment | 0 complexity | 3c75613fb569b6d9ed7accb34ada3a50 MD5 | raw file
Possible License(s): LGPL-2.0, AGPL-1.0, GPL-2.0
 1/*
 2 * gh.h
 3 *
 4 * DSP-BIOS Bridge driver support functions for TI OMAP processors.
 5 *
 6 * Copyright (C) 2005-2006 Texas Instruments, Inc.
 7 *
 8 * This package is free software; you can redistribute it and/or modify
 9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
11 *
12 * THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
13 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
14 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
15 */
16
17#ifndef GH_
18#define GH_
19#include <dspbridge/host_os.h>
20
21extern struct gh_t_hash_tab *gh_create(u16 max_bucket, u16 val_size,
22				       u16(*hash) (void *, u16),
23				       bool(*match) (void *, void *),
24				       void (*delete) (void *));
25extern void gh_delete(struct gh_t_hash_tab *hash_tab);
26extern void gh_exit(void);
27extern void *gh_find(struct gh_t_hash_tab *hash_tab, void *key);
28extern void gh_init(void);
29extern void *gh_insert(struct gh_t_hash_tab *hash_tab, void *key, void *value);
30#ifdef CONFIG_TIDSPBRIDGE_BACKTRACE
31void gh_iterate(struct gh_t_hash_tab *hash_tab,
32	void (*callback)(void *, void *), void *user_data);
33#endif
34#endif /* GH_ */