Main Page | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

dmi_scan.c File Reference

#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/init.h>
#include <linux/apm_bios.h>
#include <asm/io.h>

Include dependency graph for dmi_scan.c:

Go to the source code of this file.

Functions

static char *__init dmi_string (struct dmi_header *dm, u8 s)
static int __init dmi_table (u32 base, int len, int num, void(*decode)(struct dmi_header *))
int __init dmi_checksum (u8 *buf)
int __init dmi_iterate (void(*decode)(struct dmi_header *))
static void __init dmi_decode (struct dmi_header *dm)
int __init dmi_scan_machine (void)
 __initcall (dmi_scan_machine)


Function Documentation

__initcall dmi_scan_machine   ) 
 

int __init dmi_checksum u8 buf  )  [inline]
 

Definition at line 64 of file dmi_scan.c.

References a, sum, and u8.

Referenced by dmi_iterate().

static void __init dmi_decode struct dmi_header dm  )  [static]
 

Definition at line 117 of file dmi_scan.c.

References apm_info, data, dmi_string(), KERN_WARNING, printk, strcmp, dmi_header::type, and u8.

Referenced by dmi_scan_machine().

Here is the call graph for this function:

int __init dmi_iterate void(*)(struct dmi_header *)  decode  ) 
 

Definition at line 74 of file dmi_scan.c.

References buf, dmi_checksum(), dmi_table(), fp, KERN_INFO, memcmp, memcpy_fromio, printk, u16, u32, u8, and x0F.

Referenced by dmi_scan_machine().

Here is the call graph for this function:

int __init dmi_scan_machine void   ) 
 

Definition at line 181 of file dmi_scan.c.

References dmi_decode(), and dmi_iterate().

Here is the call graph for this function:

static char* __init dmi_string struct dmi_header dm,
u8  s
[static]
 

Definition at line 15 of file dmi_scan.c.

References bp, dmi_header::length, strlen, and u8.

Referenced by dmi_decode().

static int __init dmi_table u32  base,
int  len,
int  num,
void(*)(struct dmi_header *)  decode
[static]
 

Definition at line 31 of file dmi_scan.c.

References buf, data, decode(), i, ioremap, iounmap, dmi_header::length, NULL, and u8.

Referenced by dmi_iterate().

Here is the call graph for this function: