Ethoc: setting buffer memory space

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Let me try to understand what you are trying to do here. You want to
> pass in the buffer size to ethoc. Do you want to do this during compile
> time? Or during run time? Also, is there a specific reason you would
> like to increase buffer size. The reason I ask is that in most cases,
> you probably don't need to do this.
> 
> Amit

Hi Amit,

I'd like pass two phys addresses (IO mem and buffer) to ethoc driver during compile time. I think I've found solution:

static struct resource altera3_resources[] = 
{
  {// IO memory
    .start          = ALTERA3_ETHOC_BASE,
    .end            = ALTERA3_ETHOC_BASE + 0x50,
    .flags          = IORESOURCE_MEM,
  },
  ....
  {// buf memory
    .start          = ALTERA3_ETHOC_BUF,
    .end            = ALTERA3_ETHOC_BUF + 0xA000,
    .flags          = IORESOURCE_MEM,
  },  
};

I'm using kernel 2.6.30.5 now and ethoc driver hasn't any parameters so I have to set buffer addr and size using IORESOURSE_MEM.

Thanks,
Alex.



_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel

[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux