Look farther down in os-registry.c
You'll see an NVreg_EnableVia4x parameter. This must be set to 1 to get 4x AGP on a Via chipset motherboard.
HOWEVER, you will want to read the comments above that setting. If you see instabilities, back the AGP rate down before you try anything else.