The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]

Интерактивная система просмотра системных руководств (man-ов)

 ТемаНаборКатегория 
 
 [Cписок руководств | Печать]

bios (9)
  • >> bios (9) ( FreeBSD man: Ядро )
  • Ключ bios обнаружен в базе ключевых слов.

  • BSD mandoc
     

    NAME

    
    
    bios_sigsearch
    
     
    bios32_SDlookup
    
     
    bios32
    
     
    bios_oem_strings
    
     - interact with PC BIOS
    
     
    

    SYNOPSIS

       #include <sys/param.h>
       #include <vm/vm.h>
       #include <vm/pmap.h>
       #include <machine/param.h>
       #include <machine/pmap.h>
       #include <machine/pc/bios.h>
    u_int32_t bios_sigsearch (u_int32_t start u_char *sig int siglen int paralen int sigofs);
    int bios32_SDlookup (struct bios32_SDentry *ent);
    int bios32 (struct bios_regs *br u_int offset u_short segment);
    BIOS_PADDRTOVADDR (addr);
    BIOS_VADDRTOPADDR (addr);
    Vt extern struct bios32_SDentry PCIbios ; Vt extern struct SMBIOS_table SMBIOStable ; Vt extern struct DMI_table DMItable ; int bios_oem_strings (struct bios_oem *oem u_char *buffer size_t maxlen);
    struct bios_oem_signature {
            char * anchor;          /* search anchor string in BIOS memory */
            size_t offset;          /* offset from anchor (may be negative) */
            size_t totlen;          /* total length of BIOS string to copy */
    };
    struct bios_oem_range {
            u_int from;             /* shouldn't be below 0xe0000 */
            u_int to;               /* shouldn't be above 0xfffff */
    };
    struct bios_oem {
            struct bios_oem_range range;
            struct bios_oem_signature signature[];
    };
    
     

    DESCRIPTION

    These functions provide a general-purpose interface for dealing with the BIOS functions and data encountered on x86 PC-architecture systems.

    Fn bios_sigsearch
    Searches the BIOS address space for a service signature, usually an uppercase ASCII sequence surrounded by underscores. The search begins at Fa start , or at the beginning of the BIOS if Fa start is zero. Fa siglen bytes of the BIOS image and Fa sig are compared at Fa sigofs bytes offset from the current location. If no match is found, the current location is incremented by Fa paralen bytes and the search repeated. If the signature is found, its effective physical address is returned. If no signature is found, zero is returned.
    Fn bios_oem_strings
    Searches a given BIOS memory range for one or more strings, and composes a printable concatenation of those found. The routine expects a structure describing the BIOS address Fa range (within 0xe0000 - 0xfffff ) and a { NULL , 0 , 0 } -terminated array of Vt bios_oem_signature structures which define the anchor string, an offset from the beginning of the match (which may be negative), and totlen number of bytes to be collected from BIOS memory starting at that offset. Unmatched anchors are ignored, whereas matches are copied from BIOS memory starting at their corresponding Vt offset with unprintable characters being replaced with space, and consecutive spaces being suppressed. This composed string is stored in Fa buffer up to the given Fa maxlen bytes (including trailing `\0' , and any trailing space surpressed). If an error is encountered, i.e. trying to read out of said BIOS range, other invalid input, or Fa buffer overflow, a negative integer is returned, otherwise the length of the composed string is returned. In particular, a return value of 0 means that none of the given anchor strings were found in the specified BIOS memory range.
    Fn BIOS_VADDRTOPADDR
    Returns the effective physical address which corresponds to the kernel virtual address Fa addr .
    Fn BIOS_PADDRTOVADDR
    Returns the kernel virtual address which corresponds to the effective physical address Fa addr .
    SMBIOStable
    If not NULL, points to a struct SMBIOS_table structure containing information read from the System Management BIOS table during system startup.
    DMItable
    If not NULL, points to a struct DMI_table structure containing information read from the Desktop Management Interface parameter table during system startup.

     

    BIOS32

    At system startup, the BIOS is scanned for the BIOS32 Service Directory (part of the PCI specification), and the existence of the directory is recorded. This can then be used to locate other services.

    Fn bios32_SDlookup
    Attempts to locate the BIOS32 service matching the 4-byte identifier passed in the Fa ident field of the Fa ent argument.
    Fn bios32
    Calls a bios32 function. This presumes that the function is capable of working within the kernel segment (normally the case). The virtual address of the entrypoint is supplied in Fa entry and the register arguments to the function are supplied in Fa args .
    PCIbios
    If not NULL, points to a struct bios32_SDentry structure describing the PCI BIOS entrypoint which was found during system startup.


     

    Index

    NAME
    SYNOPSIS
    DESCRIPTION
    BIOS32


    Поиск по тексту MAN-ов: 




    Партнёры:
    PostgresPro
    Inferno Solutions
    Hosting by Hoster.ru
    Хостинг:

    Закладки на сайте
    Проследить за страницей
    Created 1996-2024 by Maxim Chirkov
    Добавить, Поддержать, Вебмастеру