Hi,
for the Galileo Gen 1, take a look at wiring_digital.c and fast_gpio* files under the ../hardware/arduino/x86/cores/arduino folder
also look at varaint.h ../hardware/arduino/x86/arduino/x86/variants/galileo_fab_d where some of the macros are defined