FreeBSD/sys/arm64/cavium/thunder_pcie_pem.c
/*
 * This function is an exact copy of nexus_deactivate_resource()
 * Keep it up-to-date with all changes in nexus. To be removed
 * once bus-mapping interface is developed.
 */
This function is an exact copy of nexus_deactivate_resource()
Keep it up-to-date with all changes in nexus. To be removed
once bus-mapping interface is developed.
This function is an exact copy of nexus_deactivate_resource () Keep it up - to - date with all changes in nexus . To be removed once bus - mapping interface is developed .
static int
thunder_pem_deactivate_resource(device_t bus, device_t child, int type, int rid,
    struct resource *r)
{
	bus_size_t psize;
	bus_space_handle_t vaddr;
	psize = (bus_size_t)rman_get_size(r);
	vaddr = rman_get_bushandle(r);
	if (vaddr != 0) {
		bus_space_unmap(&memmap_bus, vaddr, psize);
		rman_set_virtual(r, NULL);
		rman_set_bushandle(r, 0);
	}
	return (rman_deactivate_resource(r));
}
static int thunder_pem_deactivate_resource ( device_t bus , device_t child , int type , int rid , struct resource * r ) { bus_size_t psize ; bus_space_handle_t vaddr ; psize = ( bus_size_t ) rman_get_size ( r ) ; vaddr = rman_get_bushandle ( r ) ; if ( vaddr != 0 ) { bus_space_unmap ( & memmap_bus , vaddr , psize ) ; rman_set_virtual ( r , NULL ) ; rman_set_bushandle ( r , 0 ) ; } return ( rman_deactivate_resource ( r ) ) ; }
This function is an exact copy of nexus_deactivate_resource()
 Keep it up-to-date with all changes in nexus.
This function is an exact copy of nexus_deactivate_resource () Keep it up - to - date with all changes in nexus .