Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F152717310
D9300.id24548.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D9300.id24548.diff
View Options
Index: head/sys/powerpc/powerpc/intr_machdep.c
===================================================================
--- head/sys/powerpc/powerpc/intr_machdep.c
+++ head/sys/powerpc/powerpc/intr_machdep.c
@@ -451,7 +451,7 @@
if (error)
continue;
- if (i->trig == -1)
+ if (i->trig == INTR_TRIGGER_INVALID)
PIC_TRANSLATE_CODE(i->pic, i->intline, i->fwcode,
&i->trig, &i->pol);
if (i->trig != INTR_TRIGGER_CONFORM ||
@@ -497,7 +497,7 @@
error = powerpc_map_irq(i);
if (!error) {
- if (i->trig == -1)
+ if (i->trig == INTR_TRIGGER_INVALID)
PIC_TRANSLATE_CODE(i->pic, i->intline,
i->fwcode, &i->trig, &i->pol);
@@ -545,7 +545,7 @@
if (i == NULL)
return (ENOMEM);
- i->trig = -1;
+ i->trig = INTR_TRIGGER_INVALID;
i->pol = INTR_POLARITY_CONFORM;
i->fwcode = sense_code;
Index: head/sys/sys/bus.h
===================================================================
--- head/sys/sys/bus.h
+++ head/sys/sys/bus.h
@@ -265,6 +265,7 @@
};
enum intr_trigger {
+ INTR_TRIGGER_INVALID = -1,
INTR_TRIGGER_CONFORM = 0,
INTR_TRIGGER_EDGE = 1,
INTR_TRIGGER_LEVEL = 2
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Apr 17, 4:32 PM (5 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31669641
Default Alt Text
D9300.id24548.diff (1 KB)
Attached To
Mode
D9300: Add a INTR_TRIG_INVALID, and use it in the powerpc interrupt code.
Attached
Detach File
Event Timeline
Log In to Comment