Commit Graph

12 Commits

Author SHA1 Message Date
christos d0b18148da make sure that we adjust the end of the subrange if we adjusted the beginning
of it, but the offset of the card. Fixes 'cannot map i/o space' on 3c562d
2001-12-24 09:37:53 +00:00
lukem 2565646230 don't need <sys/types.h> when including <sys/param.h> 2001-11-15 09:47:59 +00:00
lukem f61cbe7489 add RCSID 2001-11-13 12:51:12 +00:00
haya bed2ac704f Bug fix: call extent_subregion() with alignment = 1 instead of 0. 2001-07-10 10:33:55 +00:00
haya f89b0f51ae Call extent_alloc_subregion() with EX_MALLOCOK in
rbus.c::rbus_space_alloc_subregion().
2000-05-30 09:18:06 +00:00
haya de5dacd81d KNFfied those files. 2000-05-26 06:32:56 +00:00
augustss 1a1595070f Fix the most glaring bug in the old rbus code. This way your machine won't
panic with a 3c562, but it won't work either.
2000-05-08 19:27:00 +00:00
augustss 5da7a65ca6 Back out my rbus change since it seems to break things. 2000-05-08 19:25:46 +00:00
augustss 20edddd023 KNF the code and fix three bugs:
* If a non-zero addr was given to rbus_space_alloc_subregion() it would
   claim to have allocated region when in fact it just failed.
 * If a non-zero addr was given to rbus_space_alloc_subregion() allocation
   often (always?) failed when it shouldn't.
 * One part of rbus_space_alloc_subregion() used an alignment that always
   made the kernel panic.
I'm not sure if my change is correct, because I don't know what this code
is supposed to do.  But now I can use a 3c562 card.
2000-05-08 14:00:05 +00:00
soren 6f961bbe31 It's okay for a memory region to be larger than it's alignment. 1999-11-06 06:20:53 +00:00
haya e5cc414836 add NetBSD ID tag. 1999-10-15 06:42:21 +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