I have to say I thought you were talking more generally than this - you would need books to answer that question in more detail than has already been here! I myself haven't looked into this more than fleetingly, but basically there are a whole load of linux devices that are used to communicate with and control the DSP (including loading and starting programs, communication etc). The DSP has its own C compiler provided by TI. The best place to get started is probably the specification on http://dspgateway.sourceforge.net/
Edit: Exophase got there first! In light of what he's said, here's a bit more detail...there are devices in linux such as a DSP task device, DSP control device, DSP memory device etc. There are also sysfs entries for monitoring the DSP from the command line or whatever. The DSP programs are compiled independently using the TI tools, and then loaded, executed, communicated with and monitored using standard linux device driver calls to the relevant DSP device (i.e. open, close, ioctl, read, write, poll, select, lseek etc.. though not all the devices implement all of these calls obviously). I'm not really sure what role sysfs plays, but probably the same as sysfs/procfs does for any other cpu; general information about what the CPU is doing etc (not generally used in programming the device I wouldn't have thought, just for getting stats when in the command line, or monitoring what the DSP is doing ina general sense). A userspace library for doing useful, regular tasks (e.g. loading a program) would probably be useful, and may well also be available with the tools already.
Edit: Exophase got there first! In light of what he's said, here's a bit more detail...there are devices in linux such as a DSP task device, DSP control device, DSP memory device etc. There are also sysfs entries for monitoring the DSP from the command line or whatever. The DSP programs are compiled independently using the TI tools, and then loaded, executed, communicated with and monitored using standard linux device driver calls to the relevant DSP device (i.e. open, close, ioctl, read, write, poll, select, lseek etc.. though not all the devices implement all of these calls obviously). I'm not really sure what role sysfs plays, but probably the same as sysfs/procfs does for any other cpu; general information about what the CPU is doing etc (not generally used in programming the device I wouldn't have thought, just for getting stats when in the command line, or monitoring what the DSP is doing ina general sense). A userspace library for doing useful, regular tasks (e.g. loading a program) would probably be useful, and may well also be available with the tools already.
Last edited by a moderator: