Got inspired by mmu_man's dmidecode release and added a simple identification

of BIOS32, SMBIOS, and DMI services.
Also implemented a get_bios32_service() function which you can use to get
access to that service (ie. for use by the PCI bus manager).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10286 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2004-11-29 20:42:04 +00:00
parent 22ca5e3c35
commit 86a48e24ad
4 changed files with 210 additions and 7 deletions
+32
View File
@@ -0,0 +1,32 @@
/*
* Copyright 2004, Axel Dörfler, [email protected]. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#ifndef ARCH_x86_BIOS_H
#define ARCH_x86_BIOS_H
#include <SupportDefs.h>
#define BIOS32_PCI_SERVICE 'ICP$'
struct bios32_service {
uint32 base;
uint32 size;
uint32 offset;
};
#ifdef __cplusplus
extern "C" {
#endif
status_t get_bios32_service(uint32 identifier, struct bios32_service *service);
status_t bios_init(void);
#ifdef __cplusplus
}
#endif
#endif /* ARCH_x86_BIOS_H */