I'm writing a char device driver for a dsp card that drives a motionplatform. The basic flow is I basically have to reset the card and uploadan executable file to it, and then poke the card to run it. Once this isdone, I can issue instructions to the card/code to pass and return datafrom the card about the platform it's controlling.

To pass the instructions I'm using a generic ioctl which passes the databetween user & kernel-space using a struct which is basically like: