Commit Graph

30 Commits

Author SHA1 Message Date
enami caf82786af - Unmap space used to read tuple.
- No need to zero clear temporary storage twice.
2001-03-28 01:55:55 +00:00
enami f5f3098c7c Cosmetic changes; mostly knf. 2001-03-28 01:53:14 +00:00
wiz 8a9e5b82d3 typo in comment (consifuration -> configuration) 2000-10-12 12:42:03 +00:00
cgd 1ce8331ad9 nuke some final __BROKEN_INDIRECT_CONFIG bits that weren't caught by
unifdef last time.  (bloody things just won't stay dead!)
2000-07-02 06:25:46 +00:00
cgd eee18e1f6c beat back the undead: __BROKEN_INDIRECT_CONFIG had risen, and was
terrorizing innocent hackers...
2000-06-16 23:41:33 +00:00
joda 1f1d169e20 extract serial funce 2000-04-17 09:16:38 +00:00
mycroft 8aeb8df354 Add a flag to tell whether a MAC address was actually found in the CIS.
XXX This whole piece of code should go away ASAP.  We should use a callback
as in the PCMCIA code.  In fact, we should use the PCMCIA code...
2000-04-02 19:11:37 +00:00
haya ddd36bd41a 1. Do not apply 5 V on a CardBus card.
2. Do not avoid ISA hole when a device requires more than
   256-byte io space.
3. Remove sending CardBus bridge's function number to
   cardbus stack.  This number is not needed for anyone.
2000-03-22 09:35:06 +00:00
haya 4398e0bd07 Fix CardBus device number. Though CardBus device number should be 0,
the value of bridge's function number was assigned to the device
number.
2000-03-07 09:36:52 +00:00
mycroft bcdcb370e5 Called the power function even for 5V cards. This at least gives the power
a chance to stabilize before we frob the card.
2000-03-07 00:30:57 +00:00
soren d282f771e7 Remove redundant CIS definitions. 2000-02-18 18:55:31 +00:00
haya 2e9b49c888 Force power off when a CardBus card is detached.
Use tsleep when kernel thread works.
2000-01-31 08:49:07 +00:00
haya 653eefc8f4 Add cardbus detach functionality. Add a function
cardbus_detach_card() in cardbus.c and enable detach code in cardslot.c
2000-01-26 09:04:59 +00:00
joda de798768b3 (cardbus_attach_card): zero out ca 2000-01-13 10:27:31 +00:00
thorpej 085bc011ab Add cardbus_get_capability(), cloned from pci_get_capability(). 1999-12-11 00:29:11 +00:00
joda b578473fae include dev/cardbus/cardbusdevs.h 1999-11-18 16:57:41 +00:00
joda 175087230a use CARDBUS_VENDOR_INVALID 1999-11-18 15:11:15 +00:00
haya 89d0a53e2c Fill 0 into CardBus base address registers before a card is
configured.
1999-11-15 06:01:11 +00:00
joda f9bf746086 (cardbus_attach_card): don't free cc 1999-11-12 18:18:38 +00:00
joda c7cca9cd39 make this compile with CARDBUS_DEBUG 1999-11-09 15:03:59 +00:00
joda fe2d79ec9a Let decode_tuples take function to call for each tuple, and use this
to get some vital information from the CIS (some network cards need
this to get the mac-address). This should be merged with the related
code for PCMCIA cards, but that requires more thought.
1999-11-08 20:19:10 +00:00
haya 88f1d44cc2 Change the interface of cardbus_function_enable() and
cardbus_function_disable().
1999-11-01 09:59:23 +00:00
joda ee08428d1c handle multi function cards 1999-10-29 12:02:13 +00:00
joda 54fed4c419 add support for reading memory mapped CIS via BAR or EXROM register 1999-10-29 11:30:27 +00:00
haya 47fc621312 Remove unnecessary check in cardbusmatch. 1999-10-29 07:29:08 +00:00
joda d9c500abb3 (cardbus_attach_card): don't mask everything *but* the latency timer 1999-10-27 14:01:04 +00:00
haya 7b66141eed Use opt_cardbus.h for cardbus.c and opt_cardslot.h for cardslot.c.
Remove unnecessary include from cardbus.c.
1999-10-27 09:29:18 +00:00
augustss c175d023d0 Comment out some debug settings.
Change attach printing so it looks more standard.
1999-10-15 10:59:56 +00:00
haya e56835ec5d add NetBSD ID tag 1999-10-15 06:41:27 +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