History log of /haiku/src/add-ons/accelerants/radeon_hd/atombios/atom.h
Revision Date Author Comments
# f612d852 13-Jun-2020 Alexander von Gluck IV <kallisti5@unixzen.com>

radeon_hd/atombios: Minor updates from Linux

* These are hand plucked from Linux's atombios parser.
drm code has been leaking into Linux's version :-|

Change-Id: Iaab4f474edf57f0e5011e20a21bd1036b54ba47c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2912
Reviewed-by: waddlesplash <waddlesplash@gmail.com>


# 190b33c4 04-Mar-2016 Alexander von Gluck IV <kallisti5@unixzen.com>

radeon_hd: Add updated / missing atombios opcodes

* Newer cards introduce two new opcodes mul32 and div32
* Add completely missing processds opcode


# 61cf7133 09-Dec-2011 Alexander von Gluck IV <kallisti5@unixzen.com>

Include file style cleanup, no functional change


# 24d19f4d 19-Oct-2011 Alexander von Gluck IV <kallisti5@unixzen.com>

* fix silly unsigned vs signed bug in gcc2


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42886 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 9b4aacc2 19-Oct-2011 Alexander von Gluck IV <kallisti5@unixzen.com>

* backport linux AtomBIOS parser bugfix...
Fixes memory corruption on some boards.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42885 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 2c062f84 23-Aug-2011 Alexander von Gluck IV <kallisti5@unixzen.com>

* as we are doing a lot of math on bios in gAtomContext, lets make it a
uint8 vs a void pointer.
* guys at AMD confirmed that the method looking directly at the object table
should be the only method used on modern cards (r600 or later)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42683 a95241bf-73f2-0310-859d-f6bbb57e9c96


# aee8efc2 21-Aug-2011 Alexander von Gluck IV <kallisti5@unixzen.com>

* add gConnector for card connector storage
* add detect_connectors to detect card connectors
* add infinitely compex detect_connectors_manual
(used when detect_connectors fails)
* add missing AtomBIOS header


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42670 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 77e8ac07 06-Aug-2011 Alexander von Gluck IV <kallisti5@unixzen.com>

* add allocation of atombios fb scratch
* add free of allocated fb scratch


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42591 a95241bf-73f2-0310-859d-f6bbb57e9c96


# ee5d8bd0 06-Aug-2011 Alexander von Gluck IV <kallisti5@unixzen.com>

* tab fix
* add atom_parse_cmd|table_header functions to evaluate
data structure versions
* convert asic function to status_t and reflect
execute_table result
* cleanup logic in destroy atombios parser function


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42589 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 81e071b7 06-Aug-2011 Alexander von Gluck IV <kallisti5@unixzen.com>

* more style cleanup
* backport additional bugfixes from drm version
* add logic to detect infinite execution loops
* add a semephore to prevent multiple executions on
non-thread safe code ( this needs testing )


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42585 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 7eb6bbc7 05-Aug-2011 Alexander von Gluck IV <kallisti5@unixzen.com>

* style cleanup
* add some missing functions from drm version


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42583 a95241bf-73f2-0310-859d-f6bbb57e9c96


# d77ff85e 04-Aug-2011 Alexander von Gluck IV <kallisti5@unixzen.com>

* add required atombios.h from drm driver from linux 3.0 with a few tweaks
(we aren't taking ownership of this one.. yikes)
* add first AtomBIOS call to test the waters


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42578 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 51360674 02-Aug-2011 Alexander von Gluck IV <kallisti5@unixzen.com>

* Initial work on bios_init for setting up AtomBIOS parser
* Refactor AtomBIOS parser to use non-linux-kernel calls
(normally I would keep it as-is and do wrappers, but the
AtomBIOS parser has been rewritten from scratch twice
by its creator in the last 5 years.. so eh.
* Refactor AtomBIOS parser to be more haiku-like stylewise


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42538 a95241bf-73f2-0310-859d-f6bbb57e9c96


# cc9e8e94 01-Aug-2011 Alexander von Gluck IV <kallisti5@unixzen.com>

* Add card_info struct used by AtomBIOS parser


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42535 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 2df3def5 01-Aug-2011 Alexander von Gluck IV <kallisti5@unixzen.com>

* Remove old legacy internal AtomBIOS parser
* Import "new" AMD AtomBios Parser (aka AMD KGrids)
* Add a new global storage struct for BIOS info
(ex. location, size, etc)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42534 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 61cf713381b5ef727d0b1d78306dacde4887b8f5 09-Dec-2011 Alexander von Gluck IV <kallisti5@unixzen.com>

Include file style cleanup, no functional change


# 24d19f4dab07a1cf7f15ecc3c5ba6d66615725d0 19-Oct-2011 Alexander von Gluck IV <kallisti5@unixzen.com>

* fix silly unsigned vs signed bug in gcc2


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42886 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 9b4aacc2100bce4e5a885c77db32db6703f05192 19-Oct-2011 Alexander von Gluck IV <kallisti5@unixzen.com>

* backport linux AtomBIOS parser bugfix...
Fixes memory corruption on some boards.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42885 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 2c062f84e5ff05c782c321d9ceceffb05b909738 23-Aug-2011 Alexander von Gluck IV <kallisti5@unixzen.com>

* as we are doing a lot of math on bios in gAtomContext, lets make it a
uint8 vs a void pointer.
* guys at AMD confirmed that the method looking directly at the object table
should be the only method used on modern cards (r600 or later)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42683 a95241bf-73f2-0310-859d-f6bbb57e9c96


# aee8efc2449441c243e759cd0ca41ee024894481 21-Aug-2011 Alexander von Gluck IV <kallisti5@unixzen.com>

* add gConnector for card connector storage
* add detect_connectors to detect card connectors
* add infinitely compex detect_connectors_manual
(used when detect_connectors fails)
* add missing AtomBIOS header


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42670 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 77e8ac07c6bcbc944a7c631f91bbaf64ab99634c 06-Aug-2011 Alexander von Gluck IV <kallisti5@unixzen.com>

* add allocation of atombios fb scratch
* add free of allocated fb scratch


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42591 a95241bf-73f2-0310-859d-f6bbb57e9c96


# ee5d8bd0a8788c9017841a35a2a00a5ac481e6ca 06-Aug-2011 Alexander von Gluck IV <kallisti5@unixzen.com>

* tab fix
* add atom_parse_cmd|table_header functions to evaluate
data structure versions
* convert asic function to status_t and reflect
execute_table result
* cleanup logic in destroy atombios parser function


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42589 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 81e071b76e191a140fe6a79f12d344aed8ba636e 06-Aug-2011 Alexander von Gluck IV <kallisti5@unixzen.com>

* more style cleanup
* backport additional bugfixes from drm version
* add logic to detect infinite execution loops
* add a semephore to prevent multiple executions on
non-thread safe code ( this needs testing )


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42585 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 7eb6bbc78c1d608f4e6f8574bf219d05506b8ccf 05-Aug-2011 Alexander von Gluck IV <kallisti5@unixzen.com>

* style cleanup
* add some missing functions from drm version


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42583 a95241bf-73f2-0310-859d-f6bbb57e9c96


# d77ff85e1f6c41e9f46253dc63900dd8fef6f500 04-Aug-2011 Alexander von Gluck IV <kallisti5@unixzen.com>

* add required atombios.h from drm driver from linux 3.0 with a few tweaks
(we aren't taking ownership of this one.. yikes)
* add first AtomBIOS call to test the waters


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42578 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 5136067474e5350ce28b33e809580dd8118166c1 02-Aug-2011 Alexander von Gluck IV <kallisti5@unixzen.com>

* Initial work on bios_init for setting up AtomBIOS parser
* Refactor AtomBIOS parser to use non-linux-kernel calls
(normally I would keep it as-is and do wrappers, but the
AtomBIOS parser has been rewritten from scratch twice
by its creator in the last 5 years.. so eh.
* Refactor AtomBIOS parser to be more haiku-like stylewise


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42538 a95241bf-73f2-0310-859d-f6bbb57e9c96


# cc9e8e94d48193b0b59c0f9475e662d1330e0899 01-Aug-2011 Alexander von Gluck IV <kallisti5@unixzen.com>

* Add card_info struct used by AtomBIOS parser


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42535 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 2df3def596241bbf68767401c5ae11b11290536b 01-Aug-2011 Alexander von Gluck IV <kallisti5@unixzen.com>

* Remove old legacy internal AtomBIOS parser
* Import "new" AMD AtomBios Parser (aka AMD KGrids)
* Add a new global storage struct for BIOS info
(ex. location, size, etc)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42534 a95241bf-73f2-0310-859d-f6bbb57e9c96