| Message ID | 20251007170549.541981-1-sjg@u-boot.org |
|---|---|
| Headers |
Return-Path: <concept-bounces+u-boot-concept=u-boot.org@u-boot.org> X-Original-To: u-boot-concept@u-boot.org Delivered-To: u-boot-concept@u-boot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1759856773; bh=p/+TeJtKI5iEf2FQTq//kOJgO/NKSFYZOGfnG+AyIyk=; h=From:To:Date:CC:Subject:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=bOU52RcO1TtWUoP5diMCH5+aj4W4em1AFF/G53NFGhvIHe3/0aZA89TKZe83iOvt6 77J+ds4wS2y0hnWTibfEJQQum72ryQ04pS0Fq2NDmxuxHBgaOEZAQkUDgftXDKugGK 6EkTru0ZZNPtiny2CN4q2GQ6p+GomEFXt/Xn1dvC2pCB+SgbF4IM0Up7py/3O1WT88 r41Kw5Y8/nRzetaDnYJYEO4G7wkaYzfvrJssJ/WPFlZ/e4bfdGSJNKOlm5FVjySmHy 7Vj3vByYTuLBmVT5s56p9PVovRn8wGFcqZvu2gXFNaTrt+5CTZBPx2o13YiAyoKVGH Dl3VqnqS8xR3w== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 5A53067F1E for <u-boot-concept@u-boot.org>; Tue, 7 Oct 2025 11:06:13 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id BA3OTxvNXntm for <u-boot-concept@u-boot.org>; Tue, 7 Oct 2025 11:06:13 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1759856773; bh=p/+TeJtKI5iEf2FQTq//kOJgO/NKSFYZOGfnG+AyIyk=; h=From:To:Date:CC:Subject:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=bOU52RcO1TtWUoP5diMCH5+aj4W4em1AFF/G53NFGhvIHe3/0aZA89TKZe83iOvt6 77J+ds4wS2y0hnWTibfEJQQum72ryQ04pS0Fq2NDmxuxHBgaOEZAQkUDgftXDKugGK 6EkTru0ZZNPtiny2CN4q2GQ6p+GomEFXt/Xn1dvC2pCB+SgbF4IM0Up7py/3O1WT88 r41Kw5Y8/nRzetaDnYJYEO4G7wkaYzfvrJssJ/WPFlZ/e4bfdGSJNKOlm5FVjySmHy 7Vj3vByYTuLBmVT5s56p9PVovRn8wGFcqZvu2gXFNaTrt+5CTZBPx2o13YiAyoKVGH Dl3VqnqS8xR3w== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 0C91267EE5 for <u-boot-concept@u-boot.org>; Tue, 7 Oct 2025 11:06:13 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1759856768; bh=z7Qy6o2CoTWguL5+70btK8If47yMydAtXWS8qkG44Bc=; h=From:To:Cc:Subject:Date:From; b=EhiF4iboQhgMONMGLuJKjgpnO2I2R5EeQNy0ZkzA4P6dwdaSLvT9kdRIkUImaEkik EsKP3lrXoZ8gxOuY/npmdh7M7A9tELfGLlL13gRtEEpbZVFYXAgLHUsEGTTJUl3yEx 6SWsKMIQeJvYSyRPgOlqndVHJpPlEw4kwEkHC/OGqb9Gp1V5rBQDzLW/Fn3I6dNQ3f W0zmwCCH7ECLVMTvSDRO/j7GTw5PH0HM8/E2mwHKppjHc4GpBZa6j4KOCsbyGq2/UX GWQfkS2sWGEsCZRbKaupS5HYDDQeq2lCazDEVTwi4xGhwurKh7LxWlPWZ5TtwaSOXE Z6r0jDCJ1Pasg== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 7D72F67DD0; Tue, 7 Oct 2025 11:06:08 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10026) with ESMTP id zrcaCpz_QAQE; Tue, 7 Oct 2025 11:06:08 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1759856764; bh=cmpRu6LtVo0eE+5/ew8QgG3jOsEJfFBVjGyljKj6vko=; h=From:To:Cc:Subject:Date:From; b=mhPXSt4b8/7AMOEsGPIxEug8ujTplExOY80DDnW84U+JYEGZyhB6sMjZWabPKWYJC h/m23Sxa0/9ePFSXRbizHHh/53iVyeCN4OvyOAg5hSFz6n/gs8kAPwPB3QEXPrj7eX y4/mmtm4bd4D1FC5Kyy/zPGEkyr7VIN/zydELZTav+abODuqc1BZeBVD80NuM/rZaC 4Y6r+G2CrudiQ8IZ1u+fwUbpQq2Wm+sRTLrdyDl2t0jhsu8aP62Y74Kh2smF8uaQjl XjSGMCqOcNqSjvZ5wEd6Oh1OTF2YhwFJVJCZ6/LPBqpC/T8jjheMzK8gsFF9d5PC2H p3rSO+n+IWCEQ== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id B90CC67ECE; Tue, 7 Oct 2025 11:06:03 -0600 (MDT) From: Simon Glass <sjg@u-boot.org> To: U-Boot Concept <concept@u-boot.org> Date: Tue, 7 Oct 2025 11:05:14 -0600 Message-ID: <20251007170549.541981-1-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Message-ID-Hash: HA54SSOFQO4T6ZJYHTKWHC45EOAEN47D X-Message-ID-Hash: HA54SSOFQO4T6ZJYHTKWHC45EOAEN47D X-MailFrom: sjg@u-boot.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Heinrich Schuchardt <xypron.glpk@gmx.de>, Simon Glass <sjg@chromium.org> X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH v2 00/20] expo: Complete mouse operation in the EFI app List-Id: Discussion and patches related to U-Boot Concept <concept.u-boot.org> Archived-At: <https://lists.u-boot.org/archives/list/concept@u-boot.org/message/HA54SSOFQO4T6ZJYHTKWHC45EOAEN47D/> List-Archive: <https://lists.u-boot.org/archives/list/concept@u-boot.org/> List-Help: <mailto:concept-request@u-boot.org?subject=help> List-Owner: <mailto:concept-owner@u-boot.org> List-Post: <mailto:concept@u-boot.org> List-Subscribe: <mailto:concept-join@u-boot.org> List-Unsubscribe: <mailto:concept-leave@u-boot.org> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit |
| Series |
expo: Complete mouse operation in the EFI app
|
|
Message
Simon Glass
Oct. 7, 2025, 5:05 p.m. UTC
From: Simon Glass <sjg@chromium.org>
This series includes various improvements which allow the mouse to be
used when running as an EFI app.
In particular:
- support for the absolute-pointer protocol, since this provides better
integration when running under QEMU
- input tweaks to improve performance under QEMU
It also includes some x86-specific fixes for i8042 and MTRRs.
Finally, a new --bootcmd option is added to the build-qemu script to
allow passing a boot command to U-Boot.
This series is part F
Changes in v2:
- Add new patch to replace mouse_press_state_t enum with bool
- Add new patch to replace press_state with bool pressed
- Add new patch to move click detection into mouse_get_event()
Simon Glass (20):
qfw: Export qfw_locate_file() for external use
event: Add EVT_BOOTCMD event for custom boot commands
x86: qemu: Add EVT_BOOTCMD handler to get bootcmd from fw_cfg
scripts: build-qemu: Add --bootcmd option to pass bootcmd via fw_cfg
mouse: Replace mouse_press_state_t enum with bool
mouse: Replace press_state with bool pressed
mouse: Move click detection into mouse_get_event()
expo: Speed up polling the keyboard
x86: efi: Avoid setting MTRRs in the app
x86: efi: Disable i8042 in the x86 app
efi: app: Support reading SMBIOS3 tables
efi: app: Detect running under QEMU
efi: serial: Speed up reading from input
efi: video: Add some more debugging for the modes
efi: mouse: Move simple-pointer code into a function
efi: mouse: Move button handling into a function
efi: mouse: Split out event handling further
efi: Add definitions for the absolute-pointer protocol
efi: mouse: Add support for an absolute pointer
efi: mouse: Scale the pointer to the display
arch/sandbox/cpu/sdl.c | 4 +-
arch/x86/cpu/qemu/qemu.c | 31 +++
arch/x86/lib/init_helpers.c | 3 +-
boot/expo.c | 16 +-
cmd/mouse.c | 2 +-
common/event.c | 1 +
common/main.c | 32 ++-
doc/board/emulation/script.rst | 15 ++
drivers/input/Kconfig | 2 +-
drivers/input/efi_mouse.c | 426 +++++++++++++++++++++++-------
drivers/input/mouse-uclass.c | 50 ++--
drivers/input/usb_mouse.c | 2 +-
drivers/qfw/qfw.c | 4 +-
drivers/serial/serial_efi.c | 45 ++--
drivers/video/efi.c | 15 +-
include/asm-generic/global_data.h | 6 +
include/efi.h | 1 +
include/efi_api.h | 30 +++
include/event.h | 22 ++
include/expo.h | 2 +
include/mouse.h | 17 +-
include/qfw.h | 12 +
lib/efi/device_path.c | 1 +
lib/efi_client/efi_app.c | 33 ++-
scripts/build-qemu | 7 +
test/dm/mouse.c | 16 +-
26 files changed, 615 insertions(+), 180 deletions(-)