summaryrefslogtreecommitdiff
path: root/sys/dev/ic
AgeCommit message (Collapse)Author
2004-01-10Rounding to the nearest multiple of 2 with roundup(constant, 2) isdyoung
easier to read than `constant + 1'.
2004-01-10In atw_rf3000_tune, enable I/O with the modem and RF front-enddyoung
"just in time" instead of at the top of the function.
2004-01-10Do not set IEEE80211_F_IBSSON in hostap mode. Treat hostap-modedyoung
when the link condition changes by returning. Note that hostap mode still does not work in atw, and ADMtek has told me that the hardware will not support it, but I remain hopeful.
2004-01-10Report received-early interrupt with a debug printf.dyoung
Print the Serial EEPROM and the MAC address it contains when atw_debug > 0, because atw_debug > 1 is a little too strict.
2004-01-10Misc. cosmetic changes.dyoung
Add a debug printf to the input path.
2004-01-10Use new docs provided by RFMD to give some meaning todyoung
previously-undocumented registers and magic numbers on the RF3000 baseband.
2004-01-10Get rid of empty #if 0/#endif stanza.dyoung
2004-01-07Add a comment about some code that should be cleaned up.thorpej
2004-01-06Fix bus error trap on X68030/25MHz on-board SPC, which may have some quirk.tsutsui
Problem reported by Yasushi Oshima.
2004-01-04Spell controller with two ls. Inspired by miod@openbsd.wiz
2004-01-03More structure member namespace cleanup: thread -> ch_threadthorpej
2004-01-03More wdc_channel structure member namespace cleanup:thorpej
- channel -> ch_channel - wdc -> ch_wdc
2004-01-03More comment/whitespace tidy-up.thorpej
2004-01-03Rename "struct channel_softc" to "struct wdc_channel".thorpej
2004-01-01Tidy this file up a little.thorpej
2004-01-01Prepend "wdc_" to wait_for_drq, wait_for_unbusy, and wait_for_ready.thorpej
2004-01-01Tidy up this file somewhat.thorpej
2004-01-01Rename:thorpej
- wdc_xfer to ata_xfer - channel_queue to ata_queue and move them to <dev/ata/atavar.h> so they can be used by non-wdc ATA controllers. Clean up the member names of these structures while at it.
2003-12-30Simplify setting up the channel queue a little.thorpej
2003-12-30Move the register definitions for ATA Task File registers to atareg.h;thorpej
they are also used by controllers that do not map the registers into the system address space, and are thus distinct from the "controller" registers.
2003-12-30Move the drive probing code out of atabusconfig() and into a newthorpej
wdc_drvprobe() function. wdc_drvprobe() is used if the controller does not specify a custom one prior to calling wdcattach(). The WDC_CAPABILITY_DRVPROBE bit is gone.
2003-12-30Use ANSI function decls.thorpej
2003-12-30Move most of the atabus layer into ata.c.thorpej
2003-12-28make the printf statements on chip_io_map complete lines.christos
2003-12-20add SMART Read Log constantlha
2003-12-18If we're running on a Connectix Virtual PC, we might get a packet longerthorpej
than a max size Ethernet frame without getting a frame-too-long error. VPC seems to be adding 4 zeros at the end of every frame. Detect this condition and simply truncate the packet to a max size Ethernet frame. I now have no problems with networking on NetBSD inside Virtual PC 6.
2003-12-16Synchronize with FreeBSD:dyoung
* add constants to enums * HAL update: stops panics, fixes ad hoc-mode beacons, some API changes * get and use mac/phy/rf front-end revision codes * add a custom ath(4) ic_node_getrssi callback which does RSSI averaging * do not immediately scan, but re-associate after missing beacons. * bug fix: don't if_init after detach. * HAL diagnostics ioctl, SIOCGATHDIAG * send DS parameters element in beacons * const-ify some pointers * consolidate rx-filter settings into ath_calcrxfilter * abstract FreeBSD `ticks', NetBSD `hardclock_ticks' with ATH_TICKS() * misc. other changes
2003-12-15Add a (*drv_probe)() optional callback into the driver to probe forthorpej
drives on a channel. Drivers should provide this if they have some sort of intelligent probing mechanism.
2003-12-14Rename __wdcprobe() to wdcprobe1().thorpej
2003-12-14PR 23428: support National Datacomm Corporation NCP130A2 board.dyoung
Thanks T. M. Pederson for sending the patches.
2003-12-14No need to include wdvar.h anymore.thorpej
2003-12-12Fix compilation for ports w/o __GENERIC_SOFT_INTERRUPTS_ALL_LEVELS.martin
2003-12-12In parallel to the interrupt handler pckbcintr provide two functionsmartin
pckbcintr_hard and pckbcintr_soft, which, together, do the same as pckbcintr. The first is called from the interrupt handler, the second from a softinterrupt at arbitrary protection level (lower or equal to IPL_TTY). They pass data via a small ringbuffer. The new functions are intended for platforms that, due to hardware/firmware restrictions are not able to make pckbcintr called at IPL_TTY, like Krups javastations. Using the monolithic pckbcintr on these plattforms leads to the input handlers for the slot data to be run at elevated priority, causing various race conditions.
2003-12-09Mirror change made in FreeBSD, rev 1.39 of aac.c. May address PR 23574.ad
bzero out the sync command buffer when sending commands. This was causing problems when enumerating multiple arrays.
2003-12-07Enable RSSI-based rate-adaptation for wi(4). This enables wi(4)-baseddyoung
APs to run at "full speed" where before they ran at just 1 or 2Mb/s. The AP will adapt the data rate for each client based on packet losses and the received signal strength. I have also enabled rate adaptation for STA mode and for IBSS mode, but the hardware gives us less control over the data rate in those modes.
2003-12-07In _STA mode, don't panic when a stray beacon-miss interrupt isdyoung
received. Instead, ignore it. It's normal for a stray to come during the transition to monitor mode.
2003-12-07Updates to 802.11 radiotap. The _DB_ flags were used everywhere todyoung
denote a signed dBm Rx power, so rename them to _DBM_ and change the signedness. Add new _DB_ flags for unsigned Rx power measured from an arbitrary reference. Try to synchronize net80211/ieee80211_radiotap.h with my tcpdump sources (which public tcpdump has not seen, yet) and with FreeBSD.
2003-12-07Make the MASK_TO_SHIFT expression less "tall." Hopefully helpsdyoung
work-around the gcc bug reported by Erik Osheim.
2003-12-07Cosmetic: add some whitespace for readability.dyoung
2003-12-06- disable ipv4 checksum offloading as it seems to have a problem.yamt
- add comments to describe it.
2003-12-05cac_cmd:pk
* don't let cac_ccb_alloc() sleep since it regularly runs in an interrupt context * return EAGAIN instead EBUSY (or -1), which is what the upper ld layer expects to get on transient resource shortages. * ignore error from cac_ccb_start(), since a `fifo full' condition is handled internally in the lower layer, i.e. the transaction started from ldstart() has been queued at the lower layer and must be taken off ld's disk queue.
2003-12-04netbsd.org -> NetBSD.orgkeihan
This was the last commit of this kind to src/sys, which is now totally "NetBSD.org clean". Thanks for the patiance, and sorry for all the commits.
2003-12-03Move WDC_NREG from wdcreg.h to wdcvar.h. First part of fix forbouyer
port-macppc/23604.
2003-11-29Include wdcreg.h for WDC_NREGS (used by wdcvar.h).bjh21
2003-11-29Patterned after the rest of the code, add one more check thathe
chp->wdc is non-null before de-referencing it.
2003-11-27There are some cards that map the ATA control and IDE DMA registersfvdl
in a different fashion. Individually, they have the same functionality, but their layout is different. An example of such a chipset is the Promise 203xx. To be able to deal with this, transform the cmd and dma bus_space handles into an array of handles, each seperately created with bus_space_subregion. The code generated by using the extra indirection shouldn't change much, since the extra indirection is negated by having the offset calculation already done in bus_space_subregion. E.g. bus_space_write_4(tag, handle, offset, value) becomes bus_space_write_4(tag, handles[offset], 0, value) Reviewed by Manuel Bouyer. Tested on wdc_isa, wdc_pcmcia, viaide, piixide (i386) and on cmdide (sparc64).
2003-11-25Some combination of controller/drive sends a continous stream ofbouyer
interrupt while SRST is asserted. Work around by blocking interrupts while SRST is asserted, and clearing any pending interrupt before unblocking. Fix kern/23529 from Michael Hertrick.
2003-11-24An ICH board needs reading AC97_REG_RESET before reading AC97_VENDOR_ID.kent
(why?) http://mail-index.netbsd.org/current-users/2003/11/22/0007.html
2003-11-24Handle BCD mode properly.tsutsui
2003-11-22AD1985 codec needs the same quirk as AD1980.kent
The patch was provided by Lars Heidieker.