Lines Matching refs:ri
72 static char *Radeon_FindRom( rom_info *ri ) in Radeon_FindRom() argument
83 rom_base = ri->bios_ptr + segstart - 0xc0000; in Radeon_FindRom()
1033 status_t Radeon_MapBIOS( pci_info *pcii, rom_info *ri ) in Radeon_MapBIOS() argument
1048 ri->phys_address = 0xc0000; in Radeon_MapBIOS()
1049 ri->size = 0x40000; in Radeon_MapBIOS()
1051 ri->bios_area = map_physical_memory( buffer, ri->phys_address, in Radeon_MapBIOS()
1052 ri->size, B_ANY_KERNEL_ADDRESS, B_READ_AREA, (void **)&ri->bios_ptr ); in Radeon_MapBIOS()
1053 if( ri->bios_area < 0 ) in Radeon_MapBIOS()
1054 return ri->bios_area; in Radeon_MapBIOS()
1056 ri->rom_ptr = Radeon_FindRom( ri ); in Radeon_MapBIOS()
1059 if( ri->rom_ptr != NULL ) in Radeon_MapBIOS()
1060 ri->phys_address += ri->rom_ptr - ri->bios_ptr; in Radeon_MapBIOS()
1062 return ri->rom_ptr != NULL ? B_OK : B_ERROR; in Radeon_MapBIOS()
1067 void Radeon_UnmapBIOS( rom_info *ri ) in Radeon_UnmapBIOS() argument
1069 delete_area( ri->bios_area ); in Radeon_UnmapBIOS()
1071 ri->bios_ptr = ri->rom_ptr = NULL; in Radeon_UnmapBIOS()