Lines Matching +full:bus +full:- +full:range

1 #-
2 # Copyright (c) 1998-2004 Doug Rabson
30 #include <sys/bus.h>
33 * @defgroup BUS bus - KObj methods for drivers of devices with children
38 INTERFACE bus;
53 null_remap_intr(device_t bus, device_t dev, u_int irq)
62 null_add_child(device_t bus, int order, const char *name,
67 "unit %d", device_get_nameunit(bus), name, unit);
71 null_reset_post(device_t bus, device_t dev)
77 null_reset_prepare(device_t bus, device_t dev)
83 null_get_rman(device_t bus, int type, u_int flags)
94 * the parent. For instance the TurboLaser bus prints which node the
123 * @brief Read the value of a bus-specific attribute of a device
125 * This method, along with BUS_WRITE_IVAR() manages a bus-specific set
127 * each different type of bus defines a set of appropriate instance
128 * variables (such as ports and irqs for ISA bus etc.)
131 * that makes it hard for a bus to add or remove variables without
157 * @brief Write the value of a bus-specific attribute of a device
171 * contains a read-only value
181 * @brief Notify a bus that a child was deleted
184 * to teardown any bus-specific state for the child.
195 * @brief Notify a bus that a child was detached
209 * @brief Notify a bus that a new driver was added
212 * bus. The generic implementation of this method attempts to probe and
213 * attach any un-matched children of the bus.
232 * a suitable ivar to the device specific to that bus.
234 * @param _dev the bus device which will be the parent of the
237 * children of @p _dev - devices created using
242 * @param _unit unit number for new device or @c -1 if not
253 * @brief Rescan the bus
255 * This method is called by a parent bridge or devctl to trigger a bus
259 * @param _dev the bus device
268 * This method is called by child devices of a bus to allocate resources.
270 * resource-ID field varies from bus to bus (but @p *rid == 0 is always
280 * @param _start hint at the start of the resource range - pass
282 * @param _end hint at the end of the resource range - pass
284 * @param _count hint at the size of range required - pass @c 1
287 * allocation - see @c RF_XXX flags in
326 * Allocate a mapping for a range of an active resource. The mapping
385 * BUS_ALLOC_RESOURCE. At least part of the new address range must overlap
386 * with the existing address range. If the successful, the resource's range
392 * @param _start the new starting address of the resource range
393 * @param _end the new ending address of the resource range
406 * Give a bus driver the opportunity to translate resource ranges. If
412 * @param _start the starting address of the resource range
413 * @param _newstart the new starting address of the resource range
446 * interrupt handler - the caller should save this value to use in a
536 * driver to describe a resource range that it would like to
539 * range.
545 * @param _start the start of the resource range
546 * @param _count the size of the resource range
560 * This method allows a driver to examine the range used for a given
568 * index of the resource range
570 * of the resource range
621 * @param _dev the bus device
637 * should return -1 if it is present. Any errors in determining
657 * The string must be formatted as a space-separated list of
659 * underscores ('_') and hyphens ('-'). Values can contain any
660 * non-whitespace characters. Values containing whitespace can be
679 * The string must be formatted as a space-separated list of
681 * underscores ('_') and hyphens ('-'). Values can contain any
682 * non-whitespace characters. Values containing whitespace can be
713 * @brief Allow (bus) drivers to specify the trigger mode and polarity
716 * @param _dev the bus device
748 * @brief Notify a (bus) driver about a child that the hints mechanism
751 * The bus is responsible for then adding the child in the right order
752 * and discovering other things about the child. The bus driver is
754 * to the bus driver to interpret.
756 * This method is only called in response to the parent bus asking for
759 * @param _dev the bus device
770 * @brief Returns bus_dma_tag_t for use w/ devices on the bus.
781 * @brief Returns bus_space_tag_t for use w/ devices on the bus.
792 * @brief Allow the bus to determine the unit number of a device.
807 * @brief Notify a bus that the bus pass level has been changed
809 * @param _dev the bus device
816 * @brief Notify a bus that specified child's IRQ should be remapped.
818 * @param _dev the bus device
851 * @brief Get the VM domain handle for the given bus and child.
853 * @param _dev the bus device
855 * @param _domain a pointer to the bus's domain handle identifier
866 * @param _dev the bus device
882 * @brief Prepares the given child of the bus for reset
884 * Typically bus detaches or suspends children' drivers, and then
885 * calls this method to save bus-specific information, for instance,
889 * implementing bus reset methods.
891 * @param _dev the bus device
903 * implementing bus reset methods.
905 * @param _dev the bus device
916 * @param _dev the bus device
930 * specific properties stored on the bus. If _propvalue
934 * @param _dev the bus device
940 * @returns size of property if successful otherwise -1
958 * @param _bus the bus device