summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2007-03-20zap unused variable.Thordur I. Bjornsson
ok pedro@
2007-03-20Cap the device size we present to 2TB, just in case someone attachesChristopher Pascoe
something really big. The SCSI layer isn't yet ready for it.
2007-03-20Move common completion handling into ata_exec itself. Removes a double freeChristopher Pascoe
in the inquiry error paths, as the HBA will have already completed the ata_xfer with an error. Reminder and ok dlg@
2007-03-20Add support for ATA PACKET commands. This should make ATAPI cdrom drives,Christopher Pascoe
etc, just work.
2007-03-20Read the whole SPROM content with a single routine to a own sprom struct.Marcus Glocker
For those people who have reported about broken MAC address at attach time, this should fix the problem.
2007-03-20Catch failed commands and copy the error taskfile back to the ata_cmd,Christopher Pascoe
so that atascsi can deal with it.
2007-03-20move ata command definitions from atascsi.c to atascsi.hDavid Gwynne
2007-03-20do not use out of scope variable in macros -- only use the macro arguments ↵Michael Shalayeff
passed; makes it less of nfs kind of code; henning@ ok
2007-03-20on com_console we need a little delay to let fifo flush itself before ↵Michael Shalayeff
resetting it and stuff to avoid garbled dmesg output; found on some arm
2007-03-20missing include and also use time_uptime as art suggested; compiles nowMichael Shalayeff
2007-03-20reorder slightly. ata bits before atascsiDavid Gwynne
2007-03-20Spring cleaning: some whitespace, clean up the failure path in the attachGordon Willem Klok
routine, and check the return of the mapiodev, and dbdma_create functions. Tested on Power Macintosh 9500MP and a 9600MP. "the diff looks fine to me." dlg@
2007-03-20Add timeout handling for ATA commands.Christopher Pascoe
2007-03-20nothing from wdc, wd, or any of the existing ata stuff pls. this gets ridDavid Gwynne
of the wdcreg.h include in atascsi. "feel free to remove" pascoe@
2007-03-20Spec says we can't write anything other than the global host control registerChristopher Pascoe
before we enable AHCI, so enable it before resetting saved capabilities.
2007-03-20Minor style fixup.Christopher Pascoe
2007-03-20Request "descriptor processed" interrupts only for PIO requests (inquiry,Christopher Pascoe
etc), and request that the D2H FIS at the completion of all (DMA) commands generate an interrupt. This makes each data transfer generate one interrupt instead of two and should guarantee that the interrupt that is generated actually arrives after the command has completed.
2007-03-20Calculate the residual and copy it back to the scsi_xfer, so that RW actuallyChristopher Pascoe
works. From dlg@
2007-03-20Add support for issuing sector read/write commands.Christopher Pascoe
2007-03-20Split PRDT unload out into its own function, for symmetry.Christopher Pascoe
2007-03-20Instead of having a copy of every register that we will issue in the ata_cmd,Christopher Pascoe
simply include a pointer to the command FIS that we will issue to the device. Include another space where we can copy back an error register set from a failed command. This means that we can now build and issue arbitrary commands from atascsi, and retrieve errors back.
2007-03-20Change API for struct ata_xfer allocation to move it into the device thatChristopher Pascoe
atascsi will be driving, and add it to the AHCI CCB. This effectively gives us all the resources we need for a transfer in one hit, meaning that we don't need to worry about whether we will have a pool shortage or not enough CCBs. The SCSI mid layer should take care to never exceed the number of CCBs we have available, based on our sc_link.openings.
2007-03-20Hook up sd ioctl.Marco Peereboom
2007-03-20Fake out target id for bioc_disk.Marco Peereboom
2007-03-20Use queue.h macros instead of home made for thingy.Marco Peereboom
From tbert <bret.lambert@gmail.com>
2007-03-19Use u_int32_t instead of u_long for IP addresses.Marco Pfatschbacher
OK claudio@
2007-03-19Only call bus_dmamap_unload() if we loaded a dmamap beforehand. Found outClaudio Jeker
the hard way on sparc64. Now acx(4) no longer panics but it does not yet work. OK mglocker@
2007-03-19the autoconf glue funcs (match/attach/etc) are only used inside softraid.c,David Gwynne
so prototype them there rather than in softraidvar.h. shuffle these funcs a little bit while here to make it look more like everything else. ok marco@
2007-03-19Remove force-PIO workaround for wd@pciide.Miod Vallat
2007-03-19bus_dmamap_sync fixes to cope with real life.Miod Vallat
2007-03-19Default to writeback cache.Miod Vallat
2007-03-19Also shift superblock fields in ffs_reload(), okay beck@ deraadt@Pedro Martelletto
2007-03-19Deactivate the pmap in cpu_exit. This way we can avoid quite a lot ofArtur Grabowski
tlb shootdowns in the reaper. mickey@ ok
2007-03-19Fix keyword expansion.Michael Knudsen
ok marco
2007-03-19attach softraid to the root of the device tree in a machine independantDavid Gwynne
way, rather than requiring some glue in each machines mainbus probe. it is still commented out. based on a discussion with miod@ ok marco@ deraadt@
2007-03-19Not only did I break RAMDISK, I also left a debugging printf.Artur Grabowski
2007-03-19Add FFS2 fields to the superblock, change file system tools to keepPedro Martelletto
accessing FFS1 fields, okay art@, quite some testing by ckuethe@, simon@ and thib@, thanks.
2007-03-19please always test RAMDISK kernelsTheo de Raadt
2007-03-19no longer create a pflog0 by default.Henning Brauer
we had to put this workaround in since /etc/rc used to use the exit code if "ifconfig pflog0" to decide wether we run on a kernel with pflog support. rc has been fixed to explicitely create pflog0 when pf and pflogd are enabled in November 2006, so now is the time to remove this compat hack. pplz who haven't updated rc since 2006/11/16 lose pflogd. ok ryan theo
2007-03-19Move i386 to timecounters. This is more or less the same code as amd64.Artur Grabowski
The "lapic" timer is ripped out since it wasn't actually a lapic timer, but a hacked up tsc timer with some synchronization for MP. There is no tsc timer right now since they are very unreliable on MP systems, systems with apm, and systems that change the cpu clock. Which basically means every modern machine out there. We're running with the i8259 timer now. deraadt@ ok
2007-03-19Change the way the nmea(4) line discipline takes the timestamp forMarc Balmer
the timedelta sensor when no PPS signal is available. Previously, the timestamp was taken at the leading '$' character of a GPRMC message, which was not always correct, as some GPS units send other messages first; we do not know when the GPRMC message is sent within a data block (we refer to a data block as the set of NMEA messages that are sent by a GPS unit in one go, usually once per second). nmea(4) now takes the timestamp at the first '$' character received after the start of a new seconds. Since GPS units transmit a data block every second, the first message can be found by measuring the gap between consecutive messages: after the longest gap, the first message of the next second follows. And it is at the leading '$' character of this message that we take the timestamp. $GPGGA,..... <- take timestamp here $GPGSA,..... $GPRMC,..... <- decode time here ... <- possibly more messages <- longer gap till start of next second $GPGGA,..... <- it starts all over, take next timestamp This code has been designed to work independent of the baudrate and the rate at which the GPS sends out it's data blocks (usually 1 Hz, but 5 Hz units are common as well): With this change, precision is greatly improved in the absence of a PPS signal and as a side effect, jitter is reduced. Note that while this is much better than before, there is still a slight offset to the real time, as calculating the fix in the GPS unit and transmitting the '$' character takes a short, but unpredictable amount of time. When tty timestamping is enabled, but there is no PPS signal available, the sensor status will be degraded to CRITICAL, which means "check your hardware". Thanks to Chris Kuethe for testing and feedback. ok ckuethe.
2007-03-19typo fixes; didickman@gmailTheo de Raadt
2007-03-19Add a new device that provides a framework for IO manipulation. A very basicMarco Peereboom
implementation of a RAID 1 is included in this but it does not deal with failures yet. Disabled in GENERIC. Suggestions from and ok beck@ miod@ krw@ dlg@ deraadt@
2007-03-19Fix some code relative to chips that don't currently work (BCM5722 &Kenneth R Westerback
BCM5756). They still don't work but when they do they won't use an inappropriate Jitter bug workaround. No effect on other chips. From Michael Chan of Broadcom, via Linux tg3 via Brad. ok reyk@
2007-03-18Add IP load balancing support for carp(4).Marco Pfatschbacher
This provides a similar functionality as ARP balancing, but also works for traffic that comes across routers. IPv6 is supported as well. The configuration scheme will change as soon we have sth better. Also add support for changing the MAC address on carp(4) interfaces. (code from mcbride) Tested by pyr@ and reyk@ OK mcbride@
2007-03-18put support for alphaservers 1200 and 4100 on ramdisk kernelsMartin Reindl
ok deraadt@
2007-03-18Define MMC_STOP_TRANSMISSION command (CMD12)Uwe Stuehler
2007-03-18typoTheo de Raadt
2007-03-18DHC automatically sends a CMD12 after multiple-block transfers, but otherUwe Stuehler
controllers don't. Put in a temporary hack for pxammc on Zaurus.
2007-03-18Enable pxammc and sdmmc in RAMDISK, too.Uwe Stuehler