Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/serdev_if.m
Show First 20 Lines • Show All 54 Lines • ▼ Show 20 Lines | default_ipend(device_t dev) | ||||
return (-1); | return (-1); | ||||
} | } | ||||
static int | static int | ||||
default_sysdev(device_t dev) | default_sysdev(device_t dev) | ||||
{ | { | ||||
return (0); | return (0); | ||||
} | } | ||||
static void | |||||
default_adjust_rclk(device_t dev, void *bf) | |||||
{ | |||||
return; | |||||
} | |||||
}; | }; | ||||
# ihand() - Query serial device interrupt handler. | # ihand() - Query serial device interrupt handler. | ||||
# This method is called by the umbrella driver to obtain function pointers | # This method is called by the umbrella driver to obtain function pointers | ||||
# to interrupt handlers for each individual interrupt source. This allows | # to interrupt handlers for each individual interrupt source. This allows | ||||
# the umbralla driver to control the servicing of interrupts between the | # the umbralla driver to control the servicing of interrupts between the | ||||
# different channels in the most flexible way. | # different channels in the most flexible way. | ||||
METHOD serdev_intr_t* ihand { | METHOD serdev_intr_t* ihand { | ||||
Show All 16 Lines | |||||
# for system specific usage. If this is the case, the hardware is not | # for system specific usage. If this is the case, the hardware is not | ||||
# reset and the channel will not change its operation mode. | # reset and the channel will not change its operation mode. | ||||
# The return value is !0 if the channel and mode are used for a system | # The return value is !0 if the channel and mode are used for a system | ||||
# device and 0 otherwise. | # device and 0 otherwise. | ||||
METHOD int sysdev { | METHOD int sysdev { | ||||
device_t dev; | device_t dev; | ||||
} DEFAULT default_sysdev; | } DEFAULT default_sysdev; | ||||
# adjust_rclk() - request rclk be adjusted to allow the specified | |||||
# fractional baud rate to be configured. | |||||
METHOD void adjust_rclk { | |||||
device_t dev; | |||||
void *baudrate; | |||||
} DEFAULT default_adjust_rclk; |