Hello,
I have a particular need to read and write a single byte to a register on a 
VIA chipset. I have a feeling that this is probably a lot easier than it 
seems, but I haven't done anything like this before. 

I have a system with a VIA VT82C686 southbridge. Connected to several of its 
general purpose I/O lines are the LCD backlight control, and several LED's. 
There is a linux program available that will manipulate the register, but it 
fails to work under FreeBSD. The location in memory is EE4C. I can provide 
the original Linux code on request.

Could I impose on someone to help me write a program that will 
read/write/modify this one register? If there is a device in /dev that covers 
this part, I haven't found it - so I'm not sure if it will be as simple as 
calling ioctl. The chipset is detected, and appears as chip1@pci0 when I run 
pciconf. I tried looking at /dev/pci - but I didn't get very far.

I can handle the rest of the code, but accessing this register had proven to 
be a pain. Any help would be greatly appreciated. BTW - this is not for a 
commercial effort. I just want to get get FreeBSD running on this hardware 
for myself.

Also, I am on the freebsd-questions list, not this list. Could anyone 
replying please CC me? 

Thanks,

Seth Henry

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to