119d54020SJack RosenthalWhat:		/sys/bus/coreboot
219d54020SJack RosenthalDate:		August 2022
319d54020SJack RosenthalContact:	Jack Rosenthal <jrosenth@chromium.org>
419d54020SJack RosenthalDescription:
519d54020SJack Rosenthal		The coreboot bus provides a variety of virtual devices used to
619d54020SJack Rosenthal		access data structures created by the Coreboot BIOS.
719d54020SJack Rosenthal
819d54020SJack RosenthalWhat:		/sys/bus/coreboot/devices/cbmem-<id>
919d54020SJack RosenthalDate:		August 2022
1019d54020SJack RosenthalContact:	Jack Rosenthal <jrosenth@chromium.org>
1119d54020SJack RosenthalDescription:
1219d54020SJack Rosenthal		CBMEM is a downwards-growing memory region created by Coreboot,
1319d54020SJack Rosenthal		and contains tagged data structures to be shared with payloads
1419d54020SJack Rosenthal		in the boot process and the OS.  Each CBMEM entry is given a
1519d54020SJack Rosenthal		directory in /sys/bus/coreboot/devices based on its id.
1619d54020SJack Rosenthal		A list of ids known to Coreboot can be found in the coreboot
1719d54020SJack Rosenthal		source tree at
1819d54020SJack Rosenthal		``src/commonlib/bsd/include/commonlib/bsd/cbmem_id.h``.
1919d54020SJack Rosenthal
2019d54020SJack RosenthalWhat:		/sys/bus/coreboot/devices/cbmem-<id>/address
2119d54020SJack RosenthalDate:		August 2022
2219d54020SJack RosenthalContact:	Jack Rosenthal <jrosenth@chromium.org>
2319d54020SJack RosenthalDescription:
24*ebab9426SBjorn Helgaas		This is the physical memory address that the CBMEM entry's data
2519d54020SJack Rosenthal		begins at, in hexadecimal (e.g., ``0x76ffe000``).
2619d54020SJack Rosenthal
2719d54020SJack RosenthalWhat:		/sys/bus/coreboot/devices/cbmem-<id>/size
2819d54020SJack RosenthalDate:		August 2022
2919d54020SJack RosenthalContact:	Jack Rosenthal <jrosenth@chromium.org>
3019d54020SJack RosenthalDescription:
3119d54020SJack Rosenthal		This is the size of the CBMEM entry's data, in hexadecimal
3219d54020SJack Rosenthal		(e.g., ``0x1234``).
3319d54020SJack Rosenthal
3419d54020SJack RosenthalWhat:		/sys/bus/coreboot/devices/cbmem-<id>/mem
3519d54020SJack RosenthalDate:		August 2022
3619d54020SJack RosenthalContact:	Jack Rosenthal <jrosenth@chromium.org>
3719d54020SJack RosenthalDescription:
3819d54020SJack Rosenthal		A file exposing read/write access to the entry's data.  Note
3919d54020SJack Rosenthal		that this file does not support mmap(), as coreboot
4019d54020SJack Rosenthal		does not guarantee that the data will be page-aligned.
4119d54020SJack Rosenthal
4219d54020SJack Rosenthal		The mode of this file is 0600.  While there shouldn't be
4319d54020SJack Rosenthal		anything security-sensitive contained in CBMEM, read access
4419d54020SJack Rosenthal		requires root privileges given this is exposing a small subset
4519d54020SJack Rosenthal		of physical memory.
46