Re: [coreboot] SuperI/O Access (Kernelspace)

2011-04-19 Thread Jeremy Moles
On Fri, 2011-04-15 at 02:07 +0200, Peter Stuge wrote: > Jeremy Moles wrote: > > working great now .. via userspace > .. > > However, I'd like to be able to toggle the power on via a kernel > > driver as well, > > Why? > > > > but I'm having trouble accessing the same memory range from > > kernel

Re: [coreboot] SuperI/O Access (Kernelspace)

2011-04-14 Thread Tom Sylla
Your address is in I/O address space, not memory address space. Take a look at io_rw.c in iotools, you need to be using inb/outb (not just reading/writing memory). Tom On Thu, Apr 14, 2011 at 4:12 PM, Jeremy Moles wrote: > Hey guys, me again. :) > > So, my device is working great now that I can

Re: [coreboot] SuperI/O Access (Kernelspace)

2011-04-14 Thread Gregg Levine
On Thu, Apr 14, 2011 at 7:13 PM, Jeremy Moles wrote: > Hey guys, me again. :) > > So, my device is working great now that I can access the GPIO pins via > userspace (using iotools w/ Tom Sylla's help) and can power on the > device. However, I'd like to be able to toggle the power on via a kernel >

Re: [coreboot] SuperI/O Access (Kernelspace)

2011-04-14 Thread Peter Stuge
Jeremy Moles wrote: > working great now .. via userspace .. > However, I'd like to be able to toggle the power on via a kernel > driver as well, Why? > but I'm having trouble accessing the same memory range from > kernelspace. > > For example: > > iotools io_read8 0xA00 io_read8 is not

[coreboot] SuperI/O Access (Kernelspace)

2011-04-14 Thread Jeremy Moles
Hey guys, me again. :) So, my device is working great now that I can access the GPIO pins via userspace (using iotools w/ Tom Sylla's help) and can power on the device. However, I'd like to be able to toggle the power on via a kernel driver as well, but I'm having trouble accessing the same memory

[coreboot] SuperI/O Access (Kernelspace)

2011-04-14 Thread Jeremy Moles
Hey guys, me again. :) So, my device is working great now that I can access the GPIO pins via userspace (using iotools w/ Tom Sylla's help) and can power on the device. However, I'd like to be able to toggle the power on via a kernel driver as well, but I'm having trouble accessing the same memory