Commit Graph

35 Commits

Author SHA1 Message Date
christos 95e1ffb156 merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
drochner 1af44f3c6e remove the useless (always 0) device number from cardbus driver state,
autoconf attach structures and configuration cycle functions
(just leave the kernel configuration attribute for now to avoid breaking
 config(1) files)
2005-09-09 14:50:58 +00:00
christos bca5926950 add a missing const 2005-05-30 04:36:16 +00:00
perry f31bd063e9 nuke trailing whitespace 2005-02-27 00:26:58 +00:00
perry 18db93c7f6 de-__P 2005-02-04 02:10:35 +00:00
chs 6b7d89dfc7 remove some defines that aren't used anywhere (and shouldn't exist anyway,
since they hard-code information that should come from locators.h).
2004-12-14 02:34:15 +00:00
drochner baf74cd9d0 it is sufficient to include "locators.h" in cardbus.c 2004-08-23 18:21:51 +00:00
drochner d9b1d2cfd2 kick out the error-prone handcrafted single-linked list of cardbus
functions; replace by a simple *array[8]
2004-08-23 17:52:45 +00:00
drochner f2e99ab844 support rescan / manual detach
This code needs cleanup, at least a reasonable linked list
implementation (fixed a bug in detach_card() in the process which
left a dangling pointer around).
Also removed a questionable and undocumented use of the parent's
device unit number as locator value.
(As with the pcmcia code: someone please review wrt powerup/down etc.)
2004-08-19 14:50:52 +00:00
christos de3fd5d864 Cleanup and remove suplicate copies of the incorrect power setup code.
Thanks to mycroft for suggesting this.
XXX: This is a copy of the pci code; another reason cardbus needs to die.
2004-05-08 23:40:01 +00:00
itojun 7f6ed16ef4 function prototype must not have variable name 2003-07-08 10:06:28 +00:00
augustss 58de8e2de6 Add ca_bus field. 2001-11-06 03:18:18 +00:00
wiz 4124ef0b6c Fix comment (device has a 'c'). 2001-07-19 16:12:21 +00:00
haya 1331bcc296 cardbusvar.h is divided into two files: cardbusvar.h and cardbusreg.h. 2001-06-01 10:30:37 +00:00
haya 4d3b32a658 Cosmetic change. 2001-05-31 08:33:40 +00:00
haya edfd8044ec Maintenace: add definitions for command status register. 2000-04-19 01:19:04 +00:00
joda 6e5b98b12c add serial funce entry 2000-04-17 09:15:58 +00:00
joda 81bac16312 add CARDBUS_SUBCLASS_COMMUNICATIONS_SERIAL 2000-04-13 10:11:15 +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 ded26ac3e4 Now cardbus_mapreg_unmap() has been implemented in
sys/dev/cardbus/cardbus_map.c.  The detech function in
sys/dev/cardbus/if_tlp_cardbus.c uses cardbus_mapreg_unmap().
2000-02-04 07:59:20 +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
augustss 6b1620b095 Remove extra #endif so we can compile again. 1999-12-17 14:06:43 +00:00
abs 43838a47fd Add back cut Cardbus_conf_write/cardbus_conf_write lines. 1999-12-16 21:04:10 +00:00
kleink 2fd74b0fb4 Normalize symbol names used for multiple inclusion protection. 1999-12-15 12:28:54 +00:00
thorpej 085bc011ab Add cardbus_get_capability(), cloned from pci_get_capability(). 1999-12-11 00:29:11 +00:00
joda 1b686307cb correct number of BAR:s in cardbus_cis_info 1999-11-08 20:21:24 +00:00
joda dbb2685da6 add some bare-bones CIS information to the attach_args struct 1999-11-08 19:59:08 +00:00
haya 88f1d44cc2 Change the interface of cardbus_function_enable() and
cardbus_function_disable().
1999-11-01 09:59:23 +00:00
joda 8ff7881953 add macro to get ROM image number, given a CIS pointer 1999-10-28 22:29:04 +00:00
joda 132b3f5e57 add Expasion ROM register (0x30);
fix typo in Cardbus_conf_write
1999-10-27 14:09:52 +00:00
haya 91b09f5b16 Change cardbus API. The first argument of cardbus_mapreg_map() is
changed to struct cardbus_softc * from cardbus_devfunc_t.  The old
function is renamed to Cardbus_mapreg_map().
1999-10-27 10:04:41 +00:00
augustss 1d19b4dd3d Add a number of CARDBUS_CLASS defines. Copied from PCI_CLASS. 1999-10-15 11:10:58 +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