summaryrefslogtreecommitdiff
path: root/sys/dev
AgeCommit message (Collapse)Author
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.
2007-04-28add code to access the flash memory in the ROMUSB register area andReyk Floeter
read the board information data from the flash on startup. this is required to determine the board type, version, etc. etc.
2007-04-28CCDLABELDEV/ect and RAIDLABELDEV/etc join other no-op defines in theKenneth R Westerback
trashbin of history, replaced by DISKLABELDEV/etc. No change to .o files except for __line__. ok jsg@
2007-04-28Fix comments above DISKMINOR uses. DISKMINOR provides minor not majorKenneth R Westerback
number (wd.c), and the uses are to find the minimum minor to be detached.
2007-04-28missing splbio/splx pair (which splasserted me per-device probe) inTheo de Raadt
polling mode code; ok dlg marco krw
2007-04-28remove abstraction around splbio/splx; they just confuse things; ok dlg ↵Theo de Raadt
marco krw
2007-04-27Even floppies should use DISKLABELDEV() on the dev_t parameter toKenneth R Westerback
readdisklabel/writedisklabel. ok deraadt@ weingart@ conceptual ok drahn@
2007-04-27Correct typo in comment, no code changesChad Loder
2007-04-27update a comment to reflect the truth - the documentation that isReyk Floeter
available online is incomplete or even outdated and this driver is only partially based on it. other information is obtained from the netxen reference driver.