rin
dd0005a97a
Revert rev 1.75; do not set WSFB_VRAM_IS_RAM flag bit. It indicates
...
memory type obtained by mmap. I just misunderstood its intention.
Thanks to jmcneill for pointing it out!
2020-10-18 12:47:37 +00:00
rin
1075672ff1
Remove stray TABs. No binary changes.
2020-10-18 12:00:12 +00:00
rin
7a801774a0
For WSDISPLAYIO_GET_FBINFO ioctl, set WSFB_VRAM_IS_RAM to fbi_flags
...
when shadow FB is used.
2020-10-18 11:54:20 +00:00
rin
4d3ccdb20f
Fix undefined behaviors found by kUBSan.
...
Tested on VirtualBox with amd64 kernel.
2020-10-18 11:51:08 +00:00
mlelstv
989036c7f9
Correct KB_NEXT value. No impact since KB_NEXT isn't used anywhere.
2020-10-17 10:28:10 +00:00
mlelstv
cc534ef5d9
Fix error message. No functional change, both commands use the same
...
bit to select read or write mode.
2020-10-17 09:36:45 +00:00
msaitoh
0bf6a81f22
Fixes a problem that the attach function reported
...
"wm_gmii_setup_phytype: Unknown PHY model. OUI=000000, model=0000" and
"PHY type is still unknown." Don't call wm_gmii_setup_phytype() three times if
the interface uses SGMII with internal MDIO.
Tested with I354(Rangeley(SGMII(MDIO))) and I350(SERDES(SFP), SGMII(SFP)).
2020-10-16 05:53:39 +00:00
jmcneill
ebbab2fb82
Rename xhci_op_barrier to xhci_barrier and remove offset/length parameters.
...
Barriers will be applied to the entire XHCI register space.
2020-10-15 09:37:40 +00:00
jmcneill
14ea18b1c3
Initialise xhci_softc sc_ios
2020-10-15 09:32:40 +00:00
ryo
a099e3b459
Reduces useless "vmxnet3_read_cmd(sc, VMXNET3_CMD_GET_LINK)" calls
2020-10-15 04:37:48 +00:00
ryo
45090a6b01
Fixed a bug where 'ifconfig vmx0 down up' caused a failure to send.
...
This procedure was leaving sc->vmx_link_active = 0.
ok nakahara@
2020-10-15 04:33:24 +00:00
ryo
354924730c
modularize, and fix build error
2020-10-14 10:26:59 +00:00
ryo
d87a4d00ad
vmx(4) should be MI. moved to sys/dev/pci from sys/arch/x86/pci
2020-10-14 10:19:10 +00:00
jdc
b211248d17
Handle EDID:N entries, where N is the port number, so that we can set up
...
the display on port1 when port0 has no EDID information.
Try harder not to return NULL from radeonfb_modelookup() because we use
the result without checking later.
While here, adjust RADEONFB_DEBUG output:
don't print RADEON_PIXCLKS_CNTL (fixes a crash on sparc64 because it's
not aligned)
don't ignore the bottom 200 lines of the display (for no apparent reason))
2020-10-11 21:41:57 +00:00
jmcneill
348742fbbe
For absolute pointers, report min/max X and Y values using
...
WSMOUSEIO_[SG]CALIBCOORDS ioctl.
2020-10-10 21:47:42 +00:00
thorpej
6b90ba5d47
In siisata_intr_port(), skip reading the error condition if
...
ata_queue_get_active_xfer() returns NULL.
PR kern/55682. Fix suggested by mlelstv@.
2020-10-10 20:27:54 +00:00
jmcneill
45387a0c63
Add pciconf_resource_reserve. This allows MD code to mark specific memory
...
and I/O regions as in use. When pciconf finds a device already configured
to use one of these regions, the device config is left as-is.
2020-10-10 15:22:15 +00:00
jdc
0ca8bdd1bd
Don't change a videomode that's been setup in the firmware.
...
Extend the register debugging output (and hopefully make it easier to read).
2020-10-10 08:29:32 +00:00
nisimura
8b9659189f
add DM9000A register definitions
2020-10-08 21:00:25 +00:00
nisimura
077f381d0c
improve register descriptions
2020-10-08 11:29:04 +00:00
mlelstv
7686d3bd5e
Fix ioctl locking. Add dkdriver.
2020-10-06 18:45:23 +00:00
mlelstv
e6735382cd
Check dkdriver before calling a driver function.
2020-10-06 15:05:54 +00:00
jakllsch
15df7ca096
device_printf() instead of aprint_error_dev() where appropriate
2020-10-04 16:23:04 +00:00
nat
a73bf1cfe7
Ensure event_thread stays in event loop upon creation.
2020-10-04 06:15:54 +00:00
riastradh
35a4cb626d
autoconf: Blame devices holding up boot with config_pending.
...
Blame message requires `boot -x' (AB_DEBUG).
Fix ata so it doesn't mismatch config_pending_incr/decr devices.
2020-10-03 22:32:50 +00:00
jmcneill
ac87b8e9ad
MMIO configuration space is in guest byte order. AArch64 BE is special,
...
as the guest starts in LE and we switch to BE after the kernel starts.
For this case, we need to byte swap all config space accesses.
2020-10-03 13:51:34 +00:00
rin
5daf99f3f4
Revert rev 1.5:
...
http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/dev/fdt/dw_apb_uart.c#rev1.5
The device is capable to recognize break signal actually.
Reset cnmagic from +++++ to default.
Pointed out by jakllsch. Thanks!
2020-10-02 14:59:56 +00:00
nia
9c80624b1c
synaptics: Emulate scrolling when the middle button is held with TrackPoints
...
idea stolen from various other operating systems.
this configurable with a sysctl in case somebody wants to hold the middle
button, e.g. with old window managers that close menus when a button is
released.
2020-10-01 17:13:19 +00:00
nia
cd04adbbd6
erect a signpost for weary travellers
2020-10-01 15:08:11 +00:00
nia
3810cfde80
comment was likely true in 2007 but no longer reflects the reality of hw
2020-10-01 14:33:26 +00:00
jmcneill
7a50f3a533
Set sc_fifolen=1 for the no fifo case
2020-09-30 14:56:34 +00:00
simonb
5d42733d1c
Add some KNF whitespace.
2020-09-30 05:04:54 +00:00
msaitoh
8d86b96727
s/settng/setting/
2020-09-29 03:04:03 +00:00
msaitoh
cccc3d1cb5
s/implicitely/implicitly/
2020-09-29 03:02:18 +00:00
msaitoh
57920690e6
s/occurence/occurrence/
2020-09-29 02:58:51 +00:00
msaitoh
811d5a8b03
s/parition/partition/
2020-09-29 02:49:55 +00:00
jakllsch
fd597c5490
fix typo that prevented bytes/physsect reporting from working
2020-09-28 12:47:49 +00:00
jmcneill
c30892ca9f
Get rid of a4x bus_space tag from fdtbus_attach_args. The only consumer
...
of this was various com(4) glue so modify all of that to use the new
com_init_regs_stride instead.
2020-09-28 11:54:22 +00:00
jmcneill
8efd0a8e92
Default reg-shift is 2, not 0, for DW APB UART
2020-09-28 11:34:47 +00:00
jmcneill
07567a47ca
Auto-detect DW APB UART FIFO length and print the FIFO length when enabled
...
instead of just "working fifo".
2020-09-28 11:33:15 +00:00
jmcneill
04135eb260
Use com_init_regs_stride instead of a4x tag
2020-09-28 11:32:19 +00:00
macallan
afd3787898
first step towards r5xx support:
...
- no CRTC programming yet, we just use whatever mode the (open)firmware hands
us
- palette control, fb location etc. all work
- hardware acceleration for character drawing, scrolling etc. works
- hardware cursor works
... tested & still works on various radeons in various macppc machines
2020-09-28 05:43:58 +00:00
macallan
08cefa9647
moar registers
2020-09-28 05:38:41 +00:00
christos
30114e3891
DIOCCACHESYNC takes an int argument, pass it through.
2020-09-27 21:39:08 +00:00
christos
09cc5f64e5
de-quadruplicate, remove unused argument
2020-09-27 16:58:11 +00:00
jdolecek
390f933191
add definition of the bit indicating support for APSTA
2020-09-27 16:44:24 +00:00
jmcneill
f97971ac12
Use HAVE_NVMM for nvmm headers
2020-09-27 11:57:28 +00:00
jakllsch
5e1437bacb
spelling fixes in sd.c comments
2020-09-25 13:08:00 +00:00
ryo
459b824a7d
no need to swap pt.cmd.cdwXX at nvme_set_number_of_queues(). cmd.cdwXX will be swapped in nvme_pt_fill().
2020-09-24 09:59:11 +00:00
msaitoh
5673b8ef88
Small fixes from knakahara:
...
- Check return value correctly in wm_lv_jumbo_workaround_ich8lan().
- Fix comment.
2020-09-24 08:00:59 +00:00