mirror of
https://git.freebsd.org/src.git
synced 2026-01-11 19:57:22 +00:00
loader.efi: add stride & offset for MacBookPro3,1
Some checks are pending
Cross-build Kernel / amd64 ubuntu-22.04 (clang-15) (push) Waiting to run
Cross-build Kernel / aarch64 ubuntu-22.04 (clang-15) (push) Waiting to run
Cross-build Kernel / amd64 ubuntu-24.04 (clang-18) (push) Waiting to run
Cross-build Kernel / aarch64 ubuntu-24.04 (clang-18) (push) Waiting to run
Cross-build Kernel / amd64 macos-latest (clang-18) (push) Waiting to run
Cross-build Kernel / aarch64 macos-latest (clang-18) (push) Waiting to run
Some checks are pending
Cross-build Kernel / amd64 ubuntu-22.04 (clang-15) (push) Waiting to run
Cross-build Kernel / aarch64 ubuntu-22.04 (clang-15) (push) Waiting to run
Cross-build Kernel / amd64 ubuntu-24.04 (clang-18) (push) Waiting to run
Cross-build Kernel / aarch64 ubuntu-24.04 (clang-18) (push) Waiting to run
Cross-build Kernel / amd64 macos-latest (clang-18) (push) Waiting to run
Cross-build Kernel / aarch64 macos-latest (clang-18) (push) Waiting to run
Note that there are three variants of this MacBook. We only have the stride and offset values for the 17" 1680x1050 model. Reviewed by: vexeduxr Pull Request: https://github.com/freebsd/freebsd-src/pull/1584
This commit is contained in:
parent
75866d71e8
commit
be6ba97aae
1 changed files with 17 additions and 0 deletions
|
|
@ -392,6 +392,23 @@ efifb_from_uga(struct efi_fb *efifb)
|
|||
/* These are the missing bits. */
|
||||
offset = 0x0;
|
||||
stride = 2048;
|
||||
} else if (ev != NULL && !strcmp(ev, "MacBookPro3,1")) {
|
||||
/*
|
||||
* Valid for MacBookPro 17" with standard resolution.
|
||||
* Other Models are:
|
||||
* MacBookPro 15" with horiz=1440
|
||||
* MacBookPro 17" with horiz=1920
|
||||
*/
|
||||
|
||||
/* These are the expected values we should have. */
|
||||
if (horiz == 1680) {
|
||||
vert = 1050;
|
||||
fbaddr = 0xc0000000;
|
||||
/* These are the missing bits. */
|
||||
stride = 2048;
|
||||
/* 24 scan lines down */
|
||||
offset = stride * 4 * 24;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue