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