For my custom board derived from the DM6467T EVM, I can envision modifying board-dm646x-evm.c to include a function to do what I need. But how do I then call, or otherwise cause this function to execute, from user space (from my application program)?
More specifically, I need to set a bit I've newly defined in Reg0 of the CPLD. I see in board-dm646x-evm.c a couple of functions that use i2c_transfer() to read/modify/write reg0. I even see where usb_vbus_control() is subject to EXPORT_SYMBOL() and then called elsewhere from [I believe] kernel space. So, I figure I can clone usb_vbus_control() to make my own custom_hardware_control() function, and even export it. But that gives me at best kernel space access to the function. How do I get user space access?
Thanks very much,
Helmut