diff options
author | imp <imp@FreeBSD.org> | 2001-07-01 23:40:41 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2001-07-01 23:40:41 +0000 |
commit | 72676d41d5f13fdc02559548b56d80510ff5c46d (patch) | |
tree | 5e2998dfe2263aa57fb48bdd0a39946b3b25cc3b /sys/pccard/pcic.c | |
parent | a1e3a3a0428b519b44346f202f995d80f8ef13a0 (diff) | |
download | FreeBSD-src-72676d41d5f13fdc02559548b56d80510ff5c46d.zip FreeBSD-src-72676d41d5f13fdc02559548b56d80510ff5c46d.tar.gz |
Add comments explaining why we do the somewhat odd irq mapping on PC98
machines with C-BUS cards.
Diffstat (limited to 'sys/pccard/pcic.c')
-rw-r--r-- | sys/pccard/pcic.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/pccard/pcic.c b/sys/pccard/pcic.c index 584167f..b230c8e 100644 --- a/sys/pccard/pcic.c +++ b/sys/pccard/pcic.c @@ -129,6 +129,13 @@ pcic_putw(struct pcic_slot *sp, int reg, unsigned short word) sp->putb(sp, reg + 1, (word >> 8) & 0xff); } +/* + * pc98 cbus cards introduce a slight wrinkle here. They route the irq7 pin + * from the pcic chip to INT 2 on the cbus. INT 2 is normally mapped to + * irq 6 on the pc98 architecture, so if we get a request for irq 6 + * lie to the hardware and say it is 7. All the other usual mappings for + * cbus INT into irq space are the same as the rest of the system. + */ static __inline int host_irq_to_pcic(int irq) { |