Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
dspapi-ioctl.h File Reference
#include <dspbridge/cmm.h>
#include <dspbridge/strmdefs.h>
#include <dspbridge/dbdcd.h>

Go to the source code of this file.

Data Structures

union  trapped_args
 

Macros

#define DB   0xDB
 
#define DB_MODULE_MASK   0xE0
 
#define DB_IOC_MASK   0x1F
 
#define DB_MGR   0x0
 
#define DB_PROC   0x20
 
#define DB_NODE   0x40
 
#define DB_STRM   0x60
 
#define DB_CMM   0x80
 
#define DB_MODULE_SHIFT   5
 
#define DB_IOC(module, num)   (((module) & DB_MODULE_MASK) | ((num) & DB_IOC_MASK))
 
#define DB_GET_MODULE(cmd)   ((cmd) & DB_MODULE_MASK)
 
#define DB_GET_IOC(cmd)   ((cmd) & DB_IOC_MASK)
 
#define MGR_ENUMNODE_INFO   _IOWR(DB, DB_IOC(DB_MGR, 0), unsigned long)
 
#define MGR_ENUMPROC_INFO   _IOWR(DB, DB_IOC(DB_MGR, 1), unsigned long)
 
#define MGR_REGISTEROBJECT   _IOWR(DB, DB_IOC(DB_MGR, 2), unsigned long)
 
#define MGR_UNREGISTEROBJECT   _IOWR(DB, DB_IOC(DB_MGR, 3), unsigned long)
 
#define MGR_WAIT   _IOWR(DB, DB_IOC(DB_MGR, 4), unsigned long)
 
#define MGR_GET_PROC_RES   _IOR(DB, DB_IOC(DB_MGR, 5), unsigned long)
 
#define PROC_ATTACH   _IOWR(DB, DB_IOC(DB_PROC, 0), unsigned long)
 
#define PROC_CTRL   _IOR(DB, DB_IOC(DB_PROC, 1), unsigned long)
 
#define PROC_DETACH   _IOR(DB, DB_IOC(DB_PROC, 2), unsigned long)
 
#define PROC_ENUMNODE   _IOWR(DB, DB_IOC(DB_PROC, 3), unsigned long)
 
#define PROC_ENUMRESOURCES   _IOWR(DB, DB_IOC(DB_PROC, 4), unsigned long)
 
#define PROC_GET_STATE   _IOWR(DB, DB_IOC(DB_PROC, 5), unsigned long)
 
#define PROC_GET_TRACE   _IOWR(DB, DB_IOC(DB_PROC, 6), unsigned long)
 
#define PROC_LOAD   _IOW(DB, DB_IOC(DB_PROC, 7), unsigned long)
 
#define PROC_REGISTERNOTIFY   _IOWR(DB, DB_IOC(DB_PROC, 8), unsigned long)
 
#define PROC_START   _IOW(DB, DB_IOC(DB_PROC, 9), unsigned long)
 
#define PROC_RSVMEM   _IOWR(DB, DB_IOC(DB_PROC, 10), unsigned long)
 
#define PROC_UNRSVMEM   _IOW(DB, DB_IOC(DB_PROC, 11), unsigned long)
 
#define PROC_MAPMEM   _IOWR(DB, DB_IOC(DB_PROC, 12), unsigned long)
 
#define PROC_UNMAPMEM   _IOR(DB, DB_IOC(DB_PROC, 13), unsigned long)
 
#define PROC_FLUSHMEMORY   _IOW(DB, DB_IOC(DB_PROC, 14), unsigned long)
 
#define PROC_STOP   _IOWR(DB, DB_IOC(DB_PROC, 15), unsigned long)
 
#define PROC_INVALIDATEMEMORY   _IOW(DB, DB_IOC(DB_PROC, 16), unsigned long)
 
#define PROC_BEGINDMA   _IOW(DB, DB_IOC(DB_PROC, 17), unsigned long)
 
#define PROC_ENDDMA   _IOW(DB, DB_IOC(DB_PROC, 18), unsigned long)
 
#define NODE_ALLOCATE   _IOWR(DB, DB_IOC(DB_NODE, 0), unsigned long)
 
#define NODE_ALLOCMSGBUF   _IOWR(DB, DB_IOC(DB_NODE, 1), unsigned long)
 
#define NODE_CHANGEPRIORITY   _IOW(DB, DB_IOC(DB_NODE, 2), unsigned long)
 
#define NODE_CONNECT   _IOW(DB, DB_IOC(DB_NODE, 3), unsigned long)
 
#define NODE_CREATE   _IOW(DB, DB_IOC(DB_NODE, 4), unsigned long)
 
#define NODE_DELETE   _IOW(DB, DB_IOC(DB_NODE, 5), unsigned long)
 
#define NODE_FREEMSGBUF   _IOW(DB, DB_IOC(DB_NODE, 6), unsigned long)
 
#define NODE_GETATTR   _IOWR(DB, DB_IOC(DB_NODE, 7), unsigned long)
 
#define NODE_GETMESSAGE   _IOWR(DB, DB_IOC(DB_NODE, 8), unsigned long)
 
#define NODE_PAUSE   _IOW(DB, DB_IOC(DB_NODE, 9), unsigned long)
 
#define NODE_PUTMESSAGE   _IOW(DB, DB_IOC(DB_NODE, 10), unsigned long)
 
#define NODE_REGISTERNOTIFY   _IOWR(DB, DB_IOC(DB_NODE, 11), unsigned long)
 
#define NODE_RUN   _IOW(DB, DB_IOC(DB_NODE, 12), unsigned long)
 
#define NODE_TERMINATE   _IOWR(DB, DB_IOC(DB_NODE, 13), unsigned long)
 
#define NODE_GETUUIDPROPS   _IOWR(DB, DB_IOC(DB_NODE, 14), unsigned long)
 
#define STRM_ALLOCATEBUFFER   _IOWR(DB, DB_IOC(DB_STRM, 0), unsigned long)
 
#define STRM_CLOSE   _IOW(DB, DB_IOC(DB_STRM, 1), unsigned long)
 
#define STRM_FREEBUFFER   _IOWR(DB, DB_IOC(DB_STRM, 2), unsigned long)
 
#define STRM_GETEVENTHANDLE   _IO(DB, DB_IOC(DB_STRM, 3)) /* Not Impl'd */
 
#define STRM_GETINFO   _IOWR(DB, DB_IOC(DB_STRM, 4), unsigned long)
 
#define STRM_IDLE   _IOW(DB, DB_IOC(DB_STRM, 5), unsigned long)
 
#define STRM_ISSUE   _IOW(DB, DB_IOC(DB_STRM, 6), unsigned long)
 
#define STRM_OPEN   _IOWR(DB, DB_IOC(DB_STRM, 7), unsigned long)
 
#define STRM_RECLAIM   _IOWR(DB, DB_IOC(DB_STRM, 8), unsigned long)
 
#define STRM_REGISTERNOTIFY   _IOWR(DB, DB_IOC(DB_STRM, 9), unsigned long)
 
#define STRM_SELECT   _IOWR(DB, DB_IOC(DB_STRM, 10), unsigned long)
 
#define CMM_ALLOCBUF   _IO(DB, DB_IOC(DB_CMM, 0)) /* Not Impl'd */
 
#define CMM_FREEBUF   _IO(DB, DB_IOC(DB_CMM, 1)) /* Not Impl'd */
 
#define CMM_GETHANDLE   _IOR(DB, DB_IOC(DB_CMM, 2), unsigned long)
 
#define CMM_GETINFO   _IOR(DB, DB_IOC(DB_CMM, 3), unsigned long)
 

Macro Definition Documentation

#define CMM_ALLOCBUF   _IO(DB, DB_IOC(DB_CMM, 0)) /* Not Impl'd */

Definition at line 462 of file dspapi-ioctl.h.

#define CMM_FREEBUF   _IO(DB, DB_IOC(DB_CMM, 1)) /* Not Impl'd */

Definition at line 463 of file dspapi-ioctl.h.

#define CMM_GETHANDLE   _IOR(DB, DB_IOC(DB_CMM, 2), unsigned long)

Definition at line 464 of file dspapi-ioctl.h.

#define CMM_GETINFO   _IOR(DB, DB_IOC(DB_CMM, 3), unsigned long)

Definition at line 465 of file dspapi-ioctl.h.

#define DB   0xDB

Definition at line 372 of file dspapi-ioctl.h.

#define DB_CMM   0x80

Definition at line 386 of file dspapi-ioctl.h.

#define DB_GET_IOC (   cmd)    ((cmd) & DB_IOC_MASK)

Definition at line 396 of file dspapi-ioctl.h.

#define DB_GET_MODULE (   cmd)    ((cmd) & DB_MODULE_MASK)

Definition at line 394 of file dspapi-ioctl.h.

#define DB_IOC (   module,
  num 
)    (((module) & DB_MODULE_MASK) | ((num) & DB_IOC_MASK))

Definition at line 391 of file dspapi-ioctl.h.

#define DB_IOC_MASK   0x1F

Definition at line 379 of file dspapi-ioctl.h.

#define DB_MGR   0x0

Definition at line 382 of file dspapi-ioctl.h.

#define DB_MODULE_MASK   0xE0

Definition at line 378 of file dspapi-ioctl.h.

#define DB_MODULE_SHIFT   5

Definition at line 388 of file dspapi-ioctl.h.

#define DB_NODE   0x40

Definition at line 384 of file dspapi-ioctl.h.

#define DB_PROC   0x20

Definition at line 383 of file dspapi-ioctl.h.

#define DB_STRM   0x60

Definition at line 385 of file dspapi-ioctl.h.

#define MGR_ENUMNODE_INFO   _IOWR(DB, DB_IOC(DB_MGR, 0), unsigned long)

Definition at line 401 of file dspapi-ioctl.h.

#define MGR_ENUMPROC_INFO   _IOWR(DB, DB_IOC(DB_MGR, 1), unsigned long)

Definition at line 402 of file dspapi-ioctl.h.

#define MGR_GET_PROC_RES   _IOR(DB, DB_IOC(DB_MGR, 5), unsigned long)

Definition at line 407 of file dspapi-ioctl.h.

#define MGR_REGISTEROBJECT   _IOWR(DB, DB_IOC(DB_MGR, 2), unsigned long)

Definition at line 403 of file dspapi-ioctl.h.

#define MGR_UNREGISTEROBJECT   _IOWR(DB, DB_IOC(DB_MGR, 3), unsigned long)

Definition at line 404 of file dspapi-ioctl.h.

#define MGR_WAIT   _IOWR(DB, DB_IOC(DB_MGR, 4), unsigned long)

Definition at line 405 of file dspapi-ioctl.h.

#define NODE_ALLOCATE   _IOWR(DB, DB_IOC(DB_NODE, 0), unsigned long)

Definition at line 432 of file dspapi-ioctl.h.

#define NODE_ALLOCMSGBUF   _IOWR(DB, DB_IOC(DB_NODE, 1), unsigned long)

Definition at line 433 of file dspapi-ioctl.h.

#define NODE_CHANGEPRIORITY   _IOW(DB, DB_IOC(DB_NODE, 2), unsigned long)

Definition at line 434 of file dspapi-ioctl.h.

#define NODE_CONNECT   _IOW(DB, DB_IOC(DB_NODE, 3), unsigned long)

Definition at line 435 of file dspapi-ioctl.h.

#define NODE_CREATE   _IOW(DB, DB_IOC(DB_NODE, 4), unsigned long)

Definition at line 436 of file dspapi-ioctl.h.

#define NODE_DELETE   _IOW(DB, DB_IOC(DB_NODE, 5), unsigned long)

Definition at line 437 of file dspapi-ioctl.h.

#define NODE_FREEMSGBUF   _IOW(DB, DB_IOC(DB_NODE, 6), unsigned long)

Definition at line 438 of file dspapi-ioctl.h.

#define NODE_GETATTR   _IOWR(DB, DB_IOC(DB_NODE, 7), unsigned long)

Definition at line 439 of file dspapi-ioctl.h.

#define NODE_GETMESSAGE   _IOWR(DB, DB_IOC(DB_NODE, 8), unsigned long)

Definition at line 440 of file dspapi-ioctl.h.

#define NODE_GETUUIDPROPS   _IOWR(DB, DB_IOC(DB_NODE, 14), unsigned long)

Definition at line 446 of file dspapi-ioctl.h.

#define NODE_PAUSE   _IOW(DB, DB_IOC(DB_NODE, 9), unsigned long)

Definition at line 441 of file dspapi-ioctl.h.

#define NODE_PUTMESSAGE   _IOW(DB, DB_IOC(DB_NODE, 10), unsigned long)

Definition at line 442 of file dspapi-ioctl.h.

#define NODE_REGISTERNOTIFY   _IOWR(DB, DB_IOC(DB_NODE, 11), unsigned long)

Definition at line 443 of file dspapi-ioctl.h.

#define NODE_RUN   _IOW(DB, DB_IOC(DB_NODE, 12), unsigned long)

Definition at line 444 of file dspapi-ioctl.h.

#define NODE_TERMINATE   _IOWR(DB, DB_IOC(DB_NODE, 13), unsigned long)

Definition at line 445 of file dspapi-ioctl.h.

#define PROC_ATTACH   _IOWR(DB, DB_IOC(DB_PROC, 0), unsigned long)

Definition at line 410 of file dspapi-ioctl.h.

#define PROC_BEGINDMA   _IOW(DB, DB_IOC(DB_PROC, 17), unsigned long)

Definition at line 428 of file dspapi-ioctl.h.

#define PROC_CTRL   _IOR(DB, DB_IOC(DB_PROC, 1), unsigned long)

Definition at line 411 of file dspapi-ioctl.h.

#define PROC_DETACH   _IOR(DB, DB_IOC(DB_PROC, 2), unsigned long)

Definition at line 413 of file dspapi-ioctl.h.

#define PROC_ENDDMA   _IOW(DB, DB_IOC(DB_PROC, 18), unsigned long)

Definition at line 429 of file dspapi-ioctl.h.

#define PROC_ENUMNODE   _IOWR(DB, DB_IOC(DB_PROC, 3), unsigned long)

Definition at line 414 of file dspapi-ioctl.h.

#define PROC_ENUMRESOURCES   _IOWR(DB, DB_IOC(DB_PROC, 4), unsigned long)

Definition at line 415 of file dspapi-ioctl.h.

#define PROC_FLUSHMEMORY   _IOW(DB, DB_IOC(DB_PROC, 14), unsigned long)

Definition at line 425 of file dspapi-ioctl.h.

#define PROC_GET_STATE   _IOWR(DB, DB_IOC(DB_PROC, 5), unsigned long)

Definition at line 416 of file dspapi-ioctl.h.

#define PROC_GET_TRACE   _IOWR(DB, DB_IOC(DB_PROC, 6), unsigned long)

Definition at line 417 of file dspapi-ioctl.h.

#define PROC_INVALIDATEMEMORY   _IOW(DB, DB_IOC(DB_PROC, 16), unsigned long)

Definition at line 427 of file dspapi-ioctl.h.

#define PROC_LOAD   _IOW(DB, DB_IOC(DB_PROC, 7), unsigned long)

Definition at line 418 of file dspapi-ioctl.h.

#define PROC_MAPMEM   _IOWR(DB, DB_IOC(DB_PROC, 12), unsigned long)

Definition at line 423 of file dspapi-ioctl.h.

#define PROC_REGISTERNOTIFY   _IOWR(DB, DB_IOC(DB_PROC, 8), unsigned long)

Definition at line 419 of file dspapi-ioctl.h.

#define PROC_RSVMEM   _IOWR(DB, DB_IOC(DB_PROC, 10), unsigned long)

Definition at line 421 of file dspapi-ioctl.h.

#define PROC_START   _IOW(DB, DB_IOC(DB_PROC, 9), unsigned long)

Definition at line 420 of file dspapi-ioctl.h.

#define PROC_STOP   _IOWR(DB, DB_IOC(DB_PROC, 15), unsigned long)

Definition at line 426 of file dspapi-ioctl.h.

#define PROC_UNMAPMEM   _IOR(DB, DB_IOC(DB_PROC, 13), unsigned long)

Definition at line 424 of file dspapi-ioctl.h.

#define PROC_UNRSVMEM   _IOW(DB, DB_IOC(DB_PROC, 11), unsigned long)

Definition at line 422 of file dspapi-ioctl.h.

#define STRM_ALLOCATEBUFFER   _IOWR(DB, DB_IOC(DB_STRM, 0), unsigned long)

Definition at line 449 of file dspapi-ioctl.h.

#define STRM_CLOSE   _IOW(DB, DB_IOC(DB_STRM, 1), unsigned long)

Definition at line 450 of file dspapi-ioctl.h.

#define STRM_FREEBUFFER   _IOWR(DB, DB_IOC(DB_STRM, 2), unsigned long)

Definition at line 451 of file dspapi-ioctl.h.

#define STRM_GETEVENTHANDLE   _IO(DB, DB_IOC(DB_STRM, 3)) /* Not Impl'd */

Definition at line 452 of file dspapi-ioctl.h.

#define STRM_GETINFO   _IOWR(DB, DB_IOC(DB_STRM, 4), unsigned long)

Definition at line 453 of file dspapi-ioctl.h.

#define STRM_IDLE   _IOW(DB, DB_IOC(DB_STRM, 5), unsigned long)

Definition at line 454 of file dspapi-ioctl.h.

#define STRM_ISSUE   _IOW(DB, DB_IOC(DB_STRM, 6), unsigned long)

Definition at line 455 of file dspapi-ioctl.h.

#define STRM_OPEN   _IOWR(DB, DB_IOC(DB_STRM, 7), unsigned long)

Definition at line 456 of file dspapi-ioctl.h.

#define STRM_RECLAIM   _IOWR(DB, DB_IOC(DB_STRM, 8), unsigned long)

Definition at line 457 of file dspapi-ioctl.h.

#define STRM_REGISTERNOTIFY   _IOWR(DB, DB_IOC(DB_STRM, 9), unsigned long)

Definition at line 458 of file dspapi-ioctl.h.

#define STRM_SELECT   _IOWR(DB, DB_IOC(DB_STRM, 10), unsigned long)

Definition at line 459 of file dspapi-ioctl.h.