URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 174 |
Rev 201 |
Line 201... |
Line 201... |
return -1;
|
return -1;
|
}
|
}
|
|
|
/* Register read and write function for a memory area (used by peripheral
|
/* Register read and write function for a memory area (used by peripheral
|
devices like 16450 UART etc.) */
|
devices like 16450 UART etc.) */
|
void register_memoryarea(unsigned long baseaddr, unsigned long size, unsigned char (readfunc)(unsigned long), void (writefunc)(unsigned long, unsigned char))
|
void register_memoryarea(unsigned long baseaddr, unsigned long size, unsigned long (readfunc)(unsigned long), void (writefunc)(unsigned long, unsigned long))
|
{
|
{
|
struct dev_memarea **pptmp;
|
struct dev_memarea **pptmp;
|
|
|
/* Go to the end of the list. */
|
/* Go to the end of the list. */
|
for(pptmp = &dev_list; *pptmp; pptmp = &(*pptmp)->next);
|
for(pptmp = &dev_list; *pptmp; pptmp = &(*pptmp)->next);
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.