summaryrefslogtreecommitdiff
path: root/sys/dev
AgeCommit message (Collapse)Author
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
2007-04-30decrease the delay in the register wait loop again and add a debugReyk Floeter
message to print the number of loops.
2007-04-30move the firmware validation to a mountroot hook to allow loading ofReyk Floeter
an alternative firmware image from disk (not yet implemented). this also minimizes the additional delay to wait for the firmware to become ready because the firmware bootstrap is triggered in the attach function and the state is polled later in the mountroot hook.
2007-04-30';;' doesnt work on older gcc..Todd T. Fries
i.e. my sparc and vax and m68k couldn't build this problem found by me, fix by pedro ok marco@
2007-04-30Replace another expansion of DISKLABELDEV with the define itself.Kenneth R Westerback
2007-04-30fix dmesg; ok dlgTheo de Raadt
2007-04-29MCDUNIT/etc -> DISKUNIT/etc. No change to mcd.o.Kenneth R Westerback
2007-04-29missing arguments in a couple of printfs.David Gwynne
patch from Tim van der Molen
2007-04-29Replace expansions of DISKLABELDEV() with DISKLABELDEV(). Shorter, andKenneth R Westerback
more consistant. No change to code. ok miod@
2007-04-29Nadav Shemer of Tehuti Networks is magical.David Gwynne
not leaving the gap in the txt fifo when uploading the firmware was the cause of my fifo write bug in tht_start. because i was filling the whole fifo, i was writing the wptr back to its original position. because of this i dont think the firmware thought i had written anything. only the last short chunk would have been noticed, which strikes me as possibly confusing to the chip. this diff removes the delay at the top of tht_fifo_post. one less XXX :)
2007-04-29clocks and pll register bitsDavid Gwynne
2007-04-29we dont want to completely fill fifos, so leave a gap when we calculateDavid Gwynne
how much of the fifo we want to write firmware to. from Nadav Shemer at Tehuti Networks
2007-04-29when we post a fifo we're giving the dma mem back to the hardware, so weDavid Gwynne
need a presync, not a postsync. another good find by Nadav Shemer at Tehuti Networks
2007-04-29when completing a tx pkt, put it back on the tx free list, not the rx one.David Gwynne
found by Nadav Shemer at Tehuti Networks.
2007-04-29Match on ATI IXP/SB600 as well.Jonathan Gray
Seen in a dmesg from alemao <skanabiz@gmail.com> ok grange@
2007-04-29Match on VT8237A/VT8251/CX700 like the equivalent Linux driver does.Jonathan Gray
ok kettenis@
2007-04-28initialize and bootstrap the device and enable the firmwareReyk Floeter
verification check. the NIC's bootstrap process can take up to 10 seconds.
2007-04-28spacing (cleanup the code before i leave the room)Reyk Floeter
2007-04-28attach the available ports and print the lladdr (no operation yet).Reyk Floeter
2007-04-28validate the firmware version, this driver requires 3.4.xx (3.4.31).Reyk Floeter
this code is not enabled yet because i need to bootstrap the chipset first.
2007-04-28add different flags for debug messages to minimize the noise.Reyk Floeter
2007-04-28read more information from flash - get the user info field and copyReyk Floeter
one lladdr per port.
2007-04-28query the board information before mapping the interrupt and beforeReyk Floeter
printing the interrupt string.