AGP_VIA_AGPSEL
(pci_cfgregread(0, 0, 1, 0, AGP_VIA_AGPSEL, 1) & 2))
agpsel = pci_read_config(dev, AGP_VIA_AGPSEL, 1);