Re: address lines

M8 (Servaes Joordens)
2007-11-03T13:29:48Z

> On Sat, 2007-11-03 at 13:27 +0100, M8 (Servaes Joordens) wrote:
>
>> How do I enable my own driver file based on sbc_gxx.c? I cannot find
>> an configuration option in the kernel by menuconfig.
>>
>
> Copy sbc_gxx.c to create your own driver. Copy the configuration option
> in drivers/mtd/maps/Kconfig too, renaming it appropriately and giving it
> appropriate dependencies. Add an appropriate line in
> drivers/mtd/maps/Makefile, using your new config option and your new
> filename.
>
>
Ok, I did it. Can you tell me the meaning of the calls to ioremap and
request_region?

I used the following defines:

#define WINDOW_START 0x20000000
#define WINDOW_SHIFT 20

I do not know what to do with:
#define PAGE_IO 258
#define DEVICE_ENABLE 0x8000