aboutsummaryrefslogtreecommitdiff
path: root/sys/amd64/include/pc
Commit message (Collapse)AuthorAgeFilesLines
* amd64: clean up empty lines in .c and .h filesMateusz Guzik2020-09-011-1/+1
| | | | Notes: svn path=/head/; revision=365067
* sys/amd64: further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-271-0/+2
| | | | | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Notes: svn path=/head/; revision=326257
* Add more UEFI/e820 memory types from latest specifications.Alexander Motin2016-07-241-0/+3
| | | | | | | | | This is only cosmetics. MFC after: 2 weeks Notes: svn path=/head/; revision=303261
* - Add a new structure type for the ACPI 3.0 SMAP entry that includes theJohn Baldwin2014-08-291-0/+8
| | | | | | | | | | | | | | | | | | optional attributes field. - Add a 'machdep.smap' sysctl that exports the SMAP table of the running system as an array of the ACPI 3.0 structure. (On older systems, the attributes are given a value of zero.) Note that the sysctl only exports the SMAP table if it is available via the metadata passed from the loader to the kernel. If an SMAP is not available, an empty array is returned. - Add a format handler for the ACPI 3.0 SMAP structure to the sysctl(8) binary to format the SMAP structures in a readable format similar to the format found in boot messages. MFC after: 2 weeks Notes: svn path=/head/; revision=270828
* xen: implement hook to fetch and parse e820 memory mapRoger Pau Monné2014-03-111-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | e820 memory map is fetched using a hypercall under Xen PVH, so add a hook to init_ops in oder to diverge from bare metal and implement a Xen variant. Approved by: gibbs Sponsored by: Citrix Systems R&D x86/include/init.h: - Add a parse_memmap hook to init_ops, that will be called to fetch and parse the memory map. amd64/amd64/machdep.c: - Decouple the fetch and the parse of the memmap, so the parse function can be shared with Xen code. - Move code around in order to implement the parse_memmap hook. amd64/include/pc/bios.h: - Declare bios_add_smap_entries (implemented in machdep.c). x86/xen/pv.c: - Implement fetching of e820 memmap when running as a PVH guest by using the XENMEM_memory_map hypercall. Notes: svn path=/head/; revision=263009
* - Re-shuffle the <machine/pc/bios.h> headers to move all kernel-specificJohn Baldwin2012-09-281-10/+42
| | | | | | | | | | | | | | bits under #ifdef _KERNEL but leave definitions for various structures defined by standards ($PIR table, SMAP entries, etc.) available to userland. - Consolidate duplicate SMBIOS table structure definitions in ipmi(4) and smbios(4) in <machine/pc/bios.h> and make them available to userland. MFC after: 2 weeks Notes: svn path=/head/; revision=241027
* A simple rewrite of biossmap.c:Jung-uk Kim2009-04-151-0/+4
| | | | | | | | | | | | | | | | - Do not iterate int 15h, function e820h twice. Instead, we use STAILQ to store each return buffer and copy all at once. - Export optional extended attributes defined in ACPI 3.0 as separate metadata. Currently, there are only two bits defined in the specification. For example, if the descriptor has extended attributes and it is not enabled, it has to be ignored by OS. We may implement it in the kernel later if it is necessary and proven correct in reality. - Check return buffer size strictly as suggested in ACPI 3.0. Reviewed by: jhb Notes: svn path=/head/; revision=191111
* - Add constants for the different memory types in the SMAP table.John Baldwin2007-10-281-2/+8
| | | | | | | | - Use the SMAP types and constants from <machine/pc/bios.h> in the boot code rather than duplicating it. Notes: svn path=/head/; revision=173118
* Make the facility for recognizing BIOS-signatures more generalPoul-Henning Kamp2005-07-211-1/+16
| | | | | | | | | | | | | | | | | and return a printable representation. This fixes recognition of the PC Engines WRAP and improves the recognition of the Soekris boards (Bios version can now be seen in the dmesg output for instance). Also, add watchdog support for PCM-582x platforms. Submitted by: Adrian Steinmann <ast@marabu.ch> Slightly changed by: phk PR: 81360 Notes: svn path=/head/; revision=148231
* PC98 will never be defined for amd64Warner Losh2005-01-051-5/+0
| | | | Notes: svn path=/head/; revision=139730
* Severely strip down the repocopied i386/bios.c and bios.h files. It turnsPeter Wemm2004-09-241-233/+0
| | | | | | | out that bios_sigsearch() etc is useful for finding tables in roms. Notes: svn path=/head/; revision=135689
* - Use the correct devclass name ("acpi" vs "ACPI") to detect if acpi0 isJohn Baldwin2004-06-101-1/+0
| | | | | | | | | | present and thus that the PnPBIOS probe should be skipped instead of having ACPI zero out the PnPBIOStable pointer. - Make the PnPBIOStable pointer static to i386/i386/bios.c now that that is the only place it is used. Notes: svn path=/head/; revision=130313
* Remove atdevbase and replace it's remaining uses with direct references toJohn Baldwin2004-06-101-2/+2
| | | | | | | KERNBASE instead. Notes: svn path=/head/; revision=130312
* Add new bios_string() which will hunt for a string inside a given rangePoul-Henning Kamp2004-06-031-0/+8
| | | | | | | | of the BIOS. This can be used for finding arbitrary magic in the BIOS in order to recognize particular platforms. Notes: svn path=/head/; revision=130040
* use __packed.Alfred Perlstein2002-09-231-6/+6
| | | | Notes: svn path=/head/; revision=103870
* Fixed to draw mouse cursor. The syscons driver for PC98 uses differentYoshihiro Takahashi2001-12-141-0/+5
| | | | | | | | | | attributes from i386. Submitted by: chi@bd.mbn.or.jp (Chiharu Shibata) MFC after: 3 days Notes: svn path=/head/; revision=87886
* Fix the argument specifier for the PnP BIOS function 2Kazutaka YOKOTA2001-09-031-1/+1
| | | | | | | | | | (PNP_SET_DEVNODE). The second argument is not a segment:offset pointer, but a 16 bit short. MFC after: 4 weeks Notes: svn path=/head/; revision=82845
* The general conesnsus on irc was that pci bios for config registersWarner Losh2001-08-211-0/+1
| | | | | | | | | | | | and such was just a bad idea and one that users should be forced to enable if they want it. This patch introduces a hw.pci.enable_pcibios tunable for those people. This does not impact the pcibios interrupt routing at all. Approved by: peter, msmith Notes: svn path=/head/; revision=82035
* Add PCI BIOS function codes for IRQ routing fetch and route.Mike Smith2000-10-191-0/+2
| | | | Notes: svn path=/head/; revision=67310
* Add types and prototypes.Warner Losh2000-10-161-1/+45
| | | | | | | Submitted by: msmith Notes: svn path=/head/; revision=67223
* More updates to the ACPI code:Mike Smith2000-09-301-0/+13
| | | | | | | | | | | | | | | | | | - Move all register I/O into acpi_io.c - Move event handling into acpi_event.c - Reorganise headers into acpivar/acpireg/acpiio - Move find-RSDT and find-ACPI-owned-memory into acpi_machdep - Allocate all resources (except those detailed only by AML) as real resources. Add infrastructure that will make adding resource support to AML code easy. - Remove all ACPI #ifdefs in non-ACPI code - Removed unnecessary includes - Minor style and commenting fixes Reviewed by: iwasaki Notes: svn path=/head/; revision=66489
* Some more i386-only BIOS-friendliness:Mike Smith2000-04-161-0/+11
| | | | | | | | | | | | - Add support for using the PCI BIOS functions for configuration space accesses, and make this the default. - Make PNPBIOS the default (obsoletes the PNPBIOS config option). - Add two new boot-time tunables to disable each of the above. Notes: svn path=/head/; revision=59294
* $Id$ -> $FreeBSD$Peter Wemm1999-08-282-2/+2
| | | | Notes: svn path=/head/; revision=50477
* Reference the correct gdt[] entry on SMP. Remove the `generation' flag,Jonathan Lemon1999-08-271-2/+1
| | | | | | | and always reload the selectors for every bios call. Notes: svn path=/head/; revision=50463
* Remove the SMBIOS detection and definitions; this should be handled in aMike Smith1999-08-181-29/+1
| | | | | | | loadable module (under development). Notes: svn path=/head/; revision=49996
* Search for and interrogate the PnP BIOS if found. This code just printsMike Smith1999-08-171-4/+68
| | | | | | | | the PnP device IDs in verbose mode; it does not (yet) save any resource data or contribute to the PnP process nor resource management. Notes: svn path=/head/; revision=49953
* Major update to the kernel's BIOS-calling ability.Mike Smith1999-07-291-13/+75
| | | | | | | | | | | | - Add support for calling 32-bit code in other segments - Add support for calling 16-bit protected mode code Update APM to use this facility. Submitted by: jlemon Notes: svn path=/head/; revision=49197
* Nuke the nonexistend pad bytes from the end of the DMI header structure.Mike Smith1997-08-041-2/+1
| | | | Notes: svn path=/head/; revision=27873
* Support for PC BIOS functions.Mike Smith1997-08-011-0/+113
| | | | Notes: svn path=/head/; revision=27822
* Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are notPeter Wemm1997-02-221-1/+1
| | | | | | | ready for it yet. Notes: svn path=/head/; revision=22975
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-141-1/+1
| | | | | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise. Notes: svn path=/head/; revision=21673
* Removed all patch kit headers, sccsid and rcsid strings, put $Id$ in, someRodney W. Grimes1993-10-161-0/+2
| | | | | | | minor cleanup. Added $Id$ to files that did not have any version info, etc Notes: svn path=/head/; revision=621
* Initial import, 0.1 + pk 0.2.4-B1Rodney W. Grimes1993-06-121-0/+43
Notes: svn path=/cvs2svn/branches/unlabeled-1.1.1/; revision=4