Commit Graph

227 Commits

Author SHA1 Message Date
augustss f82cb49523 Add FireWire OHCI controller on Cardbus. 2001-05-09 12:07:40 +00:00
augustss 7ac3b0b5a9 Ansify. 2001-05-09 12:07:01 +00:00
augustss c37a0f8fb8 Fix grammaer in error message. 2001-05-09 12:06:25 +00:00
jmc 5a6772df26 Cast base correctly for format string. 2001-04-30 02:46:20 +00:00
kanaoka 03941a12da - Fix typo in comment. 2001-04-26 08:23:22 +00:00
haya 94e69e110f Initialise all function's latency timer and cacheline size. 2001-04-25 09:29:36 +00:00
haya 3d8f9a4f4f Set function-in-use flag before calling power control function in
order to prevent turn on power twice.  This change does not prevent
power-off/power-on conflicts.
2001-04-25 09:20:32 +00:00
kanaoka c5a768d097 Add support for ADMtek AN985. 2001-04-13 00:18:11 +00:00
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
haya d610c23da4 Cosmetic changes. 2001-03-27 10:34:05 +00:00
christos 6e6957a277 regen 2001-03-14 01:41:29 +00:00
christos 47ae449748 PR/12405: Wolfgang Rupprecht: Add another abocom card (linksys pcm200) 2001-03-14 01:41:09 +00:00
thorpej c46615a68b Config glue for the CardBus front-end for the Advansys SCSI driver.
kern/12431, takashi.yamamoto@bigfoot.com.
2001-03-08 06:56:22 +00:00
thorpej 37208e0bb3 Add a CardBus front-end for the Advansys SCSI driver.
Provided by takashi.yamamoto@bigfoot.com, kern/12341.
2001-03-08 06:55:38 +00:00
thorpej 4fc2dd570b Regen; added Advansys Ultra SCSI. 2001-03-08 04:25:04 +00:00
thorpej daa88b6a11 Add Advansys Ultra SCSI. Modified from kern/12341, from
takashi.yamamoto@bigfoot.com.
2001-03-08 04:24:41 +00:00
lukem 3aeb5f2f29 whitespace police 2001-02-24 01:59:46 +00:00
nathanw eb65359d14 The card_attach_now flag hasn't been necessary or useful for some time.
Garbage collect the code and corresponding documentation.
2001-02-12 04:52:48 +00:00
haya 8c0513a51e Regen. 2001-02-07 10:23:47 +00:00
haya d3c14c8db8 Add code to insert struct definition in cardbusdevs_data.h to make
it correct C code.
2001-02-07 10:05:37 +00:00
haya fd3b3be1ed Add IO Data IDE Controller and Hitachi video capture cards. 2001-02-07 09:56:21 +00:00
haya 27081bf93e Cosmetic change: re-ordered by vendor id. 2001-02-07 09:49:12 +00:00
thorpej 9710d432c2 Power management support for the CardBus Etherlink XL cards.
From Masanori Kanaoka <kanaoka@ann.hi-ho.ne.jp>.
2001-01-30 19:27:39 +00:00
nathanw d460e9b43e Minor grammar/spelling fixes in comments. 2001-01-28 01:49:54 +00:00
thorpej d418f0d68c Add support for AN985-based CardBus network interfaces.
From Masanori Kanaoka <kanaoka@ann.hi-ho.ne.jp>.
2001-01-16 18:55:00 +00:00
thorpej 23ded7f4c2 Regen; ACCTON and AboCom AN985 Ethernet devices. 2001-01-16 18:43:19 +00:00
thorpej cb7242ca2f Add some ACCTON and AboCom AN985 Ethernet devices. 2001-01-16 18:42:56 +00:00
wiz 06ab77c680 typo fix in comment (stallen -> stolen) 2000-10-12 12:42:52 +00:00
wiz 8a9e5b82d3 typo in comment (consifuration -> configuration) 2000-10-12 12:42:03 +00:00
fvdl d9e2aff0df Add explicit config values for 8 bit and offset EEPROMS, since this
property is now shared with the PCI frontend.
2000-09-19 01:10:12 +00:00
haya 6502a2efd8 Clean-up: Remove unnecessary global reset (for debug) and change the
name of some variables for the consistency of naming rule.
2000-09-12 03:19:51 +00:00
haya 4171157155 Clean-up card-type depend code. 2000-09-05 09:01:17 +00:00
haya 25147761ff Add support 3C[CX]FE575CT. 2000-08-29 08:54:50 +00:00
haya 403941c60d Regen to correct wrong keyword. 2000-08-28 10:35:59 +00:00
haya 7591b1332b Correct wrong keyword. 2000-08-28 10:33:58 +00:00
haya 21ddff737c Regen. 2000-08-28 09:18:09 +00:00
haya 86063b7c73 Add 3Com 3C656 LAN + MODEM CardBus cards. 2000-08-28 08:59:49 +00:00
joda ce1bf05583 update description 2000-08-22 11:42:14 +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
soren 45bdc51fa2 Regen. 2000-06-13 15:37:29 +00:00
soren d862695c41 Make 3Com names a little more consistent. 2000-06-06 17:21:42 +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
tsutsui f2973e2fb8 - Change RL_* -> RTK_*
- Free bus_dma resources if attach fails
- Add detach and power management code

Patch from Masanori Kanaoka <kanaoka@ann.hi-ho.ne.jp> in kern/10156.
2000-05-19 13:42:29 +00:00
thorpej 1cff94b896 Add missing field in static initialization. 2000-05-19 04:03:33 +00:00
thorpej e5ae7c287a Symbol namespace cleanup: rl_ -> rtk_ 2000-05-15 01:55:12 +00:00
haya 014be1da8b Move if_rl_cardbus.c:1.8 to if_rtk_cardbus.c. 2000-05-10 00:24:14 +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
thorpej 79cbea8cc3 Don't use not-in-user-namespace variable names that newer versions of
GCC doesn't like very much.
2000-05-08 18:23:36 +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
tsutsui 9498452c05 - Move some initialization into MI rl_attach() from each bus attachment.
- Use proper CARDBUS_* macro in if_rl_cardbus.c
- Use product ID read from PCI configuration space rather than from EEPROM
  in if_rl_pci.c.

Patch sent from Masanori Kanaoka <kanaoka@ann.hi-ho.ne.jp> and
some cosmetic changes by me.
2000-05-01 15:08:50 +00:00
tsutsui 439b360ab9 Modify EEPROM read functions and handle also 9356 EEPROM.
Fixes kern/9861.
2000-04-30 12:00:40 +00:00
tsutsui 61e3f39169 Fix copyright notice as per request from the author. 2000-04-28 03:48:56 +00:00
augustss 30c20f930f Change my email address. 2000-04-27 15:26:44 +00:00
tsutsui b4f524c223 - Allocate mbuf dynamically on Tx and use bus_dmamap_load_mbuf(9).
- Call bus_dmamap_sync(9) as appropriate.
- Leave only register declarations in rtl81x9reg.h and
  split other stuff into rtl81x9var.h.

bus_dma(9) code mostly taken from thorpej's if_rtp.c.
2000-04-26 14:02:34 +00:00
augustss 74beeca710 Move the size of the mapped bus_space region into the bus independent softc. 2000-04-25 09:20:54 +00:00
tsutsui 6f9392b42a Merge changes of sys/pci/if_rl.c rev. 1.8->1.10. (from kern/9870)
Also remove unused pbase, vbase and PCI_CAP_PWRMGMT declarations.
2000-04-24 15:25:00 +00:00
haya 784977f319 Changes the name of RealTek driver. The new name is `rtk'. This used
to be called `rl' and it conflict with RL vax disks, canonical and
historical unix driver name.

This changes are minimal: it only changes the name of RealTek driver.
The filename of source code and a lot of the letter `rl' in source
files should be changed shortly.
2000-04-19 08:44:31 +00:00
haya edfd8044ec Maintenace: add definitions for command status register. 2000-04-19 01:19:04 +00:00
joda 7dbedb5a11 rewrite match function to use CIS information 2000-04-17 09:21:59 +00:00
joda 1f1d169e20 extract serial funce 2000-04-17 09:16:38 +00:00
joda 6e5b98b12c add serial funce entry 2000-04-17 09:15:58 +00:00
veego 8c1897c2fd Also add the Intel ID for the LAN+MODEM56 card to the csdevs list to get
it working.
2000-04-15 06:29:25 +00:00
joda e3f576a688 disable function after attach 2000-04-13 16:17:55 +00:00
joda 90bee16298 enable com at cardbus 2000-04-13 11:18:24 +00:00
joda 8fba568264 cardbus attachment for com devices (thanks to Chris Demetriou and
Darren Reed for constructive criticism and help with testing)
2000-04-13 11:17:53 +00:00
joda 3692f27c7d regen 2000-04-13 10:13:12 +00:00
joda 69241946d8 add entry for a Xircom modem (as reported by Darren Reed) 2000-04-13 10:12:46 +00:00
joda 81bac16312 add CARDBUS_SUBCLASS_COMMUNICATIONS_SERIAL 2000-04-13 10:11:15 +00:00
haya 21837796b8 Maintenace: add NetBSD tag and correct the name of the auther. 2000-04-11 06:57:59 +00:00
haya 1e921e0bd3 Regen. 2000-04-10 07:46:51 +00:00
haya e49807d100 Incorporate the changes of RL81x9 driver provided by M. Kanaoka
<kanaoka@ann.hi-ho.ne.jp>.  He separated the driver into IC specific
portion and bus attachment portion and added cardbus attachent.
2000-04-10 07:42:55 +00:00
thorpej 5ecdfa3fc0 Rearrange the 21142/21143 SROM/CIS handling code to give it a chance
of working, and last-ditch default to MII-over-SIO with no reset routine
if we don't find an ISV SROM or quirk.
2000-04-04 19:33:21 +00:00
thorpej 5a41b5bf56 - if_tlp_cardbus.c: Use the `pmreg' pointer passed by by
cardbus_get_capability() [mirror change already made to if_tlp_pci.c]
- if_tlp_cardbus.c: If we don't find an ISV SROM, try to grab the
  Ethernet address from the CIS.
- if_tlp_cardbus.c: set CardBus cards to store-and-forward mode from
  the get-go.
- Put the TxThresh tables in tulipvar.h, and use them in the CardBus
  and PCI front-ends to go to store-and-forward mode.
- Document the Xircom X3201-3 clone a little more.
2000-04-04 19:22:50 +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
thorpej ed332d840a In tlp_cardbus_detach(), only unmap the bus space if we were able to
map it in the first place.  Pointed out by enami@netbsd.org.
2000-03-22 01:35:14 +00:00
thorpej 8de21980d9 Fix logic bug in fxp_cardbus_match(). 2000-03-22 00:17:46 +00:00
thorpej 92c19e5ff7 Add suspend/resume hooks to ensure that the chip doesn't scramble memory
after an APM suspend and is unsnoozed after an APM resume.
2000-03-19 21:45:23 +00:00
enami 5336e37153 Make this file just compiles again.
XXX Don't expect to work yet.  It fails even to link depending on your
XXX kernel config file.
2000-03-16 03:06:51 +00:00
thorpej c38405d33d Add power management support to the `tlp' driver. The battery on my
laptop lasts a whole lot longer now.
2000-03-15 18:39:50 +00:00
fvdl 2da1f00fcd Update cardbus frontend for new ahc driver. 2000-03-15 02:03:51 +00:00
thorpej 297455cbe2 Pick I/O before Memory space. 2000-03-14 02:08:21 +00:00
soren 95054da1a1 Fix doubled 'the's in comments. 2000-03-13 23:52:25 +00:00
veego 347a1f736e Reverse the mapping of the control/status registers. Use I/O before MEM.
My card works now on a TI1220 chipset. Approved by Jason.
2000-03-12 17:05:23 +00:00
thorpej 7e044bd4e5 Move pretty much all of the PCI configuration goo into a separate
function.
2000-03-10 07:26:41 +00:00
thorpej 370bc1832b Normalize the copyright notice (TNF copyrights should *always* match
the appropriate template), and run through indent.
2000-03-10 07:11:47 +00:00
thorpej 0fef451485 Pull the code that take the Tulip out of powersave mode into a separate
function.
2000-03-10 06:55:09 +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
thorpej 8f8714687b Reenable the code that clears SLEEP and SNOOZE from the CFDA register. 2000-03-07 01:08:47 +00:00
mycroft 4887635a10 A few things:
* Take advantage of the tulip_read_srom() changes.
* Don't frob the so-called `CFDA' register.  We're really looking for the
  PMCSR, which is in a different location anyway.
* Don't panic if we detach an interface for which we never called tlp_attach().
2000-03-07 00:43:36 +00:00
mycroft 8b13d21260 Do a CARDBUS_BM_ENABLE to be sure. 2000-03-07 00:32:52 +00:00
mycroft de8398315a Fix an obvious bug that caused I/O space to never be freed.
Also, don't use rbus_space_free() directly.
2000-03-07 00:31:46 +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
thorpej 54e0e80815 Cosmetic change. 2000-03-01 20:50:56 +00:00
thorpej 08483fcddc When unmapping these on detach, pass the BAR to unmap (not the type of
the BAR!!)
2000-03-01 20:50:37 +00:00
soren d282f771e7 Remove redundant CIS definitions. 2000-02-18 18:55:31 +00:00