xref: /plan9/sys/src/9/rb/notes/pci.intr (revision f43f8ee646e2cb29aea7fd7bb5fc7318a3f4921f)
1	/*
2	 * much of this is inspired by the freebsd driver,
3	 * but is hard to understand due to lack of documentation.
4	 *
5	 * only pci irqs 0-2 are valid.
6	 * 0 seems to yield INTR6.
7	 * pci irqs 1-2 yield spurious ether intrs.
8	 */
9	i = 0;
10	*Pciintrsts = 0;
11	*Pciintrmask = 1 << i;
12	junk = *Pciintrmask;		/* flush the write */
13