From 8302c16686caed1a545d5eb70d91e6462aa567ee Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Mon, 16 Oct 2000 19:43:44 +0000 Subject: [PATCH] Forgot to commit this last night. Define interrupt routing method. Submitted by: msmith --- sys/dev/pci/pcib_if.m | 10 ++++++++++ sys/pci/pcib_if.m | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/sys/dev/pci/pcib_if.m b/sys/dev/pci/pcib_if.m index b50df4bcfec2..2b38ef791e58 100644 --- a/sys/dev/pci/pcib_if.m +++ b/sys/dev/pci/pcib_if.m @@ -69,3 +69,13 @@ METHOD void write_config { u_int32_t value; int width; }; + +# +# Route an interrupt. Returns a value suitable for stuffing into +# a device's interrupt register. +# +METHOD int route_interrupt { + device_t dev; + int device; + int pin; +}; diff --git a/sys/pci/pcib_if.m b/sys/pci/pcib_if.m index b50df4bcfec2..2b38ef791e58 100644 --- a/sys/pci/pcib_if.m +++ b/sys/pci/pcib_if.m @@ -69,3 +69,13 @@ METHOD void write_config { u_int32_t value; int width; }; + +# +# Route an interrupt. Returns a value suitable for stuffing into +# a device's interrupt register. +# +METHOD int route_interrupt { + device_t dev; + int device; + int pin; +};