ofw_pcib.c (b1e9313274265645e163508ff1704ace2e0b1294) ofw_pcib.c (7ae99f80b6661760c5de3edd330b279f04b092a2)
1/*-
2 * Copyright (c) 2011 Nathan Whitehorn
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 608 unchanged lines hidden (view full) ---

617 vm_size_t psize;
618
619 if (type != SYS_RES_IOPORT && type != SYS_RES_MEMORY) {
620 return (bus_generic_deactivate_resource(bus, child, type, rid,
621 res));
622 }
623
624 psize = rman_get_size(res);
1/*-
2 * Copyright (c) 2011 Nathan Whitehorn
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 608 unchanged lines hidden (view full) ---

617 vm_size_t psize;
618
619 if (type != SYS_RES_IOPORT && type != SYS_RES_MEMORY) {
620 return (bus_generic_deactivate_resource(bus, child, type, rid,
621 res));
622 }
623
624 psize = rman_get_size(res);
625 pmap_unmapdev((vm_offset_t)rman_get_virtual(res), psize);
625 pmap_unmapdev(rman_get_virtual(res), psize);
626
627 return (rman_deactivate_resource(res));
628}
629
630static int
631ofw_pcib_adjust_resource(device_t bus, device_t child, int type,
632 struct resource *res, rman_res_t start, rman_res_t end)
633{

--- 98 unchanged lines hidden ---
626
627 return (rman_deactivate_resource(res));
628}
629
630static int
631ofw_pcib_adjust_resource(device_t bus, device_t child, int type,
632 struct resource *res, rman_res_t start, rman_res_t end)
633{

--- 98 unchanged lines hidden ---