subr_rman.c (04fc3fb8fcf631889ec9a181504e6ae1daebd3cd) | subr_rman.c (b30a80b65587fb9fd4a5f012d606dbd0c6239a46) |
---|---|
1/*- 2 * Copyright 1998 Massachusetts Institute of Technology 3 * 4 * Permission to use, copy, modify, and distribute this software and 5 * its documentation for any purpose and without fee is hereby 6 * granted, provided that both the above copyright notice and this 7 * permission notice appear in all copies, that both the above 8 * copyright notice and this permission notice appear in all --- 77 unchanged lines hidden (view full) --- 86 rman_res_t r_start; /* index of the first entry in this resource */ 87 rman_res_t r_end; /* index of the last entry (inclusive) */ 88 u_int r_flags; 89 void *r_virtual; /* virtual address of this resource */ 90 void *r_irq_cookie; /* interrupt cookie for this (interrupt) resource */ 91 device_t r_dev; /* device which has allocated this resource */ 92 struct rman *r_rm; /* resource manager from whence this came */ 93 int r_rid; /* optional rid for this resource. */ | 1/*- 2 * Copyright 1998 Massachusetts Institute of Technology 3 * 4 * Permission to use, copy, modify, and distribute this software and 5 * its documentation for any purpose and without fee is hereby 6 * granted, provided that both the above copyright notice and this 7 * permission notice appear in all copies, that both the above 8 * copyright notice and this permission notice appear in all --- 77 unchanged lines hidden (view full) --- 86 rman_res_t r_start; /* index of the first entry in this resource */ 87 rman_res_t r_end; /* index of the last entry (inclusive) */ 88 u_int r_flags; 89 void *r_virtual; /* virtual address of this resource */ 90 void *r_irq_cookie; /* interrupt cookie for this (interrupt) resource */ 91 device_t r_dev; /* device which has allocated this resource */ 92 struct rman *r_rm; /* resource manager from whence this came */ 93 int r_rid; /* optional rid for this resource. */ |
94 int r_type; /* optional type for this resource. */ |
|
94}; 95 96static int rman_debug = 0; 97SYSCTL_INT(_debug, OID_AUTO, rman_debug, CTLFLAG_RWTUN, 98 &rman_debug, 0, "rman debug"); 99 100#define DPRINTF(params) if (rman_debug) printf params 101 --- 821 unchanged lines hidden (view full) --- 923int 924rman_get_rid(struct resource *r) 925{ 926 927 return (r->__r_i->r_rid); 928} 929 930void | 95}; 96 97static int rman_debug = 0; 98SYSCTL_INT(_debug, OID_AUTO, rman_debug, CTLFLAG_RWTUN, 99 &rman_debug, 0, "rman debug"); 100 101#define DPRINTF(params) if (rman_debug) printf params 102 --- 821 unchanged lines hidden (view full) --- 924int 925rman_get_rid(struct resource *r) 926{ 927 928 return (r->__r_i->r_rid); 929} 930 931void |
932rman_set_type(struct resource *r, int type) 933{ 934 r->__r_i->r_type = type; 935} 936 937int 938rman_get_type(struct resource *r) 939{ 940 return (r->__r_i->r_type); 941} 942 943void |
|
931rman_set_device(struct resource *r, device_t dev) 932{ 933 934 r->__r_i->r_dev = dev; 935} 936 937device_t 938rman_get_device(struct resource *r) --- 183 unchanged lines hidden --- | 944rman_set_device(struct resource *r, device_t dev) 945{ 946 947 r->__r_i->r_dev = dev; 948} 949 950device_t 951rman_get_device(struct resource *r) --- 183 unchanged lines hidden --- |