coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
common.c
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-only */
2
3
#include <
console/console.h
>
4
#include <
device/device.h
>
5
#include <
cpu/intel/model_206ax/model_206ax.h
>
6
#include "
sandybridge.h
"
7
8
enum
platform_type
get_platform_type
(
void
)
9
{
10
const
int
id
=
get_platform_id
();
11
if
(
id
!= 1 &&
id
!= 4)
12
printk
(
BIOS_WARNING
,
"Unknown platform id 0x%x\n"
,
id
);
13
14
return
(
id
== 4) ?
PLATFORM_MOBILE
:
PLATFORM_DESKTOP_SERVER
;
15
}
printk
#define printk(level,...)
Definition:
stdlib.h:16
console.h
get_platform_id
int get_platform_id(void)
Definition:
common.c:6
device.h
BIOS_WARNING
#define BIOS_WARNING
BIOS_WARNING - Bad configuration.
Definition:
loglevel.h:86
model_206ax.h
get_platform_type
enum platform_type get_platform_type(void)
Definition:
common.c:8
sandybridge.h
platform_type
platform_type
Definition:
sandybridge.h:18
PLATFORM_DESKTOP_SERVER
@ PLATFORM_DESKTOP_SERVER
Definition:
sandybridge.h:20
PLATFORM_MOBILE
@ PLATFORM_MOBILE
Definition:
sandybridge.h:19
src
northbridge
intel
sandybridge
common.c
Generated by
1.9.1