Searched refs:apsize (Results 1 – 6 of 6) sorted by relevance
/netbsd-src/sys/dev/pci/ |
H A D | agp_via.c | 185 u_int32_t apsize; in agp_via_get_aperture() local 188 apsize = pci_conf_read(sc->as_pc, sc->as_tag, in agp_via_get_aperture() 198 return (((apsize ^ 0xff) << 20) | ((1 << 20) - 1)) + 1; in agp_via_get_aperture() 200 apsize = pci_conf_read(sc->as_pc, sc->as_tag, in agp_via_get_aperture() 202 switch (apsize) { in agp_via_get_aperture() 225 "invalid aperture setting 0x%x\n", apsize); in agp_via_get_aperture() 235 u_int32_t apsize, key; in agp_via_set_aperture() local 242 apsize = ((aperture - 1) >> 20) ^ 0xff; in agp_via_set_aperture() 247 if ((((apsize ^ 0xff) << 20) | ((1 << 20) - 1)) + 1 != aperture) in agp_via_set_aperture() 253 reg |= apsize; in agp_via_set_aperture()
|
H A D | agp_amd64.c | 506 uint32_t apsize; in agp_amd64_nvidia_set_aperture() local 509 case 0x02000000: apsize = 0x0f; break; /* 32 MB */ in agp_amd64_nvidia_set_aperture() 510 case 0x04000000: apsize = 0x0e; break; /* 64 MB */ in agp_amd64_nvidia_set_aperture() 511 case 0x08000000: apsize = 0x0c; break; /* 128 MB */ in agp_amd64_nvidia_set_aperture() 512 case 0x10000000: apsize = 0x08; break; /* 256 MB */ in agp_amd64_nvidia_set_aperture() 513 case 0x20000000: apsize = 0x00; break; /* 512 MB */ in agp_amd64_nvidia_set_aperture() 520 AGP_AMD64_NVIDIA_1_APSIZE) & 0xfffffff0) | apsize); in agp_amd64_nvidia_set_aperture() 545 uint32_t apsize; in agp_amd64_via_set_aperture() local 547 apsize = ((aperture - 1) >> 20) ^ 0xff; in agp_amd64_via_set_aperture() 548 if ((((apsize ^ 0xff) << 20) | ((1 << 20) - 1)) + 1 != aperture) in agp_amd64_via_set_aperture() [all …]
|
H A D | agp_intel.c | 301 u_int32_t apsize; in agp_intel_get_aperture() local 303 apsize = pci_conf_read(sc->as_pc, sc->as_tag, in agp_intel_get_aperture() 313 return (((apsize ^ isc->aperture_mask) << 22) | ((1 << 22) - 1)) + 1; in agp_intel_get_aperture() 320 u_int32_t apsize; in agp_intel_set_aperture() local 325 apsize = ((aperture - 1) >> 22) ^ isc->aperture_mask; in agp_intel_set_aperture() 330 if ((((apsize ^ isc->aperture_mask) << 22) | in agp_intel_set_aperture() 335 AGP_INTEL_APSIZE, apsize); in agp_intel_set_aperture()
|
H A D | agp_apple.c | 135 u_int32_t apsize = 0; in agp_apple_get_aperture() 138 apsize = pci_conf_read(sc->as_pc, sc->as_tag, in agp_apple_get_aperture() 140 aprint_error("%08x\n", apsize); in agp_apple_get_aperture() 141 return (apsize << 22); in agp_apple_get_aperture()
|
H A D | agp_amd.c | 98 u_int32_t apsize = AGP_GET_APERTURE(sc); in agp_amd_alloc_gatt() local 99 u_int32_t entries = apsize >> AGP_PAGE_SHIFT; in agp_amd_alloc_gatt()
|
H A D | agp.c | 405 u_int32_t apsize = AGP_GET_APERTURE(sc); in agp_alloc_gatt() local 406 u_int32_t entries = apsize >> AGP_PAGE_SHIFT; in agp_alloc_gatt()
|