summaryrefslogtreecommitdiff
path: root/sys/dev/ic
AgeCommit message (Collapse)Author
2010-03-19Replace some magic numbers with macro. Tested on SMC_TT on atari.tsutsui
2010-03-19Misc KNF.tsutsui
2010-03-19No need to override mem_ring value in ne2000_ipkdb_attach()tsutsui
since a wrong calculation in dp8390_ipkdb_attach() was fixed.
2010-03-19Don't pick up the network-interface, ethernet, and 802.11-relateddyoung
definitions by chance (or by the bus-specific front-end #including them!). #include them here, instead.
2010-03-19Don't pick up the <sys/sysctl.h> definitions by chance,dyoung
but #include here.
2010-03-15Make this compile on sparc64:dyoung
1 s/next_tick/next_tint/ because next_tick shadows a global on sparc64. 2 Fix the bus-barrier helper routines, which had the tag & handle swapped (!!). Move the helpers from rtwreg.h to rtwvar.h, and change RTW_BARRIER() into an inline subroutine called rtw_barrier().
2010-03-14Use device_suspensor_t instead of struct device_suspensor.dyoung
2010-03-14Remove setting of edata->monitor since that member no longer exists.pgoyette
2010-03-13- make local functions statictsutsui
- const'ify
2010-03-13u_int8_t -> uint8_ttsutsui
2010-03-13Misc KNF.tsutsui
2010-03-12ata(4) expects IDENTIFY data to be in host endianess.jakllsch
Logic borrowed from siisata(4) (which I've confirmed works on sparc64). Should fix PR kern/39659.
2010-03-11various aprint_* fixes.mrg
2010-03-10ahcisata_core.c 1.23 cause long drive probe (31s, reported bybouyer
Roy Marples), or other devices misbehavior probably due to interrupts issues (reported by Jukka Ruohonen). Back it out and do the following changes: - clear port interrupt register before ahci_channel_start() which enables interrupts - wait 500ms after sata_reset_interface() before touching SERROR register. This is what seems to fix the issue I'm seeming on ESB2 controller. - The 31s delay didn't cause the probe to fail because of a mismatch in loop index comparison; use a #define for delay after reset instead of numeric values, to avoid this kind of bugs in the future.
2010-03-03Put several fixes to ne(4) driver for better 8 bit mode support,tsutsui
especially on RTL8019AS which is also used for non-ISA local bus of embedded controllers and some m68k machines like atari and x68k. * move RTL8019 probe and attach code from each bus attachment to MI ne2000_detect() and ne2000_attach() * change a method for backend and attachment to specify 8 bit mode to use a new sc->sc_quirk member, instead of sc->sc_dmawidth * handle more NE2000 8 bit mode specific settings, including bus_space(9) access width and available size of buffer memory * add a function to detect NE2000 8 bit mode (disabled by default, but enalbed by options NE2000_DETECT_8BIT to avoid possible regression on various ISA clones) * fix ipkdb attachment accordingly (untested) Tested on two NE2000 ISA variants (RTL8019AS and another clone named UL0001) in both 8 bit and 16 bit mode on i386. "Looks good" from nonaka@. See my post on tech-kern for details: http://mail-index.NetBSD.org/tech-kern/2010/02/26/msg007423.html
2010-02-28Update pcf8584 driver from OpenBSDmartin
2010-02-27KNF, misc cosmetics.tsutsui
2010-02-27Always call device dependent functions via pointers rather thantsutsui
using conditionals to switch inline functions for modern processors.
2010-02-27Also fix a wrong mem_ring calculation in dp8390_ipkdb_attach().tsutsui
2010-02-25Make fxp at cardbus detach during shutdown.dyoung
Stop calling (*cardbus_ctrl) to enable bus mastering, I/O and memory spaces on the CardBus bridge. cbb(4) always enables that stuff, anyway. In the process, avoid remembering what BAR we mapped by writing CARDBUS_{IO,MEM}_ENABLE to sc_cben or sc_cbenable, and record the BAR in use sc_bar, instead. Replace more CARDBUS_ constants with PCI_ constants. Compile-tested, only.
2010-02-25retire our private definitions for the scan1/3/5/7/9 DEC graphicsdrochner
symbols, use the unicode definitions instead (which apparently didn't exist when I wrote that)
2010-02-24A pointer typedef entails trading too much flexibility to declare constdyoung
and non-const types, and the kernel uses both const and non-const PMF qualifiers and device suspensors, so change the pmf_qual_t and device_suspensor_t typedefs from "pointers to const" to non-pointer, non-const types.
2010-02-24map some more punctuation to more or less good replacements in the IBMdrochner
character set
2010-02-24Use roundup2() in <sys/param.h> rather than a conditional.tsutsui
2010-02-24Now dp8390_config() calculates mem_ring correctly sotsutsui
no longer need to override it in ne2000_attach().
2010-02-24Fix a wrong calculation bug around RX ring buffer memory addresstsutsui
slipped in about sixteen years ago. Fortunately, it had been working for ages because some devices used address zero and other devices ignored wrong higher bits. Tested on we(4) (SMC Elite Ultra) and ne(4) (NE2000 compatible named UL0001) on ISA. Note FreeBSD also uses the same correct value in their ed(4) driver.
2010-02-23Move ahci_channel_start() after BSY has cleared (what seems to matterbouyer
here is not touching SError while BSY is asserted). Fix random behavior (serial console corruption/misfunction, misbehavior of USB controllers, crasy interrupts crashing the Xen hypervisor, ...) of Intel ESB2 controller with some brand of hitachi drives.
2010-02-13Explicitly mark voltage readings as valid in Winbond voltage refresh functions.jakllsch
This fixes forever-N/A VCore and -12V readings on my W83627THF chips. .
2010-02-12Make ESIOP_DEBUG compile (on some platforms? depends on bus definitions...)dholland
From Chris Ross in PR 42792.
2010-02-10add some more mappings from punctuation and accented characters todrochner
more or less adequate replacements in the builtin IBM character set
2010-02-09Kill extra semi-column.njoly
2010-02-09Correct setting of bits in the "generic thermistor" mode. Cut&pastepgoyette
error pointed out by njoly@
2010-02-09Add newer cars supports. Tested on MegaRAID SAS 9260-8i.msaitoh
- Add MFI gen2 support from OpenBSD. - Add entry for MegaRAID SAS 9260-8i
2010-02-08 Fix a bug that the system which has no logical volume panics in shutdownmsaitoh
hook. Without any logical volume, sysmon_envsys_register() fails. On such case, sc->sc_sme must be NULL for the detach. Reviewed by dyoung and bouyer.
2010-02-08After reviewing the datasheets, most of the supported Winbond chips canpgoyette
handles the new flags for selecting sensor type. Update code and man page accordingly.
2010-02-08Add temp-sensor type selection (via autoconfig flags). Currently onlypgoyette
enabled for W83627HF but easily extended to others if appropriate. Fixes PR kern-42758
2010-01-31Add the missing newline to a verbose autoconf message.dyoung
2010-01-30Sprinkle __KERNEL_RCSID() into siisata(4).jakllsch
Slightly adjust some comment styling.
2010-01-19Redefine bpf linkage through an always present op vector, i.e.pooka
#if NBPFILTER is no longer required in the client. This change doesn't yet add support for loading bpf as a module, since drivers can register before bpf is attached. However, callers of bpf can now be modularized. Dynamically loadable bpf could probably be done fairly easily with coordination from the stub driver and the real driver by registering attachments in the stub before the real driver is loaded and doing a handoff. ... and I'm not going to ponder the depths of unload here. Tested with i386/MONOLITHIC, modified MONOLITHIC without bpf and rump.
2010-01-19bio(4) is MP-safe but mfi(4) is not. So get the kernel_lock atbouyer
mfi_ioctl() entry and release it on exit.
2010-01-18Nuke "ummmm" quality macro. It's outside __NetBSD__, so notpooka
functional change, but some C parsers that don't know which cpp macros are defined fall and hurt themselves quite badly with it.
2010-01-17Forward declare struct bpf_if and use that as the type for bpf_ifpooka
instead of "void *". Buys us oo times the type-safety for 0 times the price. (no functional change)
2010-01-15Amazingly, we've been freeing a handle and then using that which it referredmjacob
to for years. Bad.
2010-01-14set a delta value on the master channel and move it to the outputs class somacallan
volume control via PMF works
2010-01-11Mask out (disable) gem interrupts on detach.jdc
2010-01-11Keep track of what appear to be live Fibre Channel disks and store up themjacob
Port WWNs for them as well as attaching them as a "port-wwn" property to the device node in question. This allows MD code to find the boot device on some platforms. This is less clean than it should be. A better solution would be to make some changes to the scsi infrastructure so that periphs can query and use and store their own "native" transport addresses. However, that's a much more invasive change and it is not clear how many ports or devices really want or need that information (yet).
2010-01-10Add a missing closing parenthesis in a few places. From Henning Petersensnj
in PR kern/42527.
2010-01-09To print bus_addr_t value, cast it to u_long rather than size_t.tsutsui
2010-01-08Expand PMF_FN_* macros.dyoung
2010-01-05Remove extra semicolons.mbalmer