Commit Graph

30 Commits

Author SHA1 Message Date
lukem
2565646230 don't need <sys/types.h> when including <sys/param.h> 2001-11-15 09:47:59 +00:00
lukem
3f7d8d47b6 add RCSID 2001-11-13 08:01:09 +00:00
thorpej
1eb0dacf81 IRQUNK -> ISACF_IRQ_DEFAULT 2001-09-26 01:30:58 +00:00
mycroft
045091aa8f Add a big comment in the previous section of code... 2000-12-19 06:23:26 +00:00
mycroft
463d0e577e Back out previous change.
I removed this once before a long time ago, because it's wrong and breaks
PCMCIA on some machines.  It also doesn't fix the Multia problems.
2000-12-19 06:04:02 +00:00
thorpej
7cc029e16c Use IST_LEVEL as appropriate. Fixes PCMCIA interrupt problems
on the DEC Multia.  From Juergen Weiss <weiss@Uni-Mainz.DE>.
2000-12-18 21:17:44 +00:00
matt
632d2ad2ee Don't use __hpcmips__, but hpcmips 2000-12-09 20:35:31 +00:00
soren
c675def443 Update comment. 2000-07-12 23:14:09 +00:00
mrg
7e81221f5a remove include of <vm/vm.h>. <vm/vm.h> -> <uvm/uvm_extern.h> 2000-06-28 16:27:51 +00:00
jhawk
e02d0e3597 Back out rev 1.7 of i82365_isa.c; 0x300-0x3ff, or even 0x330-0x3ff
is not a reasonable place to allocate 12-bit pcmcia iospace.
It seems to cause conflicts on a large number of modern laptops,
necesitating hand-patching of the kernel (mostly due to
video devices in the upper range of that space).

This will presumably cause problems on the NEC Versa 6030X,
however that appears to be a vastly less common case than
the laptops that are inconvenienced by the current state.

12-bit iospace now uses 0x400-0xfff.
2000-05-09 17:59:39 +00:00
enami
d2b929f576 Fix naming think-o. 2000-02-28 05:30:19 +00:00
mycroft
9a06ea04a2 Fix the same race condition while initializing the socket. 2000-02-27 03:25:03 +00:00
mycroft
7794bfe183 Reorder the usage of intr_establish/intr_disestablish with respect to setting
the CSC_INTR register, to insure that the IRQ is not left floating and enabled
at any point.  Eliminates stray interrupts during the IRQ probe.
2000-02-27 03:08:00 +00:00
mycroft
a3ae8af043 Allow a flag to be set to force polling for socket events. 2000-02-27 00:14:27 +00:00
mycroft
78171a3a3e I told them not to use IST_LEVEL here. Now PCMCIA works on my AS200. *sigh* 2000-02-25 20:48:22 +00:00
thorpej
3f9cf7572c Don't use void * for chipset tags. Bad hacker, no biscuit. 2000-02-22 16:04:44 +00:00
mycroft
ac0db48a13 In light of the previous change, whack the clearing of CSC_INTR
again.
2000-02-08 17:53:48 +00:00
mycroft
eb071839ea The final read of the CSC register does not appear to be needed any
more.
2000-02-08 17:48:39 +00:00
chopps
d12c4012f1 deal with loops that we get stuck in due to unhandled interrupts. 2000-02-08 17:14:29 +00:00
mycroft
5abb516b1e Be more careful with the CSC_INTR register while probing.
Make some output more specific.
2000-02-08 16:59:52 +00:00
chopps
70e711cd60 only enable interrupts from the controller if the socket is enabled 2000-02-04 08:42:47 +00:00
chopps
9ff702157c doh, remove debugging leftover (forcing irq 15 to always be avail). 2000-02-04 05:30:55 +00:00
enami
0bff6e573a Cosmetic change; use IRQUNK instead of -1 always. 2000-02-03 23:03:11 +00:00
enami
586595e6d4 Make irq probing controled by patchable variable and disable on hpcmips
by default.  It doesn't work on hpcmips.
2000-02-02 14:44:09 +00:00
chopps
4483fc0f5f restore irq 10 to pcic_isa_intr_alloc_mask 2000-02-01 22:56:17 +00:00
chopps
d8e72e215d implement probing for available irqs on non-cirrus pcmcia controllers
including cardbus controllers running in pcic mode
2000-02-01 22:39:51 +00:00
haya
4eee111127 This is the first check-in of CardBus driver. CardBus driver contains
CardBus bus stub, YENTA PCI-CardBus bridge (cbb), 3Com 3C575TX driver
(ex) and Intel fxp driver.

TODO:
  o Conform to the KNF more strictly.
  o Be unified with pcmcia code as much as possible.
  o Add more drivers for CardBus card, such as APA-1480 or USB card.

The affected files are listed below.

	sys/arch/i386/conf/files.i386
	sys/arch/macppc/conf/files.macppc
	sys/conf/files
	sys/dev/ic/elinkxl.c
	sys/dev/ic/elinkxlvar.h
	sys/dev/ic/i82365.c
	sys/dev/ic/i82365var.h
	sys/dev/isa/i82365_isasubr.c
	sys/dev/pci/files.pci
	sys/dev/pcmcia/pcmcia.c
	sys/dev/pcmcia/pcmciachip.h

The added files are listed below.

	sys/arch/i386/conf/CARDBUS
	sys/arch/i386/include/rbus_machdep.h
	sys/arch/i386/i386/rbus_machdep.c
	sys/arch/macppc/include/rbus_machdep.h
	sys/arch/macppc/macppc/rbus_machdep.c
	sys/dev/cardbus/if_ex_cardbus.c
	sys/dev/cardbus/Makefile.cardbusdevs
	sys/dev/cardbus/cardbus.c
	sys/dev/cardbus/cardbus_map.c
	sys/dev/cardbus/cardbusdevs
	sys/dev/cardbus/cardbusdevs.h
	sys/dev/cardbus/cardbusdevs_data.h
	sys/dev/cardbus/cardbusvar.h
	sys/dev/cardbus/cardslot.c
	sys/dev/cardbus/cardslotvar.h
	sys/dev/cardbus/devlist2h.awk
	sys/dev/cardbus/files.cardbus
	sys/dev/cardbus/if_fxp_cardbus.c
	sys/dev/cardbus/pccardcis.h
	sys/dev/cardbus/rbus.c
	sys/dev/cardbus/rbus.h
	sys/dev/pci/pccbb.c
	sys/dev/pci/pccbbreg.h
	sys/dev/pci/pccbbvar.h
1999-10-15 06:07:17 +00:00
mycroft
28bc4dfeca Oops; PCIC_INTR_ENABLE does something *very* different. 1999-02-19 03:14:00 +00:00
mycroft
f2c4e7f8bd Use the correct interrupt sharing type, and set PCIC_INTR_ENABLE(!). 1999-02-18 23:41:40 +00:00
sommerfe
2b00a47b9e Add ISAPnP attachment for PCMCIA bus controller; reorganize ISA
attachment to let it share code with PnP attachment.
1998-06-07 18:28:31 +00:00