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
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
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
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
thorpej
297455cbe2
Pick I/O before Memory space.
2000-03-14 02:08:21 +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
0fef451485
Pull the code that take the Tulip out of powersave mode into a separate
...
function.
2000-03-10 06:55:09 +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
thorpej
54e0e80815
Cosmetic change.
2000-03-01 20:50:56 +00:00
augustss
1facb42e6e
Make the driver work even if DIAGNOSTIC is not set.
2000-02-04 13:43:56 +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
thorpej
001748dc57
First cut at detach support; doens't fully work yet.
2000-02-01 22:54:47 +00:00
thorpej
701cc4b663
Add support for the Xircom X3201-3 in 21143 emulation mode. This chip
...
appears on some Xircom and Intel RealPort(tm) cards.
From Rafal Boni, with some slight modifications from me.
2000-01-25 21:50:30 +00:00
thorpej
6aca67041c
Add a chip type for the Xircom X3201-3, and centralize the declaration
...
of the chip names array.
2000-01-25 19:29:17 +00:00
mycroft
e33c595472
Do a CARDBUS_BM_ENABLE just to be sure.
2000-01-25 15:29:43 +00:00
thorpej
be3c43687c
Make sure the latency timer is set to a reasonable value.
...
From Masanori Kanaoka <kanaoka@ann.hi-ho.ne.jp>.
2000-01-25 03:44:27 +00:00
thorpej
d4bb1032cb
Handle the 21143 PMCSR, like we do in the PCI front-end.
1999-12-11 00:39:13 +00:00
thorpej
caae0e1aa1
- Don't try to run the chip in big-endian mode. Not all chips support
...
this consistently, and it doesn't always work even when the chip
supports it.
- Make sure things DMA'd to the chip that the chip interprets are in
little-endian mode.
1999-12-11 00:32:59 +00:00
thorpej
546480874c
After reading the 21143 manual again, make sure SNOOZE is cleared in
...
the CFDA register, too.
1999-12-07 07:36:19 +00:00
thorpej
6e36651a27
Add the 21143 PMCSR offset, from Masanori Kanaoka.
1999-12-07 07:33:25 +00:00
thorpej
3d60aecdd7
Make sure to bring the chip out of sleep mode. From Masanori Kanaoka.
1999-12-07 07:11:49 +00:00
thorpej
0c3eefb6a5
Add a basic CardBus front-end for the `tlp' driver. Still more work to do.
1999-11-19 18:23:35 +00:00