itohy
1d4f1abb08
Workbit NinjaSCSI-32 PCI/CardBus SCSI driver (njs)
2004-08-26 14:13:46 +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
b2f07722fc
make the "selective probing" work, and minor cleanup
...
(avoid using the macros which hide cfdata members, this doesn't help
for anything)
2004-08-23 16:41:48 +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
mycroft
beb23a14d8
3 things:
...
* cardbusdevs -> pcidevs
* Add a Microsoft product.
* Use tlp_cardbus_{disable,enable}() in the powerhook. This is an experiment
and may need more work.
2004-08-02 19:31:52 +00:00
mycroft
ec8913fec8
Minor name change to match other stuff in pcidevs.
2004-08-02 19:26:51 +00:00
mycroft
5c2c1be773
Remove.
2004-08-02 19:15:16 +00:00
mycroft
eed3298a3c
cardbusdevs -> pcidevs
2004-08-02 19:14:28 +00:00
mycroft
67f6588883
Adapt to pci_findvendor() change.
2004-08-02 18:44:56 +00:00
dyoung
571aedf36b
Print and store Cardbus/PCI revision number.
...
Begin conditioning device configuration on revision number. Four
revisions are known:
1.1/1.5 -> ADM8211A,
2.0 -> ADM8211B,
3.0 -> ADM8211C.
The B and C parts, which are not supported yet, have AP capability.
2004-07-23 07:07:55 +00:00
mycroft
430c7ae11c
Add 3C656 modem portion, per PR 23710.
2004-07-22 17:34:48 +00:00
mycroft
f842a0c250
Regen.
2004-07-22 17:32:15 +00:00
mycroft
879ffbb84b
Add 3c656 modem IDs.
2004-07-22 17:32:02 +00:00
mycroft
bb76bd932b
Add EX_CONF_INV_LED_POLARITY to a couple of the aforementioned entries. See
...
PR 23710.
2004-07-22 17:30:43 +00:00
mycroft
bb1bff398c
Add entries for the 3c656 line. Should fix PR 22880.
2004-07-22 16:57:24 +00:00
mycroft
9d70547685
If the CIS pointer in all-0s, don't try to read the CIS.
2004-07-22 16:18:32 +00:00
mycroft
ba82a9e710
Program BARs before enabling memory or I/O access.
2004-07-22 15:48:17 +00:00
dyoung
bcc2926388
Name some constants. Perhaps this deserves the cardbus_setpowerstate
...
treatment?
2004-06-06 04:10:49 +00:00
skd
a3407cf66b
fix typo in comment: resister -> register.
2004-05-16 21:32:31 +00:00
jonathan
cc817061aa
Remove now-unused 'int pmreg'.
2004-05-09 01:39:41 +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
6123043789
pass string length (= boundary info) to pci_devinfo so that we do not run over
...
the end of memory region
2004-04-23 21:13:05 +00:00
itojun
aca4c091d3
sprintf -> snprintf
2004-04-22 00:17:10 +00:00
kanaoka
bbfd611e6d
- Add (missed)"csc->cc_ih = NULL;" in com_cardbus_disable().
...
- Check "csc->cc_ih != NULL" before cardbus_intr_disestablish()
in com_cardbus_detach().
This fixed panic when the card removed.
The card is a "Xircom RealPort Cardbus Ethernet 10/100+Modem 56".
Reported & Tested by Peter Postma <peter.postma@chello.nl>
on current-users.
2004-03-11 16:34:54 +00:00
kanaoka
82aab73572
Add (missed)"csc->sc_ih = NULL;" in rtk_cardbus_disable().
...
This fixed panic when card removed
after "ifconfig rtk0 up; ifconfig rtk0 down".
2004-03-11 12:19:14 +00:00
dyoung
8ecfa06341
Move the RF Microdevices RF3000 & Silicon Laboratories SI4126/SI4136
...
register sets into their own header files for re-use by future
drivers.
2004-02-17 21:20:55 +00:00
wiz
f5b32c1e69
RealTek -> Realtek.
2004-02-13 10:00:54 +00:00
dyoung
5e9822c7e9
Get rid of __P.
2004-01-29 10:25:49 +00:00
dyoung
d957a27d98
The MII headers are not necessary, so don't include them.
2004-01-29 10:07:08 +00:00
jdolecek
f06a5b89bf
adapt to latest ahc(4) changes, so that this wouldn't panic kernel on boot
...
problem reported by Hilmar Both on current-users
2004-01-19 23:15:36 +00:00
jmc
43bf89bfc6
Fixes from PR#23177. Various lint/logic fixes:
...
Fix some non-initialized variables
close the output files when done
Redo the printing for RCS strings so they don't expand in the awk script too
Do proper tests for variables existance before accessing
Verified output from all scripts is identical to original versions
2003-12-15 07:32:20 +00:00
lukem
130aed8e40
fix uninitialised variable warning. XXX: not sure if this is correct
2003-11-24 06:11:56 +00:00
dyoung
23d8f48692
Add data-link type DLT_IEEE802_11_RADIO to wi and atw. DLT_IEEE802_11_RADIO
...
lets you monitor radio stats like received signal strength, which
diversity antenna was used, channel/frequency, modulation, and data
rate.
2003-11-16 09:02:42 +00:00
wiz
c0177219fe
Fix some typos. From Tom Cosgrove via jmc@openbsd.
2003-11-02 09:52:33 +00:00
fvdl
e645b8b032
Add definitions for 8139C+ and 8169 chips. Not used yet. From FreeBSD.
2003-10-25 23:48:45 +00:00
christos
8bfd5e3292
Fix uninitialized variable warnings
2003-10-25 18:34:14 +00:00
mycroft
4ed6e478a6
+ NetGear FA511
2003-10-24 17:04:16 +00:00
mycroft
f4bdf17ebc
Fix awk warnings.
2003-10-24 17:01:58 +00:00
ichiro
f4f7b1ae5c
add support ath on cardbus
...
- implement power management
2003-10-14 17:47:03 +00:00
ichiro
6fc4a5549a
regen
2003-10-14 17:44:09 +00:00
ichiro
5e3d3508b6
add ATHEROS AR5001 WirelessLAN 802.11a/b/g CardBus
2003-10-14 17:43:55 +00:00
dyoung
372fd2b92a
Adapt atw(4) to the new 802.11 layer.
...
Simplify atw_start, atw_newstate.
Synchronize access to atw_start by bracketing the call to
ieee80211_next_scan in atw_next_scan with splnet()/splx().
2003-10-13 08:22:19 +00:00
simonb
a4852d80fc
Remove an unreachable return statement (and fix a whitespace nit).
2003-09-13 12:17:12 +00:00
itojun
7f6ed16ef4
function prototype must not have variable name
2003-07-08 10:06:28 +00:00
dyoung
a036b1536b
Oops. Add the atw(4) sources, too.
2003-07-06 22:57:23 +00:00
dyoung
46a27517aa
Add driver atw for PCI/Mini-PCI/Cardbus 802.11b NICs based on the
...
ADMtek ADM8211. Read the man page for bugs and other outstanding
issues.
2003-07-06 22:56:07 +00:00
ichiro
5f17d961c0
regen.
2003-06-26 21:15:12 +00:00
ichiro
2bb26f9cd9
add products
...
Planex 10/100BaseTX FNW-3800-TX
kern/20175
Corega FEther II CB-TXD 10/100BaseTX
kern/21497
2003-06-26 21:14:44 +00:00
scw
f8a82ee618
Fix some DPRINTF statements to deal with bus_addr_t and bus_size_t types
...
defined in terms if 'int' instead of 'long'.
2003-05-17 08:23:14 +00:00
fvdl
9af6ac1fc3
Initialize name and dma tag.
2003-04-20 16:52:40 +00:00
fvdl
4d6d3fb37b
Call ahc_softc_init in attach function.
2003-04-20 15:48:25 +00:00
fvdl
79bdc751aa
Fix this to compile with the new driver. Needs testing.
2003-04-19 19:35:09 +00:00
nakayama
14a2f27862
Make it compile in big endian.
2003-03-22 11:32:38 +00:00
nakayama
64f7818314
PCI-CardBus bridge support for sparc64:
...
- use u_long for extent_alloc_subregion result instead of bus_addr_t.
(sizeof u_long != sizeof bus_addr_t on 32bit kernels of sparc64)
2003-03-22 06:18:22 +00:00
drochner
f4f1e00d62
make a kernel with the combination ohci@cardbus + ehci@pci link
2003-03-11 11:59:31 +00:00
ichiro
913634c3a8
add product IO-DATA CBET100-CL 10/100 Ethernet
...
(OEM AboCom FE2000VX )
2003-02-01 07:50:38 +00:00
ichiro
7f5a6ef120
regen
2003-02-01 07:50:06 +00:00
ichiro
c349475c5f
add product IO-DATA CBET100-CL 10/100 Ethernet
...
(OEM AboCom FE2000VX )
2003-02-01 07:49:33 +00:00
thorpej
72a7af27b0
Use aprint_normal() in cfprint routines.
2003-01-01 00:10:15 +00:00
tsutsui
b22b6283f3
Sync with if_rtk_pci.c:
...
- Fix typo in printf message.
- Don't use PCI_PRODUCT_DELTA_8139 (0x1360) for args of cardbus_conf_read()
and cardbus_conf_write(); use CARDBUS_INTERRUPT_REG (0x3c) instead.
2002-12-23 02:19:22 +00:00
ichiro
f11d642c88
make compile
2002-12-05 09:21:26 +00:00
thorpej
d32a923263
Avoid strict-alias warnings.
2002-11-25 02:31:14 +00:00
kanaoka
9e351ea764
Add support for "Planex FNW-3603 cardbus ethernet".
...
by kern/18961: From: prlw1@cam.ac.uk .
2002-11-11 14:21:18 +00:00
kanaoka
6a22a366a4
Regen:
...
Add support for "Planex FNW-3603 cardbus ethernet".
by kern/18961: From: prlw1@cam.ac.uk .
2002-11-11 14:20:01 +00:00
kanaoka
853a2913d9
Add support for "Planex FNW-3603 cardbus ethernet".
...
by kern/18961: From: prlw1@cam.ac.uk .
2002-11-11 14:15:48 +00:00
onoe
409174d6fa
Add support of AboCom FE2500MX 10/100 Ethernet (Lanneed LD-CBL/TX).
2002-11-11 12:51:38 +00:00
onoe
b9cfd2c966
Regen: Add AboCom FE2500MX 10/100 Ethernet (Lanneed LD-CBL/TX)
2002-11-11 12:51:07 +00:00
onoe
ec211ef168
Add AboCom FE2500MX 10/100 Ethernet (Lanneed LD-CBL/TX)
2002-11-11 12:50:33 +00:00
thorpej
c9b3657ce9
Add trailing ; to CFATTACH_DECL.
2002-10-02 16:33:28 +00:00
thorpej
bacf3a10fa
Use CFATTACH_DECL().
2002-09-30 20:43:55 +00:00
thorpej
f818766afe
Declare all cfattach structures const.
2002-09-27 20:31:45 +00:00
provos
0f09ed48a5
remove trailing \n in panic(). approved perry.
2002-09-27 15:35:29 +00:00
thorpej
6c88de3b53
Introduce a new routine, config_match(), which invokes the
...
cfattach->ca_match function in behalf of the caller. Use it
rather than invoking cfattach->ca_match directly.
2002-09-27 03:17:40 +00:00
thorpej
d1ad2ac4f2
Rather than referencing the cfdriver directly in the cfdata entries,
...
instead use a string naming the driver. The cfdriver is then looked
up in a list which is built at run-time.
2002-09-27 02:24:06 +00:00
lukem
cfb25c839c
make this compile again
2002-06-02 23:24:40 +00:00
wiz
36379d74b4
Typo fixes and grammar improvements in a comment.
2002-06-02 23:17:51 +00:00
lukem
06de426449
SIMPLEQ rototill:
...
- implement SIMPLEQ_REMOVE(head, elm, type, field). whilst it's O(n),
this mirrors the functionality of SLIST_REMOVE() (the other
singly-linked list type) and FreeBSD's STAILQ_REMOVE()
- remove the unnecessary elm arg from SIMPLEQ_REMOVE_HEAD().
this mirrors the functionality of SLIST_REMOVE_HEAD() (the other
singly-linked list type) and FreeBSD's STAILQ_REMOVE_HEAD()
- remove notes about SIMPLEQ not supporting arbitrary element removal
- use SIMPLEQ_FOREACH() instead of home-grown for loops
- use SIMPLEQ_EMPTY() appropriately
- use SIMPLEQ_*() instead of accessing sqh_first,sqh_last,sqe_next directly
- reorder manual page; be consistent about how the types are listed
- other minor cleanups
2002-06-01 23:50:52 +00:00
thorpej
204183c0fa
* Add "pcitag_t *pba_bridgetag" to pci_attach_args. This is set to
...
NULL for root PCI busses. For busses behind a bridge, it points to
a persistent copy of the bridge's pcitag_t. This can be very useful
for machine-dependent PCI bus enumeration code.
* Implement a machine-dependent pci_enumerate_bus() for sparc64 which
uses OFW device nodes to enumerate the bus. When a PCI bus that is
behind a bridge is attached, pci_attach_hook() allocates a new PCI
chipset tag for the new bus and sets it's "curnode" to the OFW node
of the bridge. This is used as a starting point when enumerating
that bus. Root busses get the OFW node of the host bridge (psycho).
* Garbage-collect "ofpci" and "ofppb" from the sparc64 port.
2002-05-16 01:01:28 +00:00
matt
fd0e30f1c5
Let's not free an uninitialized variable.
2002-04-22 19:29:55 +00:00
mycroft
ab262fe6f0
Snarf-and-barf the `quirk' code from if_tlp_pci.c, and use it to set the right
...
mediasw (MII-over-SIO) on the Level One FPC-0101TX 10/100 card.
XXX This should probably key off subsystem IDs, not OUIs...
2002-04-14 17:17:10 +00:00
christos
07fb02cbcb
Undo my previous change that worked around a problem attaching a 3c562d.
...
This is handled correctly now in the driver itself. From Hayakawa Koichi
<haya@netbsd.org>, thanks.
2002-03-10 22:27:04 +00:00
augustss
0786bd90ab
Add another tlp card (found by trial and error).
2002-02-17 21:21:58 +00:00
augustss
c8b7c9e3ba
Regen.
2002-02-17 21:21:15 +00:00
augustss
9c5176e112
Add a 10/100 Ethertnet card from Hawking.
2002-02-17 21:20:46 +00:00
ichiro
96f25772c6
OCHI -> OHCI
2002-01-26 16:34:27 +00:00
ichiro
f855f38bdd
add detach/activate routine
2002-01-16 02:11:20 +00:00
kanaoka
450887c407
Add support for "D-Link DFE-690TXD 10/100".
...
by kern/15100: From: John Nemeth <jnemeth@access.victoria.bc.ca>
2002-01-04 15:24:24 +00:00
kanaoka
8f88b8c44e
Regen.
2002-01-04 15:23:33 +00:00
kanaoka
4cdb84fe68
Add product "D-Link DFE-690TXD 10/100".
...
by kern/15100: From: John Nemeth <jnemeth@access.victoria.bc.ca>
2002-01-04 15:22:41 +00:00
ichiro
fc50aac093
implement fwohci detach routine.
2001-12-29 12:26:31 +00:00
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
ecb81c3f6d
- convert usage of "defopt" to "defflag" where the relevant option does
...
not support a value (e.g., it's to be used as "options FOO" instead of
"options FOO=xxx"). options that take a value were converted to
defparam recently.
- minor whitespace & formatting cleanups
2001-11-28 10:21:10 +00:00
enami
fe972558c0
Use __func__ instead of __FUNCTION__.
2001-11-23 10:20:47 +00:00
enami
eca8404326
Don't use __func__ as variable. It prevents compilation.
...
Use __FUNCTION__ instead.
2001-11-21 09:08:38 +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
augustss
3d3d59f852
Fill the companion controller array.
2001-11-10 17:07:21 +00:00
augustss
cd86b27aad
ehci can attach to cardbus too.
2001-11-06 03:18:53 +00:00
augustss
58de8e2de6
Add ca_bus field.
2001-11-06 03:18:18 +00:00
augustss
d8cebea1fc
Make some messages only appear with bootverbose.
...
Add bus number to attach args.
2001-11-06 03:11:10 +00:00
yamt
274a22b8c0
remove a debug printf committed mistakenly.
2001-09-29 02:16:21 +00:00
yamt
da8b08386f
- fix wrong ca_devsize.
...
- change #if 0 to meaningful name.
- enable memio.
2001-09-29 01:53:23 +00:00
yamt
4210698cd5
fix wrong ca_devsize.
2001-09-29 01:52:23 +00:00
wiz
9fa0b17629
Give initiali[sz]e all the "i"s it deserves.
2001-09-18 18:15:49 +00:00
wiz
1bc6d2cee9
Fix typo (`information' has an 'r').
2001-07-19 16:13:00 +00:00
wiz
4124ef0b6c
Fix comment (device has a 'c').
2001-07-19 16:12:21 +00:00
thorpej
de6142b85a
Slight tweak to previous; C requires a statement after a label.
2001-07-18 15:24:24 +00:00
onoe
2bc04d9140
revert 2 of 3 in previous commit.
...
empty default is needed to make gcc happy.
2001-07-18 10:39:28 +00:00
mrg
5a49b0db15
remove empty default: cases.
2001-07-17 13:55:51 +00:00
mrg
d23c8fc309
properly use ANSI string concatenation.
2001-07-17 13:55:12 +00:00
haya
bed2ac704f
Bug fix: call extent_subregion() with alignment = 1 instead of 0.
2001-07-10 10:33:55 +00:00
mcr
c34df0c33d
cardbus attachment for PCI-PCI bridges
2001-07-06 18:05:59 +00:00
mcr
90e0ca31dd
record handles for memory and io spaces
2001-07-06 18:05:25 +00:00
ichiro
f4e59879ce
support Raltek 8139-based Cardbus card
...
reported by Takayoshi Kochi(t-kouchi@mvf.biglobe.ne.jp )
kern/13252: RealTek 8139-based Cardbus support
2001-06-20 05:41:27 +00:00
ichiro
f03f25cb17
regen
2001-06-20 05:39:36 +00:00
ichiro
ba3eaf4273
add product RealTek 8139
...
by kern/13252: RealTek 8139-based Cardbus support
2001-06-20 05:39:17 +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
f591dd2f9d
Cosmetic change.
2001-05-30 09:21:47 +00:00
kanaoka
4d4231d0e9
Add support for "Corega FEther CB-TXD".
...
kern/12709: from Yamashiro Jun <j99060@ie.u-ryukyu.ac.jp>.
2001-05-15 04:26:23 +00:00
kanaoka
b003ab3d9c
Regen.
2001-05-15 04:25:12 +00:00
kanaoka
0f5babc5cb
Add product "Corega FEther CB-TXD". Modified from kern/12709.
...
from Yamashiro Jun <j99060@ie.u-ryukyu.ac.jp>.
2001-05-15 04:24:28 +00:00
augustss
59f85c4e3e
Ansify a function I forgot last time.
2001-05-09 19:33:07 +00:00
thorpej
6300e455b4
Make sure `bhlc' is initialzed before we consult it to determine
...
the number of functions on the card.
2001-05-09 18:16:39 +00:00
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
enami
01868857df
Add activate routine and check device active flag also in one second
...
tick handler.
2000-02-12 04:05:49 +00:00
joda
d40e2b51ee
add detach code
2000-02-09 22:15:57 +00:00
itohy
0a1d6b1357
Make it compile with options DEBUG.
...
Reported by Kawamoto Yosihisa (PR #9379 ).
2000-02-09 07:57:52 +00:00
augustss
494c9affea
Support detach.
2000-02-05 18:11:55 +00:00
augustss
e037c568cb
Update for cardbus unmap changes.
2000-02-04 13:48:23 +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
44a20a6c96
If we read a bad header signature, report what we read.
2000-02-03 06:47:31 +00:00
thorpej
001748dc57
First cut at detach support; doens't fully work yet.
2000-02-01 22:54:47 +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
thorpej
422cc09430
First attempt at a CardBus front-end for the `ahc' driver. This will
...
support the Adaptec ADP-1480 CardBus SCSI cards, which are a stright
AIC-7860 implementation.
2000-01-26 06:37:23 +00:00
drochner
1f723151f2
use BUS_SPACE_MAP_PREFETCHABLE instead BUS_SPACE_MAP_CACHEABLE where the
...
PCI BAR bit is referred to
2000-01-25 22:32:20 +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
0c93dded4a
Use config_pending. Addresses kern/9247.
2000-01-24 18:34:44 +00:00
joda
de798768b3
(cardbus_attach_card): zero out ca
2000-01-13 10:27:31 +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
014cd3fcc1
Take a stab at making this work on big-endian systems.
1999-12-12 17:46:36 +00:00
explorer
4313f463a0
add 3com 575CT, which Dell (at least) seems to be shipping
1999-12-11 22:22:34 +00:00
thorpej
d4bb1032cb
Handle the 21143 PMCSR, like we do in the PCI front-end.
1999-12-11 00:39:13 +00:00