Commit Graph

314 Commits

Author SHA1 Message Date
enami 10f8fdf7dd Redo previous two commit a bit different way;
- Just read as much as we can.
- Handle some special tuples.
2004-10-14 03:24:00 +00:00
enami 327ace1ba7 Terminate the search loop when something is found rather than when
first iteration is done.
2004-10-10 22:26:34 +00:00
enami 9c893ee4c1 One more obvious test. 2004-10-10 22:10:06 +00:00
enami d7464d0873 Don't overrun when decoding tuples. 2004-10-10 22:00:36 +00:00
enami 6ad7a348b0 Cosmetic changes. 2004-10-10 21:58:46 +00:00
mycroft fe8d4c2759 Fix printf() warnings. 2004-10-09 07:09:40 +00:00
dyoung f5fc723f2b Add rtw(4). 2004-09-26 03:03:17 +00:00
dyoung 517a54fd17 Add Cardbus, PCI bus front-ends for RTL8180 802.11b MAC/baseband. 2004-09-26 02:33:36 +00:00
drochner 96b589fc18 a round of autoconf cleanup:
-convert submatch() style functions (passed to config_search() or
 config_found_sm()) to the locator passing variants
-pass interface attributes in some cases
-make submatch() functions look uniformly as far as possible
-avoid macros which just hide cfdata members, and reduce dependencies
 on "locators.h"
2004-09-13 12:55:47 +00:00
enami 051622a62d Print missing newline on attach. 2004-09-09 01:40:13 +00:00
drochner 46289e1fef Phase out the use of a string as first "attach args" member to control
which bustype should be attached with a specific call to config_found()
(from a "mainbus" or a bus bridge).
Do it for isa/eisa/mca and pci/agp for now. These buses all attach to
an mi interface attribute "isabus", "eisabus" etc., and the autoconf
framework now allows to specify an interface attribute on config_found()
and config_search(), which limits the search of matching config data
to these which attach to that specific attribute.
So we basically have to call config_found_ia(..., "foobus", ...) where
such a bus is attached.
As a consequence, where a "mainbus" or alike also attaches other
devices (eg CPUs) which do not attach to a specific attribute yet,
we need at least pass an attribute name (different from "foobus") so
that the foo bus is not found at these places. This made some minor
changes necessary which are not obviously related to the mentioned buses.
2004-08-30 15:05:15 +00:00
thorpej 96663f19df Use ANSI function decls, more static. 2004-08-26 18:38:19 +00:00
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