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

Re: RE: MMapping the SRAM into user space



Hi Mikael.

Thanks for the answer.
>
>3. Map the area through /dev/mem from userspace. e.g:
>fd = open( "/dev/mem", O_RDWR );
>addr = (unsigned long)mmap( (void *)0, 1024*1024, 
>PROT_READ|PROT_WRITE, MAP_SHARED, fd, kernel_addr);

Which driver do I need to enable to use /dev/mem and what is the major and
minor number of the device, the node isn't present on my MCM development
board.

Thanks,

	Arne
>
>

Dipl. Inform. Arne Bockholdt
REA Elektronik GmbH
Teichwiesenstr. 1
64367 Mühltal-Waschenbach
Tel. +49 (0) 6154 / 638-115, Fax -195
ABockholdt@xxxxxxx.de