summaryrefslogtreecommitdiff
path: root/sys/dev/ic
AgeCommit message (Collapse)Author
2020-04-20Add athn(4) definitions for the block-ack/block-ack-request control register.Stefan Sperling
Not used yet but may become useful later.
2020-04-19Add bcmmbox, a driver for the VideoCore messagebox interface on BCM283X.tobhe
Original work by Neil Ashford and dlg@ Feedback from jsg@ ok kettenis@, dlg@
2020-04-15wdsc(4), ncr53c9x: timestamp LUNs with time_uptime(9), not time_second(9)cheloha
Use a monotonic clock for timestamping LUNs to avoid problems when the UTC clock jumps. ok krw@
2020-04-14Add bse(4), a driver for the Broadcom GENET v5 network interface found onMark Kettenis
the Raspberry Pi4. ok patrick@
2020-04-06wi(4): tsleep(9) -> tsleep_nsec(9); ok stsp@cheloha
2020-03-21Simplify some goto'ing that jumps a single line orKenneth R Westerback
does nothing at all. The first one spotted as CID 1452976. Reads good to millert@ ok mpi@
2020-03-16Actually attach panel (if we have one).Mark Kettenis
ok patrick@
2020-03-16Replace video "framework" with a more generic port/endpoint "framework".Mark Kettenis
This also adds panel support to rkanxdp(4). Code to hook up simplepanel(4) is still missing and will come later. ok patrick@
2020-03-15sparc64 issue being identified and removed, reapply r1.73:Kenneth R Westerback
"Bump nvme(4) max physio() i/o size to 128K"
2020-03-15Revert nvme back to last working commit for sparc64.kmos
The coverity-related diff breaks sparc64's ability to read the disk. ok deraadt
2020-03-14ahci_get_pmp_ccb() returns a non-NULL pointer, fails aKenneth R Westerback
KASSERT(), or has already blown up by dereferencing the pointer. Two of the four invocations of ahci_get_pmp_ccb() check for NULL. Save a couple of bytes by not bothering. Add comments to the invocations to docuement the assumption.
2020-03-14Trailing whitespace, long lines, incorrect function names inKenneth R Westerback
printf()'s.
2020-03-13Recognize BCM43341 as a BCM43340 variant.Patrick Wildt
From Rob Schmersel
2020-03-13Bump nvme(4) max physio() i/o size to 128K.Kenneth R Westerback
2020-03-10Variables 'nowait' amd 'flags' should have died in 2008 with r1.36'sKenneth R Westerback
removal of internal queuing of scsi_xfer's. Put them out of their misery. Nuke an obsolete comment in passing. CID 1453357.
2020-03-10Coverity points out (12 + MAXMPS) can never be less thanKenneth R Westerback
12. PAGE_SHIFT is 12 (a.k.a. PAGE_SIZE == 4096) or more on OpenBSD architectures. So remove some dead code by unconditionally setting sc_mps (memory page size) to 1 << PAGE_SHIFT. CID 1491655. No functional change.
2020-03-10Ooops. Need both files.Kenneth R Westerback
sgl (scatter gather list) and prpl (physical region page list) are two different things in the NVMe world. Only the latter is currently implemented in nvme(4) so rename sc_max_sgl to sc_max_prpl to reflect this. No functional change.
2020-03-10sgl (scatter gather list) and prpl (physical region page list) are twoKenneth R Westerback
different things in the NVMe world. Only the latter is currently implemented in nvme(4) so rename sc_max_sgl to sc_max_prpl to reflect this. No functional change.
2020-03-09Update the console device always when attaching the real deviceYASUOKA Masahiko
driver. The information by the driver is supposed more reliable than the information which was set up earlier. ok patrick
2020-03-06Process the NVRAM in bwfm(4) itself. So far we have relied on somePatrick Wildt
external tool to pre-process the NVRAM, even though it's simple to do ourselves. This allows easier firmware distribution. ok kurt@
2020-03-04fix typo in previouscheloha
2020-03-04Restrict modes to those with an actually supported pixel clock.Mark Kettenis
ok patrick@
2020-03-02Shuffle logic a bit to make sizes/limits more obvious.Kenneth R Westerback
No functional change.
2020-03-02Add rkdwhdmi(4), a driver for the HDMI transmitter found on the RockchipMark Kettenis
RK3399 SoC. ok patrick@
2020-03-01Use ffs() on sc_mps, removing need for sc_mps_bits. Replace ffs(64)-1Kenneth R Westerback
and ffs(16)-1 with the constant results (i.e. 6 and 4). Add comments to clarify use of these constants. Net result, one less invocation of ffs(), softc smaller by one u_int, and less potential confusion over 'mps'. No functional change.
2020-02-28nvme_enable() doesn't need parameters for both sc and sc->sc_mps_bits.Kenneth R Westerback
Nuke the latter and use the former to get the same value.
2020-02-27Trailing whitespace.Kenneth R Westerback
2020-02-25Make bwfm(4) call if_input() only once per interrupt.Patrick Wildt
This reduces drops caused by the ifq pressure drop mechanism and hence increases throughput. ok tobhe@
2020-02-25pcic(4): i82365.c: tsleep(9) -> tsleep_nsec(9)cheloha
Yet another straightforward ticks-to-milliseconds conversion. I am honestly unsure what particular driver this file belongs to. It seems to be related to pcic(4) and/or pcmcia(4) so I've marked this diff with pcic(4) in the summary line. No complaints on tech@ after six weeks.
2020-02-21Add anxdp(4), a driver for the Analogix Display Port controller,Patrick Wildt
which amongst other things sets up the link and allows reading the display's modelines over I2C. Taken from NetBSD and adjusted to our layers. ok kettenis@
2020-02-20dwiic(4): tsleep(9) -> tsleep_nsec(9); ok claudio@cheloha
2020-02-20pgt(4): tsleep(9) -> tsleep_nsec(9); ok claudio@cheloha
2020-02-19Similar to other wireless drivers use bpf_mtap_hdr() to prepend theClaudio Jeker
radiotap header instead of using a fack mbuf in the stack. OK stsp@
2020-02-18Trailing whitespace.Kenneth R Westerback
2020-02-18Trailing whitespace is icky. Some KNF whitespace tweaksKenneth R Westerback
tossed it too.
2020-02-18Let aac(4) compile again by #include'ing selinfo.h.Kenneth R Westerback
2020-02-18Cleanup <sys/kthread.h> and <sys/proc.h> includes.Martin Pieuchot
Do not include <sys/kthread.h> where it is not needed and stop including <sys/proc.h> in it. ok visa@, anton@
2020-02-18rtsx(4): tsleep(9) -> tsleep_nsec(9); ok mpi@cheloha
2020-02-17Don't fake up an mbuf to prepend a readiotap header, just use bpf_mtap_hdr().Claudio Jeker
OK claudio@
2020-02-17Use m_defrag() to linearize an mbuf chain instead of hand rolling a solutionClaudio Jeker
which is not bug free. OK stsp@
2020-02-17Use bpf_mtap_hdr() to prepend the radiotap header instead of faking anClaudio Jeker
mbuf which sits on the stack. Similar change was done in iwm(4) some time ago. OK stsp@
2020-02-17The siop family members use various atop/ptoa dances (oosiop/osiop) orKenneth R Westerback
as static value of 16 * PAGE_SIZE (siop). But all end up with a max i/o size of of MAXPHYS or more. So no need for their *_minphys.
2020-02-15*_minphys() functions that cap i/o sizes at a value larger than theKenneth R Westerback
value minphys() uses (MAXPHYS) are pointless since minphys() is always called after the *_minphys() function. MAXPHYS (64 * 1024) == 16 * 4096. 4096 is the smallest PAGE_SIZE we have. So a *_minphys() function that caps the i/o size at N * PAGE_SIZE where N is > 16 is just wasting cycles. Nuke adv_minphys (40 * PAGE_SIZE), adw_minphys (254 * PAGE_SIZE), ahc_minphys (128 * PAGE_SIZE), ahd_minphys (128 * PAGE_SIZE), ami_minphys (26 * PAGE_SIZE), cac_minphys (65535 (!!!) * 512), iha_minphsy (32 * PAGE_SIZE), trm_minphys (31 * PAGE_SIZE), twe_minphys (62 * PAGE_SIZE). uha_minphys (32 * PAGE_SIZE),
2020-02-15Don't touch the phase bit at nvme_poll_done(). This makes dumpsys()YASUOKA Masahiko
work with nvme. ok jmatthew
2020-02-15Eliminate gdt_minphys() as it doesn't do anything. As the comment saysKenneth R Westerback
" ... it's really not necessary" since 128 * PAGE_SIZE will never be less than MAXPHYS.
2020-02-14Let's all agree to call our scsi_adapter variable '<dev>_switch'.Kenneth R Westerback
2020-02-14IPS_MAXFER, NAX_XFER, and MAXBSIZE are all definedKenneth R Westerback
as (64 * 1024). Reduce confusion by using MAXPHYS (a.k.a. (64 * 1024)) as other drivers do.
2020-02-13Nuke *_minphys() functions that either simply apply MAXPHYS or doKenneth R Westerback
nothing at all. MAXPHYS will be applied in minphys() and nothing at all, well, doesn't do anything. Also remove any '#define <blah> MAXPHYS' statements used solely to disguise MAXPHYS in said functions.
2020-02-07Nuke softc field 'sc_adapter" and just point sc_link's at shiney newKenneth R Westerback
'adw_switch' like all the cool kids do.
2020-02-06Remove pointless intermediate scsi_adapter field of softc by pointingKenneth R Westerback
sc_link.adapter at trm_switch directly.