Home
last modified time | relevance | path

Searched refs:sysnode (Results 1 – 1 of 1) sorted by relevance

/hardware/bsp/intel/peripheral/libmraa/src/x86/
Dintel_edison_fab_c.c739 int sysnode = -1; in mraa_intel_edison_i2c_freq() local
743 sysnode = open("/sys/devices/pci0000:00/0000:00:08.0/i2c_dw_sysnode/mode", O_RDWR); in mraa_intel_edison_i2c_freq()
746 sysnode = open("/sys/devices/pci0000:00/0000:00:09.1/i2c_dw_sysnode/mode", O_RDWR); in mraa_intel_edison_i2c_freq()
752 if (sysnode == -1) { in mraa_intel_edison_i2c_freq()
770 close(sysnode); in mraa_intel_edison_i2c_freq()
773 if (write(sysnode, bu, length * sizeof(char)) == -1) { in mraa_intel_edison_i2c_freq()
774 close(sysnode); in mraa_intel_edison_i2c_freq()
777 close(sysnode); in mraa_intel_edison_i2c_freq()