summaryrefslogtreecommitdiffstats
path: root/sys/dev/i2c/spdmem.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Split existing spdmem@i2c code into bus-agnostic spd record decoding code,miod2010-03-221-840/+0
| | | | | and an i2c attachment. No functional change; ok jsg@ deraadt@
* Don't try to check for ECC with fbdimm as the offset exceedsjsg2009-09-131-4/+1
| | | | | | the number of bytes currently read into the sm_data array. Problem found by recent version of gcc.
* Seems I confused Mb and MB and was in too much of a rush when Ijsg2009-05-231-5/+18
| | | | | | | | added the DDR3 bits. Take into account more of the spd data and compute DDR3 module size in a way similiar to NetBSD so it comes out correctly. Tested by Olivier Cherrier and Christian Stuermer.
* Untested FB-DIMM decoding adapted from changes made to NetBSDjsg2009-02-221-1/+72
| | | | | by Paul Goyette. ok deraadt@
* Indicate if a thermal sensor is present on ddr3 modules.jsg2009-02-191-1/+6
|
* Move most of spdmem match logic into the driver and add crc16/ddr3jsg2009-02-191-8/+194
| | | | | | | | | support based on changes in NetBSD by Paul Goyette with goop like bitfields/single decode function mess removed and things like module type/simpler capacity calculations added. Tested by a bunch of people in particular krw who tested a few revs of the ddr3 bits.
* remove more logically irrelevant DDR code from the SDR function; ok jsgcnst2008-11-241-30/+18
|
* remove some dead code and fix a comment; llvm/clang; ok jsgcnst2008-11-101-16/+4
|
* Print a specific message for non i2c attachments like macppcjsg2008-05-211-1/+5
| | | | | memc, in the situation where Apple cheaps out by having no SPD on integrated RAM.
* when iic_exec fails, return 0xff for the read value; ok jsgderaadt2008-04-211-2/+2
|
* make it more apparent that when we are dealing with 16 bit registersderaadt2008-04-171-3/+3
| | | | | (not a series of 8 bit registers), the bytes come off the wire in big-endian order
* Display module size for direct rambus rimms, not yet tested.jsg2007-11-261-5/+27
|
* Add basic rambus decode method, showing the module type.jsg2007-11-261-5/+31
|
* Kill spdmem_hexdump() before anyone starts using it.miod2007-11-251-22/+1
|
* Create memory specific decode routines to make code cleaner,jsg2007-10-201-167/+248
| | | | | | suggested by deraadt. This file has mostly been rewritten even before it was initially comitted so add my copyright to it as well.
* re-introduce the "p_clk rounding" for DDR -- they need itderaadt2007-10-201-4/+7
| | | | ok jsg
* Print the type of DIMM (SO-DIMM/Mini-DIMM/Micro-DIMM) forjsg2007-10-201-1/+20
| | | | | non regular DDR2, there does not seem to be any equivalent information in the SDR/DDR layouts.
* Deal with all possible 16 array offsets for tenths of a nanosecond array,jsg2007-10-201-4/+2
| | | | | and tweak p_clk rounding to return correct values. From giovanni <qgiovanni@gmail.com>
* Correct tenths of a nanosecond cycle encodings for DDR2,jsg2007-10-181-3/+7
| | | | | | this makes the PC2-xxxx values show properly in all cases. From giovanni <qgiovanni@gmail.com> tested/ok cnst@ ok deraadt@
* decl variables earlier; pointed out by fgschderaadt2007-10-171-5/+9
|
* some local variables can shadow to decrease kernel stack use, wheederaadt2007-10-171-10/+8
|
* Fix printing of DIMM size for DDR2.kettenis2007-10-161-15/+16
| | | | | input from canacar@, jsg@, deraadt@ ok deraadt@
* No need to match on "at34c02" anymore.kettenis2007-10-151-3/+2
| | | | ok deraadt@
* correctly print PC and PC2- prefixes; ok jsgderaadt2007-10-141-3/+3
|
* really correct : printing; ok deraadt@cnst2007-10-131-4/+4
|
* hypenate memory type for readability.jsg2007-10-111-2/+2
|
* correct : printing; ok jsgderaadt2007-10-101-3/+5
|
* Print registered/CAS latency information for SDRAM.jsg2007-10-081-4/+20
|
* To identity PC133 we need to check cycle time as modulesjsg2007-10-081-4/+7
| | | | often identify as PC100.
* Correct frequency for SDRAM.jsg2007-10-081-8/+33
|
* Don't skip EEPROMs in ofw i2c scan,jsg2007-10-081-2/+3
| | | | | | match on sparc64 SPD name in spdmem. Tested on a V120. ok deraadt@
* Indicate if the module is registered, DDR/DDR2 only at the moment.jsg2007-10-081-1/+13
| | | | Tested by ian@ wilfried@ and deraadt@
* Print CAS latency for DDR/DDR2.jsg2007-10-071-17/+35
| | | | Shuffle strings around to look pretty as suggested by deraadt.
* Port of Nicolas Joly, Paul Goyette & Tobias Nygren'sjsg2007-10-071-0/+377
spdmem(4) driver for Serial Presence Detect memory information.