FreeBSD kernel kern code
bus_if.m File Reference
#include <sys/types.h>
#include <sys/systm.h>
#include <sys/bus.h>
Include dependency graph for bus_if.m:

Go to the source code of this file.

Variables

INTERFACE bus
 
 CODE
 
METHOD int print_child
 Print a description of a child device. More...
 
device_t _child
 
DEFAULT bus_generic_print_child
 
METHOD void probe_nomatch
 Print a notification about an unprobed child device. More...
 
METHOD int read_ivar
 Read the value of a bus-specific attribute of a device. More...
 
int _index
 
uintptr_t * _result
 
METHOD int write_ivar
 Write the value of a bus-specific attribute of a device. More...
 
int _indx
 
uintptr_t _value
 
METHOD void child_deleted
 Notify a bus that a child was deleted. More...
 
METHOD void child_detached
 Notify a bus that a child was detached. More...
 
METHOD void driver_added
 Notify a bus that a new driver was added. More...
 
driver_t * _driver
 
DEFAULT bus_generic_driver_added
 
METHOD device_t add_child
 Create a new child device. More...
 
u_int _order
 
const char * _name
 
int _unit
 
DEFAULT null_add_child
 
METHOD int rescan
 Rescan the bus. More...
 
METHOD struct resource * alloc_resource
 Allocate a system resource. More...
 
int _type
 
int * _rid
 
rman_res_t _start
 
rman_res_t _end
 
rman_res_t _count
 
u_int _flags
 
DEFAULT null_alloc_resource
 
METHOD int activate_resource
 Activate a resource. More...
 
struct resource * _r
 
METHOD int map_resource
 Map a resource. More...
 
struct resource_map_request * _args
 
struct resource_map * _map
 
DEFAULT bus_generic_map_resource
 
METHOD int unmap_resource
 Unmap a resource. More...
 
DEFAULT bus_generic_unmap_resource
 
METHOD int deactivate_resource
 Deactivate a resource. More...
 
METHOD int adjust_resource
 Adjust a resource. More...
 
struct resource * _res
 
METHOD int translate_resource
 translate a resource value More...
 
rman_res_t * _newstart
 
DEFAULT bus_generic_translate_resource
 
METHOD int release_resource
 Release a resource. More...
 
METHOD int setup_intr
 Install an interrupt handler. More...
 
struct resource * _irq
 
driver_filter_t * _filter
 
driver_intr_t * _intr
 
void * _arg
 
void ** _cookiep
 
METHOD int teardown_intr
 Uninstall an interrupt handler. More...
 
void * _cookie
 
METHOD int suspend_intr
 Suspend an interrupt handler. More...
 
DEFAULT bus_generic_suspend_intr
 
METHOD int resume_intr
 Resume an interrupt handler. More...
 
DEFAULT bus_generic_resume_intr
 
METHOD int set_resource
 Define a resource which can be allocated with BUS_ALLOC_RESOURCE(). More...
 
METHOD int get_resource
 Describe a resource. More...
 
rman_res_t * _startp
 
rman_res_t * _countp
 
METHOD void delete_resource
 Delete a resource. More...
 
METHOD struct resource_list * get_resource_list
 Return a struct resource_list. More...
 
DEFAULT bus_generic_get_resource_list
 
METHOD int child_present
 Is the hardware described by _child still attached to the system? More...
 
DEFAULT bus_generic_child_present
 
METHOD int child_pnpinfo
 Returns the pnp info for this device. More...
 
struct sbuf * _sb
 
DEFAULT bus_generic_child_pnpinfo
 
METHOD int child_location
 Returns the location for this device. More...
 
DEFAULT bus_generic_child_location
 
METHOD int bind_intr
 Allow drivers to request that an interrupt be bound to a specific CPU. More...
 
int _cpu
 
DEFAULT bus_generic_bind_intr
 
METHOD int config_intr
 Allow (bus) drivers to specify the trigger mode and polarity of the specified interrupt. More...
 
enum intr_trigger _trig
 
enum intr_polarity _pol
 
DEFAULT bus_generic_config_intr
 
METHOD int describe_intr
 Allow drivers to associate a description with an active interrupt handler. More...
 
const char * _descr
 
DEFAULT bus_generic_describe_intr
 
METHOD void hinted_child
 Notify a (bus) driver about a child that the hints mechanism believes it has discovered. More...
 
const char * _dname
 
int _dunit
 
METHOD bus_dma_tag_t get_dma_tag
 Returns bus_dma_tag_t for use w/ devices on the bus. More...
 
DEFAULT bus_generic_get_dma_tag
 
METHOD bus_space_tag_t get_bus_tag
 Returns bus_space_tag_t for use w/ devices on the bus. More...
 
DEFAULT bus_generic_get_bus_tag
 
METHOD void hint_device_unit
 Allow the bus to determine the unit number of a device. More...
 
int * _unitp
 
METHOD void new_pass
 Notify a bus that the bus pass level has been changed. More...
 
DEFAULT bus_generic_new_pass
 
METHOD int remap_intr
 Notify a bus that specified child's IRQ should be remapped. More...
 
DEFAULT null_remap_intr
 
METHOD int suspend_child
 Suspend a given child. More...
 
DEFAULT bus_generic_suspend_child
 
METHOD int resume_child
 Resume a given child. More...
 
DEFAULT bus_generic_resume_child
 
METHOD int get_domain
 Get the VM domain handle for the given bus and child. More...
 
int * _domain
 
DEFAULT bus_generic_get_domain
 
METHOD int get_cpus
 Request a set of CPUs. More...
 
enum cpu_sets _op
 
size_t _setsize
 
struct _cpuset * _cpuset
 
DEFAULT bus_generic_get_cpus
 
METHOD int reset_prepare
 Prepares the given child of the bus for reset. More...
 
DEFAULT null_reset_prepare
 
METHOD int reset_post
 Restores the child operations after the reset. More...
 
DEFAULT null_reset_post
 
METHOD int reset_child
 Performs reset of the child. More...
 
METHOD ssize_t get_property
 Gets child's specific property. More...
 
const char * _propname
 
void * _propvalue
 
size_t _size
 
device_property_type_t type
 
DEFAULT bus_generic_get_property
 
METHOD int get_device_path
 Gets a child's full path to the device. More...
 
const char * _locator
 
DEFAULT bus_generic_get_device_path