List the IO SAPIC delivery mode definitions.

This commit is contained in:
Peter Wemm 2002-10-04 01:33:30 +00:00
parent c281972e61
commit ae8ef28761
2 changed files with 8 additions and 1 deletions

View File

@ -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);
}

View File

@ -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);