










































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!











































(Registration)
/codec
0x
0x
IOM_Fxns
0x
(main)
main ^
other non driver init ^
return (to BIOS)
1. Create Streams2. Allocate Buffers3. Prime Streams
tsk_function(…){
SIO_create()
SIO_create
DIO_open
typedef struct ChanObj {
Bool
inuse;
/* TRUE => channel is open */
Int
mode;
/* IOM_INPUT or IOM_OUTPUT only */
IOM_Packet
dataPacket; / active I/O packet */
QUE_Obj
pendList;
/* list of packets for I/O */
Uns
*bufptr;
/* pointer in current buffer */
Uns
bufcnt;
/* samples left to handle */
IOM_TiomCallback cbFxn;
/* to notify client */
Ptr
cbArg;
/* info for client */
} ChanObj, *ChanHandle; T^
1. Create Streams2. Allocate Buffers3. Prime Streams
MEM_alloc()MEM_alloc()
1. Allocate Buffers2. Create Streams3. Prime Streams1. Reclaim Full Buf2. Process3. Issue Empty Buf
SIO_reclaim
from IOP & ret
DIO_reclaim
isr
call Callbackwith arg and IOP …
while(!terminate) {
SIO_reclaim();
Callback
1. Allocate Buffers2. Create Streams3. Prime Streams1. Reclaim Full Buf2. Process3. Issue Empty Buf
while(!terminate) {
SIO_reclaim()DSP_stuff
1. Allocate Buffers2. Create Streams3. Prime Streams1. Reclaim Full Buf2. Process3. Issue Empty Buf 1. Delete
while(!terminate) {
SIO_reclaim()DSP_stuff()SIO_issue() } SIO_reclaim()SIO_reclaim()SIO_delete()MEM_free()... }
1. Allocate Buffers2. Create Streams3. Prime Streams1. Reclaim Full Buf2. Process3. Issue Empty Buf
buf
buf
task_function(){
SIO_create()MEM_alloc()MEM_alloc()SIO_issue()SIO_issue()while(!terminate) {
SIO_reclaim()DSP_stuff()SIO_issue() } SIO_delete()MEM_free() } T^
1. Allocate Buffers2. Create Streams3. Prime Streams1. Reclaim Full Buf2. Process3. Issue Empty Buf
buf
buf
task_function(){
SIO_create()MEM_alloc()MEM_alloc()SIO_issue()SIO_issue()while(!terminate) {
SIO_reclaim()DSP_stuff()SIO_issue() } SIO_delete()MEM_free() } T^