Lines Matching refs:device_t
451 device_t bhnd_bus_match_child(device_t bus,
454 device_t bhnd_bus_find_child(device_t bus,
457 int bhnd_bus_get_children(device_t bus,
458 device_t **devlistp, int *devcountp,
461 void bhnd_bus_free_children(device_t *devlist);
463 int bhnd_bus_probe_children(device_t bus);
465 int bhnd_sort_devices(device_t *devlist,
468 device_t bhnd_find_bridge_root(device_t dev,
502 bool bhnd_device_matches(device_t dev,
505 const struct bhnd_device *bhnd_device_lookup(device_t dev,
509 uint32_t bhnd_device_quirks(device_t dev,
513 struct bhnd_core_info bhnd_get_core_info(device_t dev);
515 int bhnd_alloc_resources(device_t dev,
519 void bhnd_release_resources(device_t dev,
523 void bhnd_set_custom_core_desc(device_t dev,
525 void bhnd_set_default_core_desc(device_t dev);
527 void bhnd_set_default_bus_desc(device_t dev,
530 int bhnd_nvram_getvar_str(device_t dev,
534 int bhnd_nvram_getvar_uint(device_t dev,
536 int bhnd_nvram_getvar_uint8(device_t dev,
538 int bhnd_nvram_getvar_uint16(device_t dev,
540 int bhnd_nvram_getvar_uint32(device_t dev,
543 int bhnd_nvram_getvar_int(device_t dev,
545 int bhnd_nvram_getvar_int8(device_t dev,
547 int bhnd_nvram_getvar_int16(device_t dev,
549 int bhnd_nvram_getvar_int32(device_t dev,
552 int bhnd_nvram_getvar_array(device_t dev,
562 device_t provider,
567 device_t provider,
569 device_t bhnd_service_registry_retain(
574 device_t provider,
578 device_t dev, device_t child,
579 device_t provider, bhnd_service_t service);
581 device_t dev, device_t child,
582 device_t provider, bhnd_service_t service);
583 device_t bhnd_bus_generic_retain_provider(device_t dev,
584 device_t child, bhnd_service_t service);
585 void bhnd_bus_generic_release_provider(device_t dev,
586 device_t child, device_t provider,
590 device_t dev, device_t child,
591 device_t provider, bhnd_service_t service);
593 device_t dev, device_t child,
594 device_t provider, bhnd_service_t service);
595 device_t bhnd_bus_generic_sr_retain_provider(device_t dev,
596 device_t child, bhnd_service_t service);
597 void bhnd_bus_generic_sr_release_provider(device_t dev,
598 device_t child, device_t provider,
601 bool bhnd_bus_generic_is_hw_disabled(device_t dev,
602 device_t child);
603 bool bhnd_bus_generic_is_region_valid(device_t dev,
604 device_t child, bhnd_port_type type,
606 int bhnd_bus_generic_get_nvram_var(device_t dev,
607 device_t child, const char *name,
610 const struct bhnd_chipid *bhnd_bus_generic_get_chipid(device_t dev,
611 device_t child);
613 device_t dev, device_t child, u_int width,
616 int bhnd_bus_generic_read_board_info(device_t dev,
617 device_t child,
619 struct bhnd_resource *bhnd_bus_generic_alloc_resource (device_t dev,
620 device_t child, int type, int *rid,
623 int bhnd_bus_generic_release_resource (device_t dev,
624 device_t child, int type, int rid,
626 int bhnd_bus_generic_activate_resource (device_t dev,
627 device_t child, int type, int rid,
629 int bhnd_bus_generic_deactivate_resource (device_t dev,
630 device_t child, int type, int rid,
632 uintptr_t bhnd_bus_generic_get_intr_domain(device_t dev,
633 device_t child, bool self);
652 static inline device_t
653 bhnd_bus_find_hostb_device(device_t dev) { in bhnd_bus_find_hostb_device()
670 bhnd_register_provider(device_t dev, bhnd_service_t service) in bhnd_register_provider()
689 bhnd_deregister_provider(device_t dev, bhnd_service_t service) in bhnd_deregister_provider()
708 static inline device_t
709 bhnd_retain_provider(device_t dev, bhnd_service_t service) in bhnd_retain_provider()
724 bhnd_release_provider(device_t dev, device_t provider, in bhnd_release_provider()
743 bhnd_is_hw_disabled(device_t dev) { in bhnd_is_hw_disabled()
753 bhnd_get_chipid(device_t dev) { in bhnd_get_chipid()
770 bhnd_read_ioctl(device_t dev, uint16_t *ioctl) in bhnd_read_ioctl()
791 bhnd_write_ioctl(device_t dev, uint16_t value, uint16_t mask) in bhnd_write_ioctl()
809 bhnd_read_iost(device_t dev, uint16_t *iost) in bhnd_read_iost()
825 bhnd_is_hw_suspended(device_t dev) in bhnd_is_hw_suspended()
848 bhnd_reset_hw(device_t dev, uint16_t ioctl, uint16_t reset_ioctl) in bhnd_reset_hw()
868 bhnd_suspend_hw(device_t dev, uint16_t ioctl) in bhnd_suspend_hw()
884 bhnd_get_attach_type (device_t dev) { in bhnd_get_attach_type()
913 bhnd_get_dma_translation(device_t dev, u_int width, uint32_t flags, in bhnd_get_dma_translation()
936 bhnd_read_board_info(device_t dev, struct bhnd_board_info *info) in bhnd_read_board_info()
947 bhnd_get_intr_count(device_t dev) in bhnd_get_intr_count()
971 bhnd_get_intr_ivec(device_t dev, u_int intr, u_int *ivec) in bhnd_get_intr_ivec()
993 bhnd_map_intr(device_t dev, u_int intr, rman_res_t *irq) in bhnd_map_intr()
1005 bhnd_unmap_intr(device_t dev, rman_res_t irq) in bhnd_unmap_intr()
1025 bhnd_alloc_pmu(device_t dev) in bhnd_alloc_pmu()
1042 bhnd_release_pmu(device_t dev) in bhnd_release_pmu()
1066 bhnd_get_clock_latency(device_t dev, bhnd_clock clock, u_int *latency) in bhnd_get_clock_latency()
1086 bhnd_get_clock_freq(device_t dev, bhnd_clock clock, u_int *freq) in bhnd_get_clock_freq()
1109 bhnd_request_clock(device_t dev, bhnd_clock clock) in bhnd_request_clock()
1135 bhnd_enable_clocks(device_t dev, uint32_t clocks) in bhnd_enable_clocks()
1157 bhnd_request_ext_rsrc(device_t dev, u_int rsrc) in bhnd_request_ext_rsrc()
1176 bhnd_release_ext_rsrc(device_t dev, u_int rsrc) in bhnd_release_ext_rsrc()
1205 bhnd_read_config(device_t dev, bus_size_t offset, void *value, u_int width) in bhnd_read_config()
1234 bhnd_write_config(device_t dev, bus_size_t offset, const void *value, in bhnd_write_config()
1267 bhnd_nvram_getvar(device_t dev, const char *name, void *buf, size_t *len, in bhnd_nvram_getvar()
1295 bhnd_alloc_resource(device_t dev, int type, int *rid, rman_res_t start, in bhnd_alloc_resource()
1317 bhnd_alloc_resource_any(device_t dev, int type, int *rid, u_int flags) in bhnd_alloc_resource_any()
1335 bhnd_activate_resource(device_t dev, int type, int rid, in bhnd_activate_resource()
1355 bhnd_deactivate_resource(device_t dev, int type, int rid, in bhnd_deactivate_resource()
1375 bhnd_release_resource(device_t dev, int type, int rid, in bhnd_release_resource()
1392 bhnd_is_region_valid(device_t dev, bhnd_port_type type, u_int port, in bhnd_is_region_valid()
1406 bhnd_get_port_count(device_t dev, bhnd_port_type type) { in bhnd_get_port_count()
1419 bhnd_get_region_count(device_t dev, bhnd_port_type type, u_int port) { in bhnd_get_region_count()
1436 bhnd_get_port_rid(device_t dev, bhnd_port_type type, u_int port, u_int region) in bhnd_get_port_rid()
1456 bhnd_decode_port_rid(device_t dev, int type, int rid, bhnd_port_type *port_type, in bhnd_decode_port_rid()
1477 bhnd_get_region_addr(device_t dev, bhnd_port_type port_type, u_int port, in bhnd_get_region_addr()