Commit Graph

148 Commits

Author SHA1 Message Date
christos 168cd830d2 __unused removal on arguments; approved by core. 2006-11-16 01:32:37 +00:00
christos 4d595fd7b1 - sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386
2006-10-12 01:30:41 +00:00
jmcneill f135e0d607 Add "name" parameter to powerhook_establish, to aid debugging. No objections
on tech-kern@
2006-09-24 03:53:07 +00:00
jmcneill e748bee1f6 PR# 15666: EDIMAX EP-4101 PCMCIA card support (patch included) 2006-09-23 15:39:51 +00:00
jmcneill ee203eb22f PR# 27840: patch for IO DATA PCET/TX-R PCMCIA Ethernet card support 2006-09-23 13:21:01 +00:00
christos ce149b700c fix initializers. 2006-08-30 16:55:06 +00:00
peter 09f0de7ce4 Add power hooks for "ne* at pcmcia?".
ok christos@
2006-07-11 22:48:37 +00:00
christos c40c4c462e PR/33133: Dave J. Barnes: Belkin F5D5020 Ethernet PCMCIA card not recognised 2006-03-23 02:14:42 +00:00
christos 95e1ffb156 merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
christos 097e6576ea - add const
- avoid variable shadow
- do proper UNCONST with XXXUNCONST
2005-05-30 04:28:49 +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
enami d10ffa8c6e Don't change the logic when simplifing code; a OR was changed to AND
and a test was removed but they shouldn't be changed.
2004-10-15 00:25:06 +00:00
christos 2634ff1b14 PR/27255: Nikos Ntarmos: PCMCIA NIC with blank CIS tuples crashes the kernel
Simplify the code for readability.
2004-10-14 00:17:12 +00:00
mycroft bc9922c5ca Now that we write the IOBASE in generic code, don't do it here. Instead,
implement the hackish/stupid test for the AX88190 by just checking whether
the IOBASE is available in the CCR.

This is unspeakably wrong, but it leaves the code doing ~the same thing it
did before.
2004-08-12 17:33:17 +00:00
mycroft dc63cc8d34 The AX88790 hack never made any sense. It's setting the PWRDWN bit in the CCR!
So, I'm removing it.
2004-08-12 17:13:54 +00:00
mycroft 8f96fc7c75 Always use PCMCIA_WIDTH_AUTO rather than PCMCIA_WIDTH_IO16. This spec is
pretty clear on how this works.
2004-08-11 04:25:28 +00:00
mycroft 0515828a46 Now that all the silly string printing is gone, move the location where we
print a newline so it doesn't have to be done in every driver.
2004-08-10 18:43:49 +00:00
mycroft d11fb31edb More careful about cleaning up pointers. 2004-08-10 16:04:16 +00:00
mycroft 70ca4b2fa7 Print diagnostics in only one place if intr_establish() or function_enable()
fails.

Also, be a little more careful about passing up error values, and consistently
clear our interrupt handler pointer.
2004-08-10 15:29:56 +00:00
mycroft d55195e28b Update to the new world order.
"While I'm here..."
All that grotesque code allegedly for the 88190 and 88790 is actually just
mapping the CCR and writing to it.  So, enable the device normally and use
pcmcia_ccr_{read,write}() rather than doing this crap ourselves.
2004-08-10 05:24:56 +00:00
mycroft 125ba6ee0c Adapt to the new world order. 2004-08-09 22:02:11 +00:00
mycroft c52e6e82ec Create two windows iff the config table asks for it. Try to make them
contiguous.  Map windows with mode AUTO since we have mixed size access.
2004-08-09 00:00:36 +00:00
mycroft ebed70c6e6 Remove the "offset" and "size" arguments to pcmcia_io_map(). In the singular
case (ne@pcmcia) where we were using these to create a subregion, it is better
handled by calling bus_space_subregion().

Now there is a 1:1 mapping between I/O spaces in the config table and windows
mapped in the function.  Rework the multifunction mapping code to take
advantage of this by using both I/O base addresses if necessary.
2004-08-08 23:17:12 +00:00
mycroft c4fbc53cad Clean up attach messages. 2004-08-07 05:27:39 +00:00
mycroft 5bce4931d3 A few things:
* The DEPCM-XX cards don't need to be recognized by OUI or string -- they
  work just fine with the IO-DATA PC-LAT/E attachment, and are probable OEM.
  So, remove the DEPCM case.
* PCMCIA_STR_* elimination.
* The Megahertz EM3336 is not always an X-Jack device, so take the "XJ" out
  of the product number.
2004-08-06 19:07:12 +00:00
mycroft 5bd875b764 A bit of cleanup:
* Change PCMCIA_CIS_* values that are empty to PCMCIA_CIS_INVALID.
* Use wildcard OUIs in a few more places.
* Steal a method for differentiating the AX88[17]90 from the Linux driver.
* Remove the ZoNet card entry; it's now a duplicate of the Compex entry.
2004-07-17 19:55:03 +00:00
enami e350475d03 This comment describes about the entry for FNW-3700T so please don't put
other entry between them.
2004-07-09 03:41:23 +00:00
enami 5c364151d2 Add BUFFALO LPC-CF-CLT Ethernet Adapter entry. 2004-07-09 03:36:01 +00:00
mycroft 74da882744 More cleanup:
* Print "devinfo" in a canonial place (like we do in the SCSI code).
* Use aprint_{error,normal}() during attach.
* More PCMCIA_STR_* removal.
2004-07-07 06:43:22 +00:00
mycroft 26b5e7e0b3 Add new devices. Use pcmcia_devinfo(). 2004-07-07 05:39:27 +00:00
mycroft 8d257deaad Add a couple more entries. 2004-07-07 04:19:45 +00:00
mycroft 309a698f3c This table is dumb.
1) Remove all the PCMCIA_STR_* values, and instead print the actual CIS
   info.  This is infinitely more helpful.
2) For some of the OEM cards, collapse multiple table entries into one
   entry that doesn't compare the OUI.
It's a start.
2004-07-07 04:01:30 +00:00
mycroft fda6e12798 Add another OUI for a Melco card.
XXX
The way this table is done is kind of dumb.  There's really every little point
in matching anything beyond vendor/product IDs in most cases, unless we
specifically need to do some hackery to find the MAC address.  In many cases 4
or 5 manufacturers well have the same vendor/product IDs, but different OUIs
and possibly different strings.  In these cases, we rarely need to look at the
OUI or the strings to DTRT.
2004-07-07 02:17:17 +00:00
mycroft dfcb3d19d0 Add an entry for the Netgear FA410TX -- though not quite the way it was
suggested in PR 20227.
2004-07-04 01:28:51 +00:00
itohy 73b59a9484 Add corega FEtherII PCC-TXD.
From website of Sano Yukihiko.
2004-06-19 04:20:48 +00:00
is c72c5843a8 My incarnation of the RPTI 400 card tells 0:0:0:0:0:0 when using the ASIC
to read the Ethernet address. However, as other OS's drivers suggest,
something which looks right is at offset 0x110.
2004-05-25 11:51:11 +00:00
itojun 0221ce62d1 make it compile (printf # of arg mismatch) 2004-04-25 19:38:27 +00:00
cube d902fa87b0 Add a third possible vendor code for the D-Link DFE670-TXD. While there,
make the `unmatched vendor code' error message slightly more verbose to
make things easier next time this kind of issue arises.

Reported and tested by Pierre-Philipp Braun.
2004-04-25 12:20:54 +00:00
cube cd4928d8c7 The D-Link DFE-670TXD can appear with two different vendor IDs for the MAC
address.  The two IDs belong to D-Link.  Therefore, add a duplicate entry
with a matching vendor ID.

Reported and tested by syn at sceen dot net.
2004-03-13 15:09:16 +00:00
wiz f5b32c1e69 RealTek -> Realtek. 2004-02-13 10:00:54 +00:00
uwe 3868e01b8d Recognize TAMARACK Ethernet Card.
From PR: 12273 and Mathias Menzel-Nielsen (matze matzsoft de).
2004-02-01 12:41:25 +00:00
hamajima 0086268dc3 support Corega Ether PCC-TL -- from Yasushi Oshima 2003-11-07 15:58:57 +00:00
mycroft af9bc6becf Eliminate bogus initializer. 2003-10-28 23:16:50 +00:00
christos 125ccd91b1 Fix uninitialized variable warnings 2003-10-25 18:29:12 +00:00
christos ddccf85c50 support for NE2000_TYPE_AX88790 from
Yong-Jhen Hong yongjhen at alqualonde dot org
2003-10-22 00:12:36 +00:00
ichiro 867de3d367 add support IO-DATA PCET/TX-R EthernetCard 2003-09-02 12:43:02 +00:00
martin cd55ccd237 Add support for socket communications 10/100 CF ethernet card.
From Scott Renfro in PR 22260.
2003-07-26 10:41:31 +00:00
christos 81e522b516 A cardflash NE2000 from Michael Francini francini at mindspring dot com. 2003-04-09 02:09:55 +00:00
kanaoka ebd3830c6f Add support for SMC 8041TX 10/100 Ether PC Card. 2003-01-16 15:21:20 +00:00