1433d6423SLionel Sambuc #include "syslib.h" 2433d6423SLionel Sambuc sys_readbios(address,buf,size)3433d6423SLionel Sambucint sys_readbios(address, buf, size) 4433d6423SLionel Sambuc phys_bytes address; /* Absolute memory address */ 5433d6423SLionel Sambuc void *buf; /* Buffer to store the results */ 6433d6423SLionel Sambuc size_t size; /* Amount of data to read */ 7433d6423SLionel Sambuc { 8433d6423SLionel Sambuc /* Read data from BIOS locations */ 9433d6423SLionel Sambuc message m; 10433d6423SLionel Sambuc 11433d6423SLionel Sambuc m.m_lsys_krn_readbios.size = size; 12433d6423SLionel Sambuc m.m_lsys_krn_readbios.addr = address; 13*685aa793SDavid van Moolenbroek m.m_lsys_krn_readbios.buf = (vir_bytes)buf; 14433d6423SLionel Sambuc return(_kernel_call(SYS_READBIOS, &m)); 15433d6423SLionel Sambuc } 16