summaryrefslogtreecommitdiff
path: root/sys/dev/mca
AgeCommit message (Collapse)Author
2003-12-15Fixes from PR#23177. Various lint/logic fixes:jmc
Fix some non-initialized variables close the output files when done Redo the printing for RCS strings so they don't expand in the awk script too Do proper tests for variables existance before accessing Verified output from all scripts is identical to original versions
2003-11-10Spell address with two d's. Inspired by similar changes in OpenBSD,wiz
originating from Jonathon Gray and forwarded by jmc@openbsd.
2003-10-25break -> return in previous.mycroft
2003-10-25Fix uninitialized variable warningschristos
2003-08-07Move UCB-licensed code from 4-clause to 3-clause licence.agc
Patches provided by Joel Baker in PR 22364, verified by myself.
2003-07-14add missing __KERNEL_RCSID()lukem
2003-06-29Back out the lwp/ktrace changes. They contained a lot of colateral damage,fvdl
and need to be examined and discussed more.
2003-06-29regen: allocate identifier for BusTek BT-640A adapterjdolecek
2003-06-29allocate identifier for BusTek BT-640A adapterjdolecek
2003-06-28Pass lwp pointers throughtout the kernel, as required, so that the lwpid candarrenr
be inserted into ktrace records. The general change has been to replace "struct proc *" with "struct lwp *" in various function prototypes, pass the lwp through and use l_proc to get the process pointer when needed. Bump the kernel rev up to 1.6V
2003-05-10Change bounds_check_with_label() to take a pointer to the disk structure,thorpej
rather than the label itself. This paves the way for some future changes.
2003-05-02Change return type of readdisklabel() to const char *dsl
I hope I've found all the correct places!
2003-02-23Remove assigned-to but not used variable (including nice little switchsimonb
statement to set said variable).
2003-02-23Remove assigned-to but not used variable.simonb
2003-01-01Use aprint_normal() in cfprint routines.thorpej
2002-12-04regen - addition of 0x90EE, IBM SVGA Adapter/Ajdolecek
2002-12-04add 0x90EE - IBM SVGA Adapter/Ajdolecek
2002-11-30More cleanup of MI mb86960 driver:tsutsui
- Add support for byte system bus mode. Based on patch in kern/17193 by Christian Groessler, with some improvements by me. - Rename sc_flags in mb86960_softc to sc_stat, rename "type" to sc_flags to specify controller quirks and remove enum mb86960_type. - Pass controller type via new sc_flags in mb86960_softc rather than via an mb86960_attach() arg. - Handle unaligned mbufs properly in mb86960_write_mbufs(). (from ne2000.c) - Fix a signed/unsigned comparision warning. - Add definitions of status bits in the RX packed header. - Change types of some members in mb86960_softc.
2002-11-01implement separate read/write disk statistics:mrg
- disk_unbusy() gets a new parameter to tell the IO direction. - struct disk_sysctl gets 4 new members for read/write bytes/transfers. when processing hw.diskstats, add the read&write bytes/transfers for the old combined stats to attempt to keep backwards compatibility. unfortunately, due to multiple bugs, this will cause new kernels and old vmstat/iostat/systat programs to fail. however, the next time this is change it will not fail again. this is just the kernel portion.
2002-10-23merge kqueue branch into -currentjdolecek
kqueue provides a stateful and efficient event notification framework currently supported events include socket, file, directory, fifo, pipe, tty and device changes, and monitoring of processes and signals kqueue is supported by all writable filesystems in NetBSD tree (with exception of Coda) and all device drivers supporting poll(2) based on work done by Jonathan Lemon for FreeBSD initial NetBSD port done by Luke Mewburn and Jason Thorpe
2002-10-04- Merge dev/ic/ate_subr.c into dev/ic/mb86960.c since it only has EEPROMtsutsui
read function which can also be used for other MB86965 based boards. - Rewrite EEPROM read function as per 93C06 EEPROM datasheet. - Misc cleanup.
2002-10-02Add trailing ; to CFATTACH_DECL.thorpej
2002-09-30Use CFATTACH_DECL().thorpej
2002-09-28Move AT1700/RE2000 EEPROM definitions from isa/if_fereg.h to ic/ate_subr.h.tsutsui
XXX Maybe all stuff in ate_subr.* should be merged into ic/mb86960*.[ch].
2002-09-27Declare all cfattach structures const.thorpej
2002-09-27Introduce a new routine, config_match(), which invokes thethorpej
cfattach->ca_match function in behalf of the caller. Use it rather than invoking cfattach->ca_match directly.
2002-09-27Rather than referencing the cfdriver directly in the cfdata entries,thorpej
instead use a string naming the driver. The cfdriver is then looked up in a list which is built at run-time.
2002-09-06Merge the gehenna-devsw branch into the trunk.gehenna
This merge changes the device switch tables from static array to dynamically generated by config(8). - All device switches is defined as a constant structure in device drivers. - The new grammer ``device-major'' is introduced to ``files''. device-major <prefix> char <num> [block <num>] [<rules>] - All device major numbers must be listed up in port dependent majors.<arch> by using this grammer. - Added the new naming convention. The name of the device switch must be <prefix>_[bc]devsw for auto-generation of device switch tables. - The backward compatibility of loading block/character device switch by LKM framework is broken. This is necessary to convert from block/character device major to device name in runtime and vice versa. - The restriction to assign device major by LKM is completely removed. We don't need to reserve LKM entries for dynamic loading of device switch. - In compile time, device major numbers list is packed into the kernel and the LKM framework will refer it to assign device major number dynamically.
2002-07-21Rename bufq_init() to bufq_alloc().hannken
Add bufq_free() to remove a buffer queue. Avoid MALLOC while holding a spinlock. From Chuck Silvers.
2002-07-20Convert to new device buffer queue interface.hannken
2002-03-31edc_cmd_wait(): it is absolutely necessary to wait for the BSR_CMD_INPROGRESSjdolecek
flag to clear, even when the COMMAND COMPLETE interrupt already did happen, otherwise we get ATTENTION ERROR for next command if it happens soon enough; this fixes the reliability problems introduced by previous change some other cleanup & simlify of edc_cmd_wait()/edc_run_cmd(), the 'secs' is just a hint used in !poll case only add some comments move status_block[] back to edc_mca_softc, to save stack memory make #ifdef DEBUG #ifdef EDC_DEBUG and g/c some obsolete debug stuff make some EAGAINs EIOs edc_intr(): wakeup the waiter for any command, not just READ/WRITE DATA
2002-03-29no need to splbio() while manipulating sc_q - it's accessed fromjdolecek
process context only (edcworker())
2002-03-24aha at mca? confirmed working (test card provided by Jonathan Hankins)jdolecek
2002-03-24update comments + cosmetic change in aha_mca_probe()jdolecek
Driver is now confirmed working. Tested with AHA-1640 card provided to me by Jonathan Hankins.
2002-03-24drop the isadma attribute for aha, aha at mca? doesn't use thatjdolecek
2001-12-31Labels must be followed by statements.thorpej
2001-12-06it doesn't make sense to wait for resources during autoconfigurationjdolecek
2001-12-04clarify copyright - this is all freshly written, no older code usedjdolecek
2001-12-04Make this NCR 53C90 driver work, using the chip information fromjdolecek
Tymm Twillman's Linux mca_53c9x driver. Tested with external ZIP100 only.
2001-12-04Fix so these files build with options DEBUG enabled.sommerfeld
The change to edc_mca.c may not work as I don't have any mca hardware.
2001-12-02use the new MCABUS_DMA_16BIT flag to use 16bit DMA (not implicit anymore)jdolecek
2001-12-01regenerate (allocate identifier for NCR 53c90)jdolecek
2001-12-01allocate identifier for NCR 53C90jdolecek
2001-12-01Nonworking NCR 53c90 attachment. I don't get any interrupts fromjdolecek
the device yet, need to find real NCR53c90 docs to figure out what's wrong.
2001-11-28Match also product id 0x627c, it was omitted by mistake.jdolecek
Problem pointed out by Carl Drougge on tech-kern, thanks!
2001-11-28- convert usage of "defopt" to "defflag" where the relevant option doeslukem
not support a value (e.g., it's to be used as "options FOO" instead of "options FOO=xxx"). options that take a value were converted to defparam recently. - minor whitespace & formatting cleanups
2001-11-26Added macros for the bits in the SYSBUS byte, and macrosfredette
for the i82596 PORT access interface, from the documentation for that chip. These help clarify writes to the SYSBUS part of the SCP, and PORT usage by i82596-aware drivers.
2001-11-24The header part of driver overhault:jdolecek
* simplify and clean the attach code a lot, and support the 'drive' locator * pass proper dev_t to readdisklabel() - formerly, the passed value was completely broken (used incorrect major and wrong minor), but worked by accident * worker thread is now spawned per controller, rather than per-drive; i/o cannot be done concurrently by different drivers, only one i/o can be pending at any time * simplify the command queue code, just sleep appropriately when !poll case, g/c 'async' code formerly needed, move the bio code from ed_mca.c to edc_mca.c:edc_bio() * other misc cleanups
2001-11-24don't need opt_mcaverbose.h herejdolecek
print 'memory configured' instead of just 'configured' for memory expansion cards
2001-11-23MCA DMA hooked via bus_dma, so remove onejdolecek
add entry regarding AHA-1640 (the driver needs testing)