In Linux userspace the typical method used to access GPIOs is the through the /sys pseudo-filesystem (aka sysfs). This offers a somewhat-portable interface that tries to minimize hardware dependencies and avoid conflicts with device drivers.
To determine the GPIO numbers that you want to access on your board, you will have to consult your SoC documentation. The directory names in /sys/class/gpio/ need to be identified with their hardware register counterparts. These directory names will have the form gpiochipN, where N is for the base GPIO number in that register. The file gpiochipN/label should help identify the register, e.g. by its (memory or port) address.
Note that N may not start with 0. An Intel BayTrail system might have gpiochip82 as its first directory, so the lowest-numbered GPIO would be 82. The bit number of the register should be added to the base number to obtain the GPIO number.
Refer to Sysfs Interface for Userspace for formal documentation.
I can do this thorugh RW-everything 1. However, this is in Windows.
A similar program could probably be written to execute under Linux. However Linux programs (unlike Windows which is x86-centric) should be portable to other architectures, so such a program that needs to know low-level hardware details is near-impossible to write/maintain. One purpose of device drivers is to isolate/modularize such HW details, and such a program is trying to circumvent those drivers!
Additionally using such a program could make a system unstable or malfunction. Mucking around memory and/or device registers is unsafe on a running system. FWIW I have written a utility that reports the configuration of the pins for one specific SoC, but that only reads the registers and never modifies any setting.
Note that most SoC documentation (as well as Linux) treat pin control and
configuration as a separate (but closely related if not overlapping) subsystem to GPIOs. Pin control and configuration typically includes:
- multiplexing the pin for different peripherals/functionality,
- directionality (i.e. input or output),
- connecting pull-up or pull-down resistors,
- input filtering (i.e. de-glitching),
- output drive (e.g. open drain), and
- interrupt control.
The GPIO subsystem typically handles:
- directionality,
- pin state, and
- interrupt control.