MFp4: Add the ipend() method to the serdev I/F to allow umbrella

drivers to obtain pending interrupt status from subordinate
	drivers.
This commit is contained in:
Marcel Moolenaar 2006-04-23 22:12:39 +00:00
parent 63f8efd314
commit 845652dd28
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=157990

View File

@ -49,6 +49,12 @@ CODE {
return (NULL);
}
static int
default_ipend(device_t dev)
{
return (-1);
}
static int
default_sysdev(device_t dev)
{
@ -66,6 +72,15 @@ METHOD serdev_intr_t* ihand {
int ipend;
} DEFAULT default_ihand;
# ipend() - Query pending interrupt status.
# This method is called by the umbrella driver to obtain interrupt status
# for the UART in question. This allows the umbrella driver to build a
# matrix and service the interrupts in the most flexible way by calling
# interrupt handlers collected with the ihand() method.
METHOD int ipend {
device_t dev;
} DEFAULT default_ipend;
# sysdev() - Query system device status
# This method may be called by the umbrella driver for each child driver
# to establish if a particular channel and mode is currently being used