I have spent quite a bit of time trying to get my requirements to work but no success until now.
I have a resource manager which basically reads and writes data to registers specified by the client process.
But I want to make this work from the command line. The users should be able to specify the address offset from the shell and the io_read() should be able to read that offset and call specific driver function and return the corresponding data.
My problem is I don’t see the address I specified in any of the
int[color io_read (resmgr_context_t *ctp, io_read_t *msg, RESMGR_OCB_T *ocb)
parameters in the above function. I realize io_read() is not designed to take input from the user.
Is there anyway I can modify this function or any other function to take the address offset from the command line and return the corresponding data from that register.
Any pointers on this are greatly appreciated.
Thanks in advance.