Samsung Advanced BIOS Interface driver

Hello all!

I'm working on porting a driver for SABI (Samsung Advanced Bios Interface) because my Samsung laptop manages some various parameters such as CPU fan speed through that interface. I want you to advise me the FreeBSD way to do some things.

First of all I need to find a signature in BIOS memory (from 0xF0000 to OxFFFFF). The Linux driver uses the ioremap function to do this. Is there a similar function in FreeBSD? I found pmap functions but I can't figure out how to use them. In Linux I just use
Code:
	static struct sabi_interface __iomem *sabi_iface;
	sabi_iface = (struct sabi_interface __iomem *)ioremap(ifaceP, 16);
	writeb(0, &sabi_iface->complete);
to write memory.

Second, I need a function to write data to I/O ports like outb in Linux.

Thanks for your help.
 
Back
Top