Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/bus.h
Show First 20 Lines • Show All 836 Lines • ▼ Show 20 Lines | static __inline void varp ## _set_ ## var(device_t dev, type t) \ | ||||
int e __diagused; \ | int e __diagused; \ | ||||
e = BUS_WRITE_IVAR(device_get_parent(dev), dev, \ | e = BUS_WRITE_IVAR(device_get_parent(dev), dev, \ | ||||
ivarp ## _IVAR_ ## ivar, v); \ | ivarp ## _IVAR_ ## ivar, v); \ | ||||
KASSERT(e == 0, ("%s failed for %s on bus %s, error = %d", \ | KASSERT(e == 0, ("%s failed for %s on bus %s, error = %d", \ | ||||
__func__, device_get_nameunit(dev), \ | __func__, device_get_nameunit(dev), \ | ||||
device_get_nameunit(device_get_parent(dev)), e)); \ | device_get_nameunit(device_get_parent(dev)), e)); \ | ||||
} | } | ||||
struct device_location_cache; | |||||
typedef struct device_location_cache device_location_cache_t; | |||||
device_location_cache_t *dev_wired_cache_init(void); | |||||
void dev_wired_cache_fini(device_location_cache_t *dcp); | |||||
bool dev_wired_cache_match(device_location_cache_t *dcp, device_t dev, const char *at); | |||||
/** | /** | ||||
* Shorthand macros, taking resource argument | * Shorthand macros, taking resource argument | ||||
* Generated with sys/tools/bus_macro.sh | * Generated with sys/tools/bus_macro.sh | ||||
*/ | */ | ||||
#define bus_barrier(r, o, l, f) \ | #define bus_barrier(r, o, l, f) \ | ||||
bus_space_barrier((r)->r_bustag, (r)->r_bushandle, (o), (l), (f)) | bus_space_barrier((r)->r_bustag, (r)->r_bushandle, (o), (l), (f)) | ||||
#define bus_poke_1(r, o, v) \ | #define bus_poke_1(r, o, v) \ | ||||
▲ Show 20 Lines • Show All 146 Lines • Show Last 20 Lines |