Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/bus.h
Show First 20 Lines • Show All 259 Lines • ▼ Show 20 Lines | |||||
* XXX We should probably revisit this and remove the vestiges of the | * XXX We should probably revisit this and remove the vestiges of the | ||||
* spls implicit in names like INTR_TYPE_TTY. In the meantime, don't | * spls implicit in names like INTR_TYPE_TTY. In the meantime, don't | ||||
* confuse things by renaming them (Grog, 18 July 2000). | * confuse things by renaming them (Grog, 18 July 2000). | ||||
* | * | ||||
* Buses which do interrupt remapping will want to change their type | * Buses which do interrupt remapping will want to change their type | ||||
* to reflect what sort of devices are underneath. | * to reflect what sort of devices are underneath. | ||||
*/ | */ | ||||
enum intr_type { | enum intr_type { | ||||
INTR_TYPE_RESERVED = 0, | |||||
INTR_TYPE_TTY = 1, | INTR_TYPE_TTY = 1, | ||||
INTR_TYPE_BIO = 2, | INTR_TYPE_BIO = 2, | ||||
INTR_TYPE_NET = 4, | INTR_TYPE_NET = 3, | ||||
INTR_TYPE_CAM = 8, | INTR_TYPE_CAM = 4, | ||||
INTR_TYPE_MISC = 16, | INTR_TYPE_MISC = 5, | ||||
INTR_TYPE_CLK = 32, | INTR_TYPE_CLK = 6, | ||||
INTR_TYPE_AV = 64, | INTR_TYPE_AV = 7, | ||||
INTR_TYPE_LKPI = 8, | |||||
INTR_TYPE_MASK = 127, | |||||
INTR_EXCL = 256, /* exclusive interrupt */ | INTR_EXCL = 256, /* exclusive interrupt */ | ||||
kib: Would be nice to fix these to hex values while there. | |||||
INTR_MPSAFE = 512, /* this interrupt is SMP safe */ | INTR_MPSAFE = 512, /* this interrupt is SMP safe */ | ||||
INTR_ENTROPY = 1024, /* this interrupt provides entropy */ | INTR_ENTROPY = 1024, /* this interrupt provides entropy */ | ||||
INTR_MD1 = 4096, /* flag reserved for MD use */ | INTR_MD1 = 4096, /* flag reserved for MD use */ | ||||
INTR_MD2 = 8192, /* flag reserved for MD use */ | INTR_MD2 = 8192, /* flag reserved for MD use */ | ||||
INTR_MD3 = 16384, /* flag reserved for MD use */ | INTR_MD3 = 16384, /* flag reserved for MD use */ | ||||
INTR_MD4 = 32768 /* flag reserved for MD use */ | INTR_MD4 = 32768 /* flag reserved for MD use */ | ||||
}; | }; | ||||
▲ Show 20 Lines • Show All 691 Lines • Show Last 20 Lines |
Would be nice to fix these to hex values while there.