Device Driver Resource Allocation.

1 message Options
Embed this post
Permalink
Minsub Lee

Device Driver Resource Allocation.

Reply Threaded More More options
Print post
Permalink
Hi

I'm developing SMC911x device driver in OKL4.

While doing this, I borrow form of vserial & uart_8250 driver.

There is question.


In vserial source code, there is

static mem_space_t iguana_granted_physmem[4] = {(mem_space_t)0xdeadbeaf};
static int iguana_granted_interrupt[4] = {0xfffff};
....

I printed iguana_granted_physmem and iguana_granted_interrupt from vserial.

It was some values that is defined in "platform/pxa/toos/machine.py"

I guess the variables are filled, by some mechanism.

so I added some way with vserial,

memory_net = [(0x-------), (0x------)]
interrupt_net = [xx]

v2_drivers = [ ....
                    (net_driver, "vnetwork", memory_net, interrupt_net)]


but iguana_granted_resource and iguana_granted_interrupt in vnetwork still have 0x00.

Any suggestion?