summaryrefslogtreecommitdiff
path: root/sys/dev
AgeCommit message (Collapse)Author
2007-05-04move bcd tables to the only place that uses them (the unused mcd driver);Theo de Raadt
ok miod
2007-05-04call the right function to fill the rxf fifo after rxdDavid Gwynne
2007-05-04disable debugging outputDavid Gwynne
2007-05-04put more rx descriptors back on the chip straight after we've taken someDavid Gwynne
off.
2007-05-04wrap the wptr round when we hit the end of the fifo.David Gwynne
2007-05-04firmload for nx as wellJonathan Gray
2007-05-04bnx requires firmloadJonathan Gray
2007-05-04Initialize the sis_timeout early in attach instead of sis_init.Artur Grabowski
Sometimes we can can call timeout_del on it before we call sis_init. From mickey. art@ ok.
2007-05-04when it does not compile we KNOW it was not tested. come onTheo de Raadt
2007-05-04swap the port register table arrays to make it better readble and fix someReyk Floeter
register typos... on init, wait for the receive engine to be ready before setting up the descriptor rings.
2007-05-04do not call vic_init() on ENETRESET in the ioctl handler, useReyk Floeter
vic_iff() instead. vic_init() calls vic_init_data() which sets up the rings and allocates the dma maps. it could happen that vic_init() was called for multiple times without releasing them first by calling vic_uninit_data(). ouch! this may have caused some problems related to dmamap corruption but we'll do further investigation. ok dlg@
2007-05-03Add monitor mode. Add fast channel switching. Do some simplificationsMarcus Glocker
while there. Comments, tested, and OK claudio@
2007-05-03allocate DMA memory for the per-port Rx, Tx (command), and Status ringReyk Floeter
context.
2007-05-03a nxb NIC can have up to 4 nx ports and the latest firmware uses someReyk Floeter
port-specific registers, for the NIU (phy) and the CRB (~mac). fine. but i have to use an ugly mapping table for the port-specific crb registers because their offsets are not consistent and do not allow to use a subregion per port. ugh.
2007-05-03Enable fast channel switching in monitor mode, which makes apps likeMarcus Glocker
kismet happy. Previously system got very slow because at every channel switch an ENETRESET was issued. Reported and diff by Steffen Schuetz <st.sch@gmx.net>. Closes PR 5452. OK claudio@
2007-05-03Fix a typo that was preventing the full device name from being printed.Deanna Phillips
ok deraadt@
2007-05-03missed an struct lock to struct rwlock in the softc.David Gwynne
found by and ok claudio@
2007-05-03regenJonathan Gray
2007-05-03Philips/NXP ISP156x USB controllers as found in ONDA Communication H600.Jonathan Gray
2007-05-03The ring replenish threshold change needed to work around a hardwareTom Cosgrove
problem also appears to be required on the BCM5754/5787 in the Dell PowerEdge SC440 and OptiPlex GX745. dlg identified the problem and came up with the fix. Tested by dlg@, ckuethe@, reyk@; thanks. ok dlg@ beck@ reyk@
2007-05-03Support ONDA Communication H600.Jonathan Gray
Tested by Massimo Lusetti <massimo@cedoc.mo.it>
2007-05-03regenJonathan Gray
2007-05-03ONDA Communication H600Jonathan Gray
2007-05-03convert lockmgr style locks to rwlocks.David Gwynne
input from art@
2007-05-03convert lockmgr to rwlocksDavid Gwynne
2007-05-02carefully set the correct memory windows (crb/pci) and add a dummyReyk Floeter
read after changing the windows to make sure that the value has been set. also change the code to automatically set the correct window which is less error-prone than the manual approach. these changes finally fix the problems with reset and firmware loading. this commit also includes some unrelated changes like register updates, port-specific register mapping, rx/tx pause status etc.
2007-05-02- Add support for handling unsolicited events (based on NetBSD).Deanna Phillips
- The STAC9200 codec was mistakenly referred to as STAC9220. Change this to STAC9200 and add a link to the datasheet. - Add a new target, MI_TARGET_PINCTRL, to azalia_generic_mixer_set() that allows us to turn pins on and off. - Add an unsolicited event handler for STAC9200 that will toggle the headphone and speaker pins. This means the speaker will now mute and unmute based on headphone presence. - Spelling: PRESENSE -> PRESENCE Tested by ajacoutot@, tedu@ and krw@, ok krw@.
2007-05-02the 5754 and 5787 share the same ASIC ID, make the crazy strings list bothDavid Gwynne
so its obvious to people working on the code
2007-05-02do { } while (0) for the debug macrosDavid Gwynne
2007-05-02Make meta_read use the metadata memory that is provided in the discipline.Marco Peereboom
2007-05-02Add a function to free all discipline members and the discipline itself.Marco Peereboom
Move allocation of "in memory copy" of metadata into the new function.
2007-05-02Eliminate unused inline functions and replace ahc_lock() whichKenneth R Westerback
resolves to s = splbio() and ahc_unlock() which resolves to splx(s) with splbio/splx calls. ok marco@ dlg@
2007-05-02Another VIA VT8237A SATA.Jonathan Gray
Tested by Graeme Lee <graeme@omni.net.au>
2007-05-01Refactor metadata code; this is the first step to be able to bringupMarco Peereboom
devices at boot time. Reset the metadata versions to 1 until this solidifies we wont change these.
2007-05-01some fixesReyk Floeter
- fix the reset path and remove the '#if 0'. firmware loading makes me cry - update the SW (CRB) register offsets to match the upcoming 3.4.31 firmware - the link state and ifmedia should work now with a register and code fix - ...
2007-05-01export the temperature sensor found on the nx(4) NICs. it reports degCReyk Floeter
and the states UNSPEC, OK, WARN, and CRIT. the driver should use this later to shutdown the NIC if the state becomes CRITical. hw.sensors.nxb0.temp0=37.00 degC, OK
2007-05-01fix the nx CRBINIT (initial register values from flash) and disableReyk Floeter
the firmware load for now. the doc says something like 'just copy data from flash to the same address in memory' but it is not that easy because there are even more configurable windows for the pci memory space.
2007-05-01shuffle some code and add additional states in the reset path. use aReyk Floeter
scheduled timeout to check for the boot process to finish in the reset code instead of waiting for a loooong delay (still use the long delay in the initial boot on attach because i cannot defer the initialization there).
2007-05-01do not write every byte of the firmware to the same address, incrementReyk Floeter
the register offset as well...
2007-05-01Missing braces in vge_tick(). Fixes link state announcements.Can Erkin Acar
ok reyk@
2007-05-01regenJonathan Gray
2007-05-01VIA P4M890 ids from Graeme Lee <graeme@omni.net.au>Jonathan Gray
2007-05-01fix some register offsetsReyk Floeter
2007-05-01implement the soft reset of the hardware according to section 3.5.6 ofReyk Floeter
the doc).
2007-04-30better handling of the firmware state madnessReyk Floeter
2007-04-30fix shift by portReyk Floeter
2007-04-30run the nx_tick function every second to check the link state, even ifReyk Floeter
the interface is down.
2007-04-30read the per-port link stateReyk Floeter
2007-04-30initial code for firmware loading and initialization. it is used byReyk Floeter
the reset function and will be used later to load an alternative/updated firmware image and bootloader from disk if the images from the flash are not supported by the driver.
2007-04-30add missing newline in printfReyk Floeter