Searched refs:mmap_reg (Results 1 – 5 of 5) sorted by relevance
/hardware/bsp/intel/peripheral/libmraa/src/arm/ |
D | raspberry_pi.c | 61 static uint8_t* mmap_reg = NULL; variable 117 *(volatile uint32_t*) (mmap_reg + BCM283X_GPSET0 + (dev->pin / 32) * 4) = in mraa_raspberry_pi_mmap_write() 120 *(volatile uint32_t*) (mmap_reg + BCM283X_GPCLR0 + (dev->pin / 32) * 4) = in mraa_raspberry_pi_mmap_write() 129 if (mmap_reg == NULL) { in mraa_raspberry_pi_mmap_unsetup() 133 munmap(mmap_reg, mmap_size); in mraa_raspberry_pi_mmap_unsetup() 134 mmap_reg = NULL; in mraa_raspberry_pi_mmap_unsetup() 144 uint32_t value = *(volatile uint32_t*) (mmap_reg + BCM2835_GPLEV0 + (dev->pin / 32) * 4); in mraa_raspberry_pi_mmap_read() 181 if (mmap_reg == NULL) { in mraa_raspberry_pi_mmap_setup() 188 mmap_reg = (uint8_t*) mmap(NULL, BCM2836_BLOCK_SIZE, PROT_READ | PROT_WRITE, in mraa_raspberry_pi_mmap_setup() 191 mmap_reg = (uint8_t*) mmap(NULL, BCM2835_BLOCK_SIZE, PROT_READ | PROT_WRITE, in mraa_raspberry_pi_mmap_setup() [all …]
|
D | banana.c | 49 static uint8_t* mmap_reg = NULL; variable 109 *(volatile uint32_t*) (mmap_reg + SUNXI_GPIO_DAT + (dev->pin / 32) * SUNXI_GPIO_PORT_OFFSET); in mraa_banana_mmap_write() 112 … *(volatile uint32_t*) (mmap_reg + SUNXI_GPIO_DAT + (dev->pin / 32) * SUNXI_GPIO_PORT_OFFSET) = in mraa_banana_mmap_write() 115 … *(volatile uint32_t*) (mmap_reg + SUNXI_GPIO_DAT + (dev->pin / 32) * SUNXI_GPIO_PORT_OFFSET) = in mraa_banana_mmap_write() 125 *(volatile uint32_t*) (mmap_reg + SUNXI_GPIO_DAT + (dev->pin / 32) * SUNXI_GPIO_PORT_OFFSET); in mraa_banana_mmap_read() 135 if (mmap_reg == NULL) { in mraa_banana_mmap_unsetup() 139 munmap(mmap_reg, mmap_size); in mraa_banana_mmap_unsetup() 140 mmap_reg = NULL; in mraa_banana_mmap_unsetup() 177 if (mmap_reg == NULL) { in mraa_banana_mmap_setup() 183 mmap_reg = (uint8_t*) mmap(NULL, SUNXI_BLOCK_SIZE, PROT_READ | PROT_WRITE, in mraa_banana_mmap_setup() [all …]
|
/hardware/bsp/intel/peripheral/libmraa/src/x86/ |
D | intel_galileo_rev_d.c | 37 static uint8_t* mmap_reg = NULL; variable 45 if (mmap_reg == NULL) { in mraa_intel_galileo_g1_mmap_unsetup() 49 munmap(mmap_reg, mmap_size); in mraa_intel_galileo_g1_mmap_unsetup() 50 mmap_reg = NULL; in mraa_intel_galileo_g1_mmap_unsetup() 60 *((unsigned*) mmap_reg) |= (1 << bitpos); in mraa_intel_galileo_g1_mmap_write() 63 *((unsigned*) mmap_reg) &= ~(1 << bitpos); in mraa_intel_galileo_g1_mmap_write() 97 if (mmap_reg == NULL) { in mraa_intel_galileo_g1_mmap_setup() 102 mmap_reg = mmap(NULL, mmap_size, PROT_READ | PROT_WRITE, MAP_SHARED, mmap_fd, 0); in mraa_intel_galileo_g1_mmap_setup() 104 if (mmap_reg == MAP_FAILED) { in mraa_intel_galileo_g1_mmap_setup() 106 mmap_reg = NULL; in mraa_intel_galileo_g1_mmap_setup()
|
D | intel_galileo_rev_g.c | 39 static uint8_t* mmap_reg = NULL; variable 246 if (mmap_reg == NULL) { in mraa_intel_galileo_g2_mmap_unsetup() 250 munmap(mmap_reg, mmap_size); in mraa_intel_galileo_g2_mmap_unsetup() 251 mmap_reg = NULL; in mraa_intel_galileo_g2_mmap_unsetup() 261 *((unsigned*) mmap_reg) |= (1 << bitpos); in mraa_intel_galileo_g2_mmap_write() 264 *((unsigned*) mmap_reg) &= ~(1 << bitpos); in mraa_intel_galileo_g2_mmap_write() 298 if (mmap_reg == NULL) { in mraa_intel_galileo_g2_mmap_setup() 303 mmap_reg = mmap(NULL, mmap_size, PROT_READ | PROT_WRITE, MAP_SHARED, mmap_fd, 0); in mraa_intel_galileo_g2_mmap_setup() 305 if (mmap_reg == MAP_FAILED) { in mraa_intel_galileo_g2_mmap_setup() 307 mmap_reg = NULL; in mraa_intel_galileo_g2_mmap_setup()
|
D | intel_edison_fab_c.c | 73 static uint8_t* mmap_reg = NULL; variable 635 if (mmap_reg == NULL) { in mraa_intel_edsion_mmap_unsetup() 639 munmap(mmap_reg, mmap_size); in mraa_intel_edsion_mmap_unsetup() 640 mmap_reg = NULL; in mraa_intel_edsion_mmap_unsetup() 659 *(volatile uint32_t*) (mmap_reg + offset + valoff) = (uint32_t)(1 << (dev->pin % 32)); in mraa_intel_edison_mmap_write() 670 value = *(volatile uint32_t*) (mmap_reg + 0x04 + offset); in mraa_intel_edison_mmap_read() 707 if (mmap_reg == NULL) { in mraa_intel_edison_mmap_setup() 720 mmap_reg = in mraa_intel_edison_mmap_setup() 722 if (mmap_reg == MAP_FAILED) { in mraa_intel_edison_mmap_setup() 724 mmap_reg = NULL; in mraa_intel_edison_mmap_setup()
|