|
Are you using linux? Generally, a device driver takes care of making whatever hardware you are using appear as a block device or similar. From there, you just use open() and read()/write() (or whatever other I/O you prefer). If you’re talking about the system’s CMOS ram (which it doesn’t look like), use the kernel nvram driver to create the block device /dev/nvram.
|