List the IO SAPIC delivery mode definitions.
This commit is contained in:
parent
c281972e61
commit
ae8ef28761
@ -142,7 +142,7 @@ sapic_enable(struct sapic *sa, int input, int vector,
|
||||
rte.rte_destination_eid = (lid >> 16) & 255;
|
||||
rte.rte_trigger_mode = trigger_mode;
|
||||
rte.rte_polarity = polarity;
|
||||
rte.rte_delivery_mode = 0; /* fixed */
|
||||
rte.rte_delivery_mode = SAPIC_DELMODE_LOWPRI;
|
||||
rte.rte_vector = vector;
|
||||
sapic_write_rte(sa, input, &rte);
|
||||
}
|
||||
|
@ -42,6 +42,13 @@ struct sapic {
|
||||
#define SAPIC_POLARITY_HIGH 0
|
||||
#define SAPIC_POLARITY_LOW 1
|
||||
|
||||
#define SAPIC_DELMODE_FIXED 0
|
||||
#define SAPIC_DELMODE_LOWPRI 1
|
||||
#define SAPIC_DELMODE_PMI 2
|
||||
#define SAPIC_DELMODE_NMI 4
|
||||
#define SAPIC_DELMODE_INIT 5
|
||||
#define SAPIC_DELMODE_EXTINT 7
|
||||
|
||||
struct sapic *sapic_create(int id, int base, u_int64_t address);
|
||||
void sapic_enable(struct sapic *sa, int input, int vector,
|
||||
int trigger_mode, int polarity);
|
||||
|
Loading…
x
Reference in New Issue
Block a user