acpi.c (295791) | acpi.c (295832) |
---|---|
1/*- 2 * Copyright (c) 2000 Takanori Watanabe <takawata@jp.freebsd.org> 3 * Copyright (c) 2000 Mitsuru IWASAKI <iwasaki@jp.freebsd.org> 4 * Copyright (c) 2000, 2001 Michael Smith 5 * Copyright (c) 2000 BSDi 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 14 unchanged lines hidden (view full) --- 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 */ 29 30#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2000 Takanori Watanabe <takawata@jp.freebsd.org> 3 * Copyright (c) 2000 Mitsuru IWASAKI <iwasaki@jp.freebsd.org> 4 * Copyright (c) 2000, 2001 Michael Smith 5 * Copyright (c) 2000 BSDi 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 14 unchanged lines hidden (view full) --- 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 */ 29 30#include <sys/cdefs.h> |
31__FBSDID("$FreeBSD: head/sys/dev/acpica/acpi.c 295791 2016-02-19 05:02:17Z adrian $"); | 31__FBSDID("$FreeBSD: head/sys/dev/acpica/acpi.c 295832 2016-02-20 01:32:58Z jhibbits $"); |
32 33#include "opt_acpi.h" 34#include <sys/param.h> 35#include <sys/kernel.h> 36#include <sys/proc.h> 37#include <sys/fcntl.h> 38#include <sys/malloc.h> 39#include <sys/module.h> --- 1289 unchanged lines hidden (view full) --- 1329acpi_alloc_resource(device_t bus, device_t child, int type, int *rid, 1330 rman_res_t start, rman_res_t end, rman_res_t count, u_int flags) 1331{ 1332 ACPI_RESOURCE ares; 1333 struct acpi_device *ad; 1334 struct resource_list_entry *rle; 1335 struct resource_list *rl; 1336 struct resource *res; | 32 33#include "opt_acpi.h" 34#include <sys/param.h> 35#include <sys/kernel.h> 36#include <sys/proc.h> 37#include <sys/fcntl.h> 38#include <sys/malloc.h> 39#include <sys/module.h> --- 1289 unchanged lines hidden (view full) --- 1329acpi_alloc_resource(device_t bus, device_t child, int type, int *rid, 1330 rman_res_t start, rman_res_t end, rman_res_t count, u_int flags) 1331{ 1332 ACPI_RESOURCE ares; 1333 struct acpi_device *ad; 1334 struct resource_list_entry *rle; 1335 struct resource_list *rl; 1336 struct resource *res; |
1337 int isdefault = (start == 0UL && end == ~0UL); | 1337 int isdefault = RMAN_IS_DEFAULT_RANGE(start, end); |
1338 1339 /* 1340 * First attempt at allocating the resource. For direct children, 1341 * use resource_list_alloc() to handle reserved resources. For 1342 * other devices, pass the request up to our parent. 1343 */ 1344 if (bus == device_get_parent(child)) { 1345 ad = device_get_ivars(child); --- 2714 unchanged lines hidden --- | 1338 1339 /* 1340 * First attempt at allocating the resource. For direct children, 1341 * use resource_list_alloc() to handle reserved resources. For 1342 * other devices, pass the request up to our parent. 1343 */ 1344 if (bus == device_get_parent(child)) { 1345 ad = device_get_ivars(child); --- 2714 unchanged lines hidden --- |