summaryrefslogtreecommitdiff
path: root/sys/dev
AgeCommit message (Collapse)Author
2015-07-28Add callbacks for supported hypervisors in pvbus(4) to print moreReyk Floeter
information and for some generic CPUID/MSR-level initialization. This changes the attach/match path a bit. Hypervisor informatiom may include a version number, for example: pvbus0 at mainbus0: Hyper-V 6.3.9600 OK mlarkin@
2015-07-27zap trailing linefeeds from sr_error() and panic() callsAlexander Hall
ok jsing@
2015-07-26When attaching on an alpha system, get the current textmode resolution byMiod Vallat
querying the 6845 registers, and preserve it if it is larger than 80x25 yet plausible. This is necessary to properly operate on the Alphabook 1 where the vga display is running in a 100x37 textmode. Other platforms are not affected.
2015-07-26Make pcic_ident_ok() completely silent in case of failure.Miod Vallat
2015-07-24Switch back into counting bytes rather than blocks. We can't justAlexandre Ratchov
multiply the block count by the block size to get the bytes count because they won't wrap correctly.
2015-07-24if we free the mbuf in the rx path, clear the pointer to it so we dontDavid Gwynne
try and queue it for the stack and cause a use after free. found by maxime villard and brainy
2015-07-23Add the bhyve id to recognize if we're running under this hypervisor.Reyk Floeter
OK mlarkin@
2015-07-22Represent the current stream position in blocks rather than bytesAlexandre Ratchov
just because it's simpler this way. No behaviour change.
2015-07-21Switch pvbus(4) to fully dynamic autoconf - drivers don't have to beReyk Floeter
listed in pvbus.c anymore and are defined by the config only. OK mlarkin@ sf@
2015-07-21iRespect the access size when reading or writing to pci config space.Mark Kettenis
Fixes battery status passthrough in vmware and who knows what else. Tested by many. ok mlarkin@, deraadt@
2015-07-21Move vmt.c to sys/dev/pv/vmt.c. The history is lost but can be foundReyk Floeter
in the Attic of sys/dev/vmt.c. OK to do it deraadt@
2015-07-21Add pvbus(4), a pseudo-bus to attach non-PCI paravirtual devices and buses.Reyk Floeter
vmt(4) is moved from mainbus0 to pvbus0, more devices will follow. OK sf@ deraadt@
2015-07-21A few more daddr_t fixes. Rename 'phys_off' variables to 'offset'Kenneth R Westerback
since they are now relative to chunks. Use 'blkno' as normal variable name for daddr_t items rather than mix of 'blkno, blk, offset. Change field name ssd_data_offset to ssd_data_blkno since it is a block and not byte quantity. No intentional functional change.
2015-07-20fix spacingMike Larkin
2015-07-20Add a quirk for Cirrus Logic PD6729, for earlier silicon versions of thisMiod Vallat
chip would advertize themselves as multi-function devices, while they are not.
2015-07-20Try to assign a secondary bus number if the BIOS left the CardBus bridgeMark Kettenis
unconfigured. ok miod@, mlarkin@
2015-07-20Tweak previous; the Synaptics TrackPoint in my ThinkPad T500 works again.Kent R. Spillner
ok krw@
2015-07-19Make iwm(4) show command codes of unhandled firmware replies. Should makeStefan Sperling
debugging easier when it happens, as observed by matthieu@ (not reproducible on demand, unfortunately). ok mpi@
2015-07-19Remove unneeded #include <disklabel.h>.Kenneth R Westerback
ok jsing@
2015-07-19Stop passing daddr_t parameters for lengths. Use long since that's the typeKenneth R Westerback
of the destination fields. ok jsing@
2015-07-19Change some obviously incorrect usages of daddr_t (a DEV_BSIZEKenneth R Westerback
address) to 64 signed or unsigned ints. Add some paranoia checks during partition size calculations to account for the fact that partition sizes (DL_GETPSIZE()) are unsigned values. More daddr_t rectification to do. ok jsing@
2015-07-19Oops. Missed a file from offset commit.Kenneth R Westerback
2015-07-19Stop adding and subtracting data offset. Just keep to chunk relativeKenneth R Westerback
block offsets until actual i/o is constructed and needs the physical offset. Eliminate a number of <<DEV_BSIZE shifts as a bonus. No intentional functional change. Fixed and ok jsing@
2015-07-19Stop adding and subtracting data offset. Just keep to chunk relativeKenneth R Westerback
block offsets until actual i/o is constructed and needs the physical offset. Eliminate a number of <<DEV_BSIZE shifts as a bonus. No intentional functional change. Fixed and ok jsing@
2015-07-19Use DEV_BSIZE instead of 512 where appropriate. Use DL_SECTOBLK()Kenneth R Westerback
where appropriate. Noop for disks with 512-byte sectors. i.e. the only kind currently allowed in softraid volumes. But starts laying the groundwork to allow disks with other sector sizes. ok jsing@
2015-07-19Don't emit values for 'width' thatKenneth R Westerback
/usr/xenocara/driver/xf86-input-synaptics/src/wsconscomm.c doesn't understand. 'Fixes' synaptics trackpad in Dell L400 laptop so the cursor can be moved in X. Problem noted and experimental Dell L400 donated by Paolo Aglialoro. Thanks! ok miod@ mpi@ jcs@
2015-07-19use standardized register defintion in mii.h rather than specificYojiro Uo
driver definetion. ok deraadt@
2015-07-19regenYojiro Uo
2015-07-19add RTL8211Yojiro Uo
2015-07-19use standardized register definition in mii.h rather than eachYojiro Uo
specific driver definition. no logical change. ok deraadt@
2015-07-19revert privious commitYojiro Uo
2015-07-19simplify a triple-deep ternary operation.Brent Cook
ok beck@ krw@
2015-07-19according to MII specification, these seems to be bug.Yojiro Uo
ok deraadt@
2015-07-18fix typo.Yojiro Uo
2015-07-18add following registers from IEEE 802.3-2009 Clause 22.Yojiro Uo
- PSE control register (0x0b) - PSE status register (0x0c) - MMD access control register (0x0d) - MMD access address data register (0x0e) from netbsd ok deraadt@, miod@
2015-07-18virtio_pci: Do the ISR read without kernel lockStefan Fritsch
The ISR read is relatively expensive because it causes a vmexit. Grab the kernel lock only after it is done.
2015-07-18If _CST provides a C2 or C3 but lacks a C1 that we understand, provide aPhilip Guenther
fallback C1 state using 'halt' tested in snaps for a bit problem laptops noted by and oks okan@ and kettenis@
2015-07-18Shuffle include file ordering in preparation for future changes in vgavar.h,Miod Vallat
which will have it depend upon wsdisplayvar.h.
2015-07-18KNF fixesStefan Fritsch
No object file changes besides line numbers in KASSERTs
2015-07-17add missing braces to only call selrecord when intended toJonathan Gray
ok deraadt@ millert@
2015-07-17fix commentsMike Larkin
2015-07-17Nuke a bunch of leading and trailing whitespace so I don't go blindKenneth R Westerback
reading this code. No intentional functional change.
2015-07-17fix compilation with ACPI_DEBUGJoshua Stein
2015-07-17fix typo.Yojiro Uo
2015-07-16Introduce a Linux compatible wait_event API and use it in the inteldrm code.Mark Kettenis
ok jsg@, guenther@
2015-07-16Expand ancient NTOHL/NTOHS/HTONS/HTONL macros.Martin Pieuchot
ok guenther@, henning@
2015-07-16add USB3.0 related codeYojiro Uo
2015-07-16ignore 4 byte trailing padding of each recv packet, when copying to upperYojiro Uo
layer.
2015-07-16fix recv packet header definitonYojiro Uo
2015-07-15add some definitions from libdrm 2.4.62Jonathan Gray