URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
Compare Revisions
- This comparison shows the changes necessary to convert path
/openrisc/trunk/or1ksim/peripheral
- from Rev 98 to Rev 101
- ↔ Reverse comparison
Rev 98 → Rev 101
/Makefile.in
194,7 → 194,6
PACKAGE_NAME = @PACKAGE_NAME@ |
PACKAGE_STRING = @PACKAGE_STRING@ |
PACKAGE_TARNAME = @PACKAGE_TARNAME@ |
PACKAGE_URL = @PACKAGE_URL@ |
PACKAGE_VERSION = @PACKAGE_VERSION@ |
PATH_SEPARATOR = @PATH_SEPARATOR@ |
POW_LIB = @POW_LIB@ |
/channels/Makefile.in
155,7 → 155,6
PACKAGE_NAME = @PACKAGE_NAME@ |
PACKAGE_STRING = @PACKAGE_STRING@ |
PACKAGE_TARNAME = @PACKAGE_TARNAME@ |
PACKAGE_URL = @PACKAGE_URL@ |
PACKAGE_VERSION = @PACKAGE_VERSION@ |
PATH_SEPARATOR = @PATH_SEPARATOR@ |
POW_LIB = @POW_LIB@ |
/generic.c
128,7 → 128,8
memset (mask, 0, sizeof (mask)); |
mask[bytenum] = 0xff; |
|
if (0 != config.ext.read_up (NULL, wordaddr, mask, res, 4)) |
if (0 != config.ext.read_up (config.ext.class_ptr, wordaddr, mask, res, |
4)) |
{ |
fprintf (stderr, "Warning: external byte read failed.\n"); |
return 0; |
185,7 → 186,8
mask[bytenum] = 0xff; |
val[bytenum] = value; |
|
if (0 != config.ext.write_up (NULL, wordaddr, mask, val, 4)) |
if (0 != config.ext.write_up (config.ext.class_ptr, wordaddr, mask, val, |
4)) |
{ |
fprintf (stderr, "Warning: external byte write failed.\n"); |
} |
249,7 → 251,8
mask[hwnum ] = 0xff; |
mask[hwnum + 1] = 0xff; |
|
if (0 != config.ext.read_up (NULL, wordaddr, mask, res, 4)) |
if (0 != config.ext.read_up (config.ext.class_ptr, wordaddr, mask, res, |
4)) |
{ |
fprintf (stderr, "Warning: external half word read failed.\n"); |
return 0; |
327,7 → 330,8
val[hwnum ] = (unsigned char) (value ); |
#endif |
|
if (0 != config.ext.write_up (NULL, wordaddr, mask, val, 4)) |
if (0 != config.ext.write_up (config.ext.class_ptr, wordaddr, mask, val, |
4)) |
{ |
fprintf (stderr, "Warning: external half word write failed.\n"); |
} |
383,7 → 387,8
/* Set the mask, read and get the result */ |
memset (mask, 0xff, sizeof (mask)); |
|
if (0 != config.ext.read_up (NULL, wordaddr, mask, res, 4)) |
if (0 != config.ext.read_up (config.ext.class_ptr, wordaddr, mask, res, |
4)) |
{ |
fprintf (stderr, "Warning: external full word read failed.\n"); |
return 0; |
462,7 → 467,8
val[0] = (unsigned char) (value ); |
#endif |
|
if (0 != config.ext.write_up (NULL, wordaddr, mask, val, 4)) |
if (0 != config.ext.write_up (config.ext.class_ptr, wordaddr, mask, val, |
4)) |
{ |
fprintf (stderr, "Warning: external full word write failed.\n"); |
} |