?? toklibios.h
字號:
/* * dspapps/dsp/tokliBIOS/tokliBIOS.h * * Header for OMAP DSP bridge DSP-side core library API * * Copyright (C) 2002,2003 Nokia Corporation * * Written by Toshihiro Kobayashi <toshihiro.kobayashi@nokia.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * $Id: tokliBIOS.h * $Revision: 2.0 * $Date: 2003/11/11 * */#ifndef __TOKLIBIOS_H#define __TOKLIBIOS_H#define TID_MAGIC 0xdeadstruct dsptask { Uns tid; String name; Uns ttyp; Uns (*rcv_snd)(); // (*rcv_wdsnd)(struct dsptask *task, Uns data); // (*rcv_bksnd)(struct dsptask *task, Uns bid, Uns cnt); // (*rcv_bksndp)(struct dsptask *task); Uns (*rcv_req)(); // (*rcv_wdreq)(struct dsptask *task); // (*rcv_bkreq)(struct dsptask *task, Uns cnt); Uns (*rcv_tctl)(struct dsptask *task, Uns ctlcmd); struct TSK_Attrs *tsk_attrs;};#define DSPTASK_DEFAULT_PRIORITY 2#define DSPTASK_DEFAULT_STACKSIZE 512 // default 1024#define DSPTASK_DEFAULT_SYSSTACKSIZE 256 // default 256// this must be multiple of 2 for long word alignment#define IPBUF_HEADER_SZ 6extern Uns **ipbuf_d;//extern LgUns **ipbuf_longd;extern Uns get_free_ipbuf(struct dsptask *task);extern Void unuse_ipbuf(struct dsptask *task, Uns bid);extern Void *register_tq_1s(struct dsptask *task, Uns (*f)(struct dsptask *task));extern Void unregister_tq_1s(struct dsptask *task, Void *id);extern Void wdsnd(struct dsptask *task, Uns data);extern Void bksnd(struct dsptask *task, Uns bid, Uns cnt);extern Void bksndp(struct dsptask *task, Void *data, Uns cnt);extern Void wdreq(struct dsptask *task);extern Void bkreq(struct dsptask *task, Uns cnt);extern Void bkreqp(struct dsptask *task, Void *data, Uns cnt);extern Void cmderr(struct dsptask *task, Uns eid);extern Void dbg(struct dsptask *task, Char *s);#endif /* __TOKLIBIOS_H */
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -