2017-07-09 | Paul Boddie | raw annotate files changeset graph | Moved initialisation details to the generic LCD module, changing the address computation functions to use information from the display structure. Moved clock and power management operations into the generic LCD module, thus focusing the jz4740 LCD module on specific LCD-related functionality. |
1 #ifndef __PAGING_H__ 2 #define __PAGING_H__ 3 4 #define USER_ADDRESS_MASK 0x7fffffff 5 6 #ifndef __ASSEMBLER__ 7 8 #include <stdint.h> 9 10 uint32_t user_address(uint32_t addr); 11 uint32_t previous_page(uint32_t addr, uint32_t pagesize); 12 uint32_t next_page(uint32_t addr, uint32_t pagesize); 13 uint32_t page_size(uint32_t size); 14 15 #endif /* __ASSEMBLER__ */ 16 17 #endif /* __PAGING_H__ */